Open polyzium opened 5 years ago
You should install wxWidgets dev libraries in order to compile it.
I already have them installed from Arch repos. In fact if you copy&paste CMakeLists.txt from master it detects it successfully. But then a typedef error related to gtk/wxwidgets pops up:
In file included from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from /home/polyzium/SOFTWARE/3D/GZDoomSLADE/src/OpenGL/Drawing.cpp:48:
/usr/include/gtk-2.0/gdk/gdktypes.h:114:39: error: conflicting declaration ‘typedef struct _GdkDrawable GdkWindow’
typedef struct _GdkDrawable GdkWindow;
^~~~~~~~~
In file included from /usr/include/wx-3.0/wx/string.h:24,
from /home/polyzium/SOFTWARE/3D/GZDoomSLADE/src/common.h:5,
from /home/polyzium/SOFTWARE/3D/GZDoomSLADE/build/make/src/cotire/slade_CXX_prefix.cxx:4,
from /home/polyzium/SOFTWARE/3D/GZDoomSLADE/build/make/src/cotire/slade_CXX_prefix.hxx:4:
/usr/include/wx-3.0/wx/defs.h:3464:31: note: previous declaration as ‘typedef struct _GdkWindow GdkWindow’
typedef struct _GdkWindow GdkWindow;
^~~~~~~~~
make[2]: *** [src/CMakeFiles/slade.dir/build.make:2780: src/CMakeFiles/slade.dir/OpenGL/Drawing.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:163: src/CMakeFiles/slade.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make 463.77s user 33.55s system 96% cpu 8:33.74 total
You can work around this by setting wxWidgets_LIBRARIES
manually in Cmake.
SLADE Version: (Master) Operating System: (Linux)
Issue Details: CMake 3.12.4. Running
cmake ..
in the build directory results in this error.