Help building OpenCPN 5.2.0 on 14.2
by Daedra from LinuxQuestions.org on (#56092)
I maintain opencpn over at SBO and I am just playing around with the new 5.2.0 version that was released. I am running into an error during configure because opencpn is not finding wxWidgets. I have wxGTK3 installed so the widgets are installed. I have also tried wxGTK and wxPython with the same error.
Code:OpenCPN-5.2.0/src/scrollingdialog.cpp
OpenCPN-5.2.0/src/semantic_vers.cpp
OpenCPN-5.2.0/src/shaders.cpp
OpenCPN-5.2.0/src/styles.cpp
OpenCPN-5.2.0/src/tcmgr.cpp
OpenCPN-5.2.0/src/testvers.cpp
OpenCPN-5.2.0/src/thumbwin.cpp
OpenCPN-5.2.0/src/toolbar.cpp
OpenCPN-5.2.0/src/trackprintout.cpp
OpenCPN-5.2.0/src/undo.cpp
OpenCPN-5.2.0/src/update_mgr.cpp
OpenCPN-5.2.0/src/viewport.cpp
OpenCPN-5.2.0/src/wificlient.cpp
OpenCPN-5.2.0/vagrant/
OpenCPN-5.2.0/vagrant/README
OpenCPN-5.2.0/vagrant/Vagrantfile
-- cmake version: 3.5.2
-- *** Build Architecture is i386
-- Setting C++11 standard via cmake standard mechanism
-- Default compiler options:
-- CMAKE_CXX_FLAGS: -O2 -fPIC
-- CMAKE_CXX_FLAGS_DEBUG: -g
-- CMAKE_CXX_FLAGS_MINSIZEREL: -Os -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- Building version 5.2.0
-- *** Staging to build opencpn 5.2.0 ***
-- *** Package will NOT include documentation ***
-- Building against GTK3...
-- Found OpenGL....
-- GL Lib: /usr/lib64/libGLU.so/usr/lib64/libGL.so
-- GL Include: /usr/include
-- Revised GL Lib: /usr/lib64/libGL.so
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
-- Could not find wxWidgets webview add-on
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:739 (message):
Cannot find wxWidgets, giving up. On linux you might want to try using
-DOCPN_FORCE_GTK3.
-- Configuring incomplete, errors occurred!
See also "/tmp/SBo/OpenCPN-5.2.0/build/CMakeFiles/CMakeOutput.log".
root@Slackware64:/tmp/opencpn#I've also opened a ticket at their GitHub page.
https://github.com/OpenCPN/OpenCPN/issues/1996
At this point just trying to figure out why opencpn can't find the wxwidgets when I know they are installed.
Any help here would be appreciated.


Code:OpenCPN-5.2.0/src/scrollingdialog.cpp
OpenCPN-5.2.0/src/semantic_vers.cpp
OpenCPN-5.2.0/src/shaders.cpp
OpenCPN-5.2.0/src/styles.cpp
OpenCPN-5.2.0/src/tcmgr.cpp
OpenCPN-5.2.0/src/testvers.cpp
OpenCPN-5.2.0/src/thumbwin.cpp
OpenCPN-5.2.0/src/toolbar.cpp
OpenCPN-5.2.0/src/trackprintout.cpp
OpenCPN-5.2.0/src/undo.cpp
OpenCPN-5.2.0/src/update_mgr.cpp
OpenCPN-5.2.0/src/viewport.cpp
OpenCPN-5.2.0/src/wificlient.cpp
OpenCPN-5.2.0/vagrant/
OpenCPN-5.2.0/vagrant/README
OpenCPN-5.2.0/vagrant/Vagrantfile
-- cmake version: 3.5.2
-- *** Build Architecture is i386
-- Setting C++11 standard via cmake standard mechanism
-- Default compiler options:
-- CMAKE_CXX_FLAGS: -O2 -fPIC
-- CMAKE_CXX_FLAGS_DEBUG: -g
-- CMAKE_CXX_FLAGS_MINSIZEREL: -Os -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O2 -g -DNDEBUG
-- Building version 5.2.0
-- *** Staging to build opencpn 5.2.0 ***
-- *** Package will NOT include documentation ***
-- Building against GTK3...
-- Found OpenGL....
-- GL Lib: /usr/lib64/libGLU.so/usr/lib64/libGL.so
-- GL Include: /usr/include
-- Revised GL Lib: /usr/lib64/libGL.so
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
-- Could not find wxWidgets webview add-on
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES wxWidgets_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:739 (message):
Cannot find wxWidgets, giving up. On linux you might want to try using
-DOCPN_FORCE_GTK3.
-- Configuring incomplete, errors occurred!
See also "/tmp/SBo/OpenCPN-5.2.0/build/CMakeFiles/CMakeOutput.log".
root@Slackware64:/tmp/opencpn#I've also opened a ticket at their GitHub page.
https://github.com/OpenCPN/OpenCPN/issues/1996
At this point just trying to figure out why opencpn can't find the wxwidgets when I know they are installed.
Any help here would be appreciated.