usernameak / GZDoomSLADE

2 stars 1 forks source link

Linux compile fail #3

Open polyzium opened 5 years ago

polyzium commented 5 years ago

SLADE Version: (Master) Operating System: (Linux)

Issue Details: CMake 3.12.4. Running cmake .. in the build directory results in this error.

CMake Error at /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES) (Required is at
  least version "3.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.12/Modules/FindwxWidgets.cmake:963 (find_package_handle_standard_args)
  src/CMakeLists.txt:18 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/polyzium/SOFTWARE/3D/GZDoomSLADE/build/CMakeFiles/CMakeOutput.log".
usernameak commented 5 years ago

You should install wxWidgets dev libraries in order to compile it.

polyzium commented 5 years ago

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
aFoxNamedMorris commented 5 years ago

You can work around this by setting wxWidgets_LIBRARIES manually in Cmake.