![]() |
#21 |
Veteran
Join Date: Jun 2007
Posts: 1,393
![]() |
Your gcc is still to old. Which version are you using, i.e. what is the output of
Code:
gcc --version Also note that if you have multiple versions installed, you might want to re-run the "cmake" command and make sure that it's spitting out the right version at the top of the output. It should look something like this: Code:
-- The C compiler identification is GNU 7.2.0 -- The CXX compiler identification is GNU 7.2.0 |
![]() |
![]() |
![]() |
#22 |
Knight
Join Date: Jan 2017
Posts: 961
![]() |
Code:
angbandlive@gwarl:~/src/unfixed/tome2$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) Code:
angbandlive@gwarl:~/src/unfixed/tome2$ gcc-6 -v Using built-in specs. COLLECT_GCC=gcc-6 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 6.3.0-18ubuntu2~16.04' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170519 (Ubuntu/Linaro 6.3.0-18ubuntu2~16.04) angbandlive@gwarl:~/src/unfixed/tome2$ |
![]() |
![]() |
![]() |
#23 |
Veteran
Join Date: Jun 2007
Posts: 1,393
![]() |
Aha, it is as I suspected!
![]() Code:
CC=gcc-6 CXX=g++-6 cmake |
![]() |
![]() |
![]() |
#24 |
Knight
Join Date: Jan 2017
Posts: 961
![]() |
Code:
[ 29%] Building CXX object src/CMakeFiles/game.dir/init2.cc.o /home/angbandlive/src/unfixed/tome2/src/init2.cc: In function ‘void init_file_paths(char*)’: /home/angbandlive/src/unfixed/tome2/src/init2.cc:216:31: error: ‘PRIVATE_USER_PATH’ was not declared in this scope path_parse(user_path, 1024, PRIVATE_USER_PATH); ^~~~~~~~~~~~~~~~~ src/CMakeFiles/game.dir/build.make:638: recipe for target 'src/CMakeFiles/game.dir/init2.cc.o' failed make[3]: *** [src/CMakeFiles/game.dir/init2.cc.o] Error 1 CMakeFiles/Makefile2:97: recipe for target 'src/CMakeFiles/game.dir/all' failed make[2]: *** [src/CMakeFiles/game.dir/all] Error 2 CMakeFiles/Makefile2:148: recipe for target 'src/CMakeFiles/tome-gcu.dir/rule' failed make[1]: *** [src/CMakeFiles/tome-gcu.dir/rule] Error 2 Makefile:175: recipe for target 'tome-gcu' failed make: *** [tome-gcu] Error 2 No. I'll have another go at this later. |
![]() |
![]() |
![]() |
#25 |
Veteran
Join Date: Jan 2012
Location: Linux
Age: 40
Posts: 1,237
![]() |
Looking at your recent issue with TOME 2.4.0...were you compiling this within the angband.live webserver directory?
__________________
My best try at PosChengband 7.0.0's nightmare-mode on Angband.live: https://www.youtube.com/watch?v=rwAR0WOphUA If I'm offline I'm probably in the middle of maintaining Gentoo or something-Linux or other. As of February 18th, 2022, my YouTube username is MidgardVirtuoso |
![]() |
![]() |
![]() |
#26 |
Knight
Join Date: Jan 2017
Posts: 961
![]() |
Okay after all my complaining it's finally up!
here's the altered main-gcu.c ![]() |
![]() |
![]() |
![]() |
#27 |
Veteran
Join Date: Jun 2007
Posts: 1,393
![]() |
Fantastic that you got it working!
As you've probably discovered the idea with PRIVATE_USER_PATH would be to define it to something else (not containing "~", that's the bit that signifies the user's home directory), not to remove the definition. (Apologies for the response lag, I'm sick with the flu at the moment.) EDIT: Any chance you could make a GitHub gist with that file? I'd like to compare it to the current one to see if it's reasonable to just include directly in the repository. |
![]() |
![]() |
![]() |
#28 |
Knight
Join Date: Jan 2017
Posts: 961
![]() |
|
![]() |
![]() |
![]() |
#29 |
Rookie
Join Date: Dec 2017
Posts: 2
![]() |
Hey!
Could someone either offer me pre-compiled Windows binaries for this or alternatively step-by-step instructions for compiling this myself. Compiling under Windows is something I've never really learned to do. |
![]() |
![]() |
![]() |
#30 | ||
Knight
Join Date: Jan 2017
Posts: 961
![]() |
bump because I went and compiled this again on ubuntu (without fancy installaton options this time) and found my own posts here when googling resultant errors.
If you are compiling on Ubuntu, besides what the readme tells you, you'll need gcc-7 (or 6) which isn't available on the Ubuntu xenial repos. To get it: Quote:
Quote:
(note I haven't successfully compiled it yet, will edit when I figure out what else is wrong) I've tried with 6 and 7 now and double checked I have all the releveant libraries installed and I'm still getting the error I posted before being told my compiler was still too old, argh, can't remember what I did to have this work before Last edited by Gwarl; July 19, 2018 at 15:05. |
||
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ToME 2.3.5 Questions | Sooty | ToME | 9 | January 20, 2012 14:12 |
Why ToME 2.3.5? | caruso | ToME | 4 | August 28, 2011 16:48 |
New to Tome | barna10 | ToME | 0 | August 13, 2010 07:24 |
ToME - Genocide? | Narvius | Variants | 4 | December 27, 2007 21:09 |
ToME - Tik | desmondch | Variants | 2 | May 10, 2007 12:54 |