Unable to build GtkRadiant on a Gentoo GNU/Linux x86_64 machine using the git trunk and scons.
Hello, Thanks for this work and maintaining GtkRadiant. Thank you for your support over the years. I was wondering if anyone else has spotted an error like this one and if it could possibly be a problem with my build system, or if not, maybe please let me know if you think this is a bug.
This is an excerpt of the build after executing scons target="radiant,q3map2,q3data" in a fresh directory that was used to git clone the code from the github repository: git clone https://github.com/TTimo/GtkRadiant.git
scons: done reading SConscript files.
scons: Building targets ...
scons: `install/radiant.bin' is up to date.
scons: `install/modules/vfspk3.so' is up to date.
scons: `install/modules/vfspak.so' is up to date.
scons: `install/modules/vfswad.so' is up to date.
scons: `install/modules/fgd.so' is up to date.
scons: `install/modules/entity.so' is up to date.
scons: `install/modules/image.so' is up to date.
gcc -o build/release/shobjs/libs/picomodel/lwo/pntspols.os -c -O2 -g -fno-strict-aliasing -pipe -Wall -fmessage-length=0 -fvisibility=hidden -I/usr/include/libxml2 -fPIC -DQ_NO_STLPORT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Ibuild/release/shobjs/include -Iinclude -Ibuild/release/shobjs/libs -Ilibs libs/picomodel/lwo/pntspols.c
libs/picomodel/lwo/pntspols.c: In function ‘lwGetTags’:
libs/picomodel/lwo/pntspols.c:535:59: error: passing argument 1 of ‘sgetS0’ from incompatible pointer type [-Wincompatible-pointer-types]
535 | tlist->tag[ i + tlist->offset ] = sgetS0( &bp );
| ^~~
| |
| char **
In file included from libs/picomodel/lwo/pntspols.c:11:
libs/picomodel/lwo/lwo2.h:644:31: note: expected ‘unsigned char **’ but argument is of type ‘char **’
644 | char *sgetS0( unsigned char **bp );
| ~~~~~~~~~~~~~~~~^~
scons: *** [build/release/shobjs/libs/picomodel/lwo/pntspols.os] Error 1
scons: building terminated because of errors.
I was trying to work around the data types, but I just made it worse the further into the rabbit hole I went. Does anyone have any thoughts or feedback? Thanks again!
I'm having the same error, but on arch, which is, by the developer's words, is their daily driver.
FWIW the only 'official' way to build GtkRadiant is over the freedesktop / flatpak sdk. Compilers on modern distros are evolving too quickly and being too strict to bother trying to maintain compatibility in this old code for all their sanity checking.
Encountering this on OpenSUSE TW. Using the flatpak is not ideal for how my tools are setup.
I understand, I complained about the developer iteration loop quite a bit when doing the flatpak support. I think making flatpak a better developer iteration experience is the right answer here, not the other way around to try and go back to supporting building on all linux host systems though.
That being said, I don't think I'm in a season of my professional and personal life where I anticipate to contribute more to GtkRadiant.
TrenchBroom is actively maintained and support many idTech engines, I'd definitely recommend checking that out.