[CMake] Can't find wxWidgets

Bob Bachman bob_bachman at intercept.com
Thu Jul 9 14:19:12 EDT 2015


We've upgraded from wxWidgets 2.8.10 to 3.0.2 and our CMake scripts can no 
longer find the required wxWidgets libs. The wxWidgets shared object files 
have been built and exist in the same directory structure as the 2.8.10 
version. Any help would be greatly appreciated. Thank you

Here is the find_package line used in our CMakeLists.txt file

IF(UNIX)
    find_package( wxWidgets REQUIRED base core xrc net adv xml html qa aui )
ELSE(UNIX)
    find_package( wxWidgets REQUIRED base core xrc net adv xml html qa aui )
ENDIF(UNIX)

The errors are below:

-- Turning off rpaths
-- /home/mzx_bldr/mozaix_svn/engineering/common_src/src/wxWidgets-
3.0.2/buildgtk/wx-config
CMake Error at /home/mzx_bldr/cmake_versions/cmake-3.2.3-Linux-
i386/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 
(message):
  Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
  /home/mzx_bldr/cmake_versions/cmake-3.2.3-Linux-i386/share/cmake-
3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  /home/mzx_bldr/cmake_versions/cmake-3.2.3-Linux-i386/share/cmake-
3.2/Modules/FindwxWidgets.cmake:870 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:386 (find_package)





More information about the CMake mailing list