03-29-2019, 04:19 AM
Here I am, wanting to mess about with map-making for Xonotic. Against my better judgement, I run macOS. (High Sierra 10.13.6, though I doubt it matters much.) I cloned the latest version of NetRadiant off GitLab (commit SHA: ef6aad4cd2a3cb866401a4e30372ea82fd690995), installed dependencies, ran make, and....
Building the way that the GitLab page suggests you do it (cmake) doesn't really work either, the dependencies aren't specified correctly in the cmake file (relevant issue)
I'm not entirely sure what the make error is about. I'll put it on the issue tracker page, too, it seems like more than a dependency misconfiguration.
If anyone can shed some light on the issue, that'd be great. (Is NetRadiant for macOS even supported, has anyone gotten it to chooch?)
Code:
$ export PKG_CONFIG_PATH=/opt/local/include; make
checking that the build tools exist
Checking for /bin/sh (bash (or another shell))... found.
Checking for echo (coreutils)... found.
Checking for /bin/echo -n (coreutils)... found.
Checking for cat (coreutils)... found.
Checking for mkdir -p (coreutils)... found.
Checking for cp (coreutils)... found.
Checking for cp -r --preserve=timestamps (coreutils)... found.
Checking for rm -f (coreutils)... found.
Checking for rm -f -r (coreutils)... found.
Checking for mv (coreutils)... found.
Checking for echo test | tee /dev/stderr (coreutils)... found.
Checking for sed (sed)... found.
Checking for find (findutils)... found.
Checking for diff (diff)... found.
Checking for cc (gcc)... found.
Checking for c++ (g++)... found.
Checking for ranlib (binutils)... found.
Checking for ar (binutils)... found.
Checking for pkg-config (pkg-config)... found.
Checking for unzip (unzip)... found.
Checking for git (git-core)... found.
Checking for svn (subversion)... found.
Checking for wget (wget)... found.
Checking for otool (xcode)... found.
All required tools have been found!
checking that the dependencies exist
Checking for jpeglib.h (libjpeg8-dev)... found and links.
Checking for glib.h (libglib2.0-dev)... found and links.
Checking for libxml/xpath.h (libxml2-dev)... found and links.
Checking for png.h (libpng12-dev)... found and links.
Checking for webp/decode.h (libwebp-dev)... found and links.
Checking for GL/gl.h (mesa-common-dev (or another OpenGL library))... found and links.
Checking for gtk/gtkdialog.h (libgtk2.0-dev)... found and links.
Checking for pango/pangoft2.h (libpango1.0-dev)... found and links.
Checking for gtk/gtkglwidget.h (libgtkglext1-dev)... found and links.
Checking for dlfcn.h (libc6-dev)... found and links.
Checking for zlib.h (zlib1g-dev)... found and links.
All required libraries have been found!
cc tools/quake2/qdata_heretic2/qcommon/reference.c -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -g -O -fPIC -I/opt/local/include/libxml2 -Itools/quake2/qdata_heretic2/common -Itools/quake2/qdata_heretic2/qcommon -Itools/quake2/qdata_heretic2 -Itools/quake2/common -Ilibs -Iinclude -DPOSIX -DXWINDOWS -I/opt/local/lib/../include -I/usr/X11R6/include -DRADIANT_VERSION="\"1.5.0n-git-ef6aad4c\"" -DRADIANT_MAJOR_VERSION="\"1\"" -DRADIANT_MINOR_VERSION="\"5\"" -DRADIANT_PATCH_VERSION="\"0\"" -DRADIANT_ABOUTMSG="\"Custom build\"" -DQ3MAP_VERSION="\"2.5.17n-git-ef6aad4c\"" -DRADIANT_EXECUTABLE="\"x86_64\"" -DGTK_TARGET=2 -c -o tools/quake2/qdata_heretic2/qcommon/reference.o
In file included from tools/quake2/qdata_heretic2/qcommon/reference.c:24:
tools/quake2/qdata_heretic2/qcommon/arrayedlist.h:36:8: error: unknown type name 'GDEF_ATTRIBUTE_INLINE'
static GDEF_ATTRIBUTE_INLINE int GetFreeNode( ArrayedListNode_t *nodeArray, int max ){
^
tools/quake2/qdata_heretic2/qcommon/arrayedlist.h:36:30: error: expected identifier or '('
static GDEF_ATTRIBUTE_INLINE int GetFreeNode( ArrayedListNode_t *nodeArray, int max ){
^
tools/quake2/qdata_heretic2/qcommon/arrayedlist.h:51:8: error: unknown type name 'GDEF_ATTRIBUTE_INLINE'
static GDEF_ATTRIBUTE_INLINE void FreeNode( ArrayedListNode_t *nodeArray, int index ){
^
tools/quake2/qdata_heretic2/qcommon/arrayedlist.h:51:30: error: expected identifier or '('
static GDEF_ATTRIBUTE_INLINE void FreeNode( ArrayedListNode_t *nodeArray, int index ){
^
4 errors generated.
make: *** [tools/quake2/qdata_heretic2/qcommon/reference.o] Error 1
Code:
$ cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build -- -j4
-- Building NetRadiant 1.5.0n-git-ef6aad4c Custom build
-- Checking for module 'gtkglext-x11-1.0'
-- No package 'gtkglext-x11-1.0' found
CMake Error at /usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/FindPkgConfig.cmake:436 (message):
A required package was not found
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/FindPkgConfig.cmake:602 (_pkg_check_modules_internal)
cmake/FindGtkGLExt.cmake:7 (pkg_check_modules)
libs/gtkutil/CMakeLists.txt:34 (find_package)
-- Configuring incomplete, errors occurred!
I'm not entirely sure what the make error is about. I'll put it on the issue tracker page, too, it seems like more than a dependency misconfiguration.
If anyone can shed some light on the issue, that'd be great. (Is NetRadiant for macOS even supported, has anyone gotten it to chooch?)