Skip to content

cmake cant find wxwidgets #665

Description

@JamesOlvertone

I dont know how to compile amule (latest git clone) from scratch with cmake and downloaded wxwidgets-source (3.2.10).

Older amule release used configure and make. You've set --with-wxdir the path to the wx-sourcefolder
and it compiled.

Now with cmake this does not work:
I set the path in amule/cmake/search-dirs.cmake like this:
SET (wxWidgets_ROOT_DIR "${CMAKE_SOURCE_DIR}/../wx3/wxWidgets-3.2.10")
wx is in amule/wx3/wxwxWidgets-3.2.10.
I also tried absolute path, didn't work,

cmake always can not find wxwidgets:

...
CMake Error at /usr/share/cmake-4.2/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS) (Required is at least version "3.2.0")
Call Stack (most recent call first):
  /usr/share/cmake-4.2/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-4.2/Modules/FindwxWidgets.cmake:1181 (find_package_handle_standard_args)
  cmake/wx.cmake:57 (find_package)
  CMakeLists.txt:94 (include)```


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions