0

我正在从源代码编译一个程序,它在 Linux 上使用 wxWidgets。

我在 CMakeLists.txt 中设置了以下变量:

SET(wxWidgets_ROOT_DIR ~/Downloads/wxWidgets-3.1.3)
SET(wxWidgets_LIBRARIES ~/Downloads/wxWidgets-3.1.3/lib)
SET(wxWidgets_LIB_DIR ~/Downloads/wxWidgets-3.1.3/lib)
SET(wxWidgets_INCLUDE_DIRS ~/Downloads/wxWidgets-3.1.3/include/wx)
#SET(wxWidgets_VERSION_STRING "3.1.3")
SET(wxWidgets_CONFIGURATION mswu)
SET(WX_ROOT_DIR ~/Downloads/wxWidgets-3.1.3)

并得到一个错误:

Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.10/Modules/FindwxWidgets.cmake:953 (find_package_handle_standard_args)
  CMakeLists.txt:173 (FIND_PACKAGE)

CMakeLists.txt:173包含以下内容:

FIND_PACKAGE(wxWidgets REQUIRED base core aui xrc html xml adv gl net qa)

知道我需要做什么吗?

4

0 回答 0