Page 1 of 1

How for the love of god to compile latest 2.4.0 source

Posted: Sat Feb 12, 2022 7:26 am
by GokuderaElPsyCongro
Ok so I put THREE HOURS trying to do it on Windows. Just about to give up at this point.

Installed Boost. (That was f*ing hard to do)
Installed Cmake.

After two hours installing, reinstalling visual studio and everything needed to make cmake and boost work,
I run cmake .
Error. Missing gpk2, X11, ncurses.
I have no idea how to download or install them
Other error : Arbitrary.cpp is not found...

Ok yeah :roll:

If someone knows how to compile it on Windows and could provide a tuto, or just have the last compiled version, PLEASE HELP.

I'd try playing Zizzo's port to t-engine 4 but it doesn't include THeme yet... :'(

Re: How for the love of god to compile latest 2.4.0 source

Posted: Sat Feb 12, 2022 2:02 pm
by Yottle
I have been playing on https://angband.live/. Theme is there.

Re: How for the love of god to compile latest 2.4.0 source

Posted: Sat Feb 12, 2022 3:56 pm
by GokuderaElPsyCongro
Yottle wrote: Sat Feb 12, 2022 2:02 pm I have been playing on https://angband.live/. Theme is there.
Angband.live says 2.3.6-ah., so it's several years behind the current 2.4.0 version of March 2021. A ton of bugfixes have been done since, noticably some game breaking bugs, and the codebase moved to C++. Incredible for such a great game to stay uncompiled anywhere… - well, great game from what I've heard only since I can't play it! But what I've heard sounds like the perfect combination of what I love in roguelikes.

I'm still trying to find my missing dependencies right now but that's very hard when I don't understand where to find them… Gpk2, X11, Ncurses… what are those?

I've actually considered setting up an Ubuntu VM and compile in it, but that won't be very practical or performant…

I'll throw the errors I get here in case anyone can decipher it. In the meantime, I'll keep trying! I'm too stubborn to abandon there (especially after spending three hours trying to install Boost and cmake…)


-------------------------------------------------------------------------------------------------------------------------

-- Found PkgConfig: C:/Strawberry/perl/bin/pkg-config.bat (found version "0.26")
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
-- The following packages have not been found:

* X11
* GTK
* Curses

-- Configuring done
CMake Error at src/CMakeLists.txt:187 (ADD_EXECUTABLE):
Cannot find source file:

C:/Users/mous-/Desktop/MEGAsync/Jeux/PC/tome_2.4/vendor/CppQuickCheck/src/Arbitrary.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at src/CMakeLists.txt:187 (ADD_EXECUTABLE):
No SOURCES given to target: harness


CMake Generate step failed. Build files cannot be regenerated correctly.

Re: How for the love of god to compile latest 2.4.0 source

Posted: Sat Feb 12, 2022 6:02 pm
by GokuderaElPsyCongro
So, I resorted on setting up an Ubuntu Virtual Machine through Vagrant and Virtualbox and run it there. Installing dependencies is SUPER fast! I'm starting to understand why developers love Linux…
The Github says that X11 is the recommended way of rendering, so I installed Xming and Putty to be able to display it… but unfortunately when running ./src/tome-x11, I get

[1] 20072 segmentation fault (core dumped) ./src/tome-x11

Other programs, like emacs, work through Xming tho… So is it an issue with the program?

Re: How for the love of god to compile latest 2.4.0 source

Posted: Sat Feb 12, 2022 9:49 pm
by GokuderaElPsyCongro
Got help ;) I actually built it in a ubuntu VM, and works like a charm now. Finally! :D

Re: How for the love of god to compile latest 2.4.0 source

Posted: Sun Feb 13, 2022 1:49 pm
by Yottle
Congratulations! I gave up on getting it compiled on Ubuntu.
I haven't seen any bugs in the ah version. I have won a couple of times on it. The last version Dark God released was 2.3.5 and there have only been sporadic efforts to revise it since.