2020-12-05 09:24

MacPorts compilation

, sorry, I undid some of your CMake changes, and added a more general approach (using pkg-config). Can you please try if this compilation works for you?


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • weixin_39963744 weixin_39963744 5月前

    Hmm, Travis build failed because target_link_options only appeared in CMake 3.13. Will add a workaround compatible with older versions.

    点赞 评论 复制链接分享
  • weixin_39762001 weixin_39762001 5月前

    Sorry for the delay. Hmm, with latest cmake from brew there trouble with detecting pthreads:

    bash-3.2$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSEWX=yes -DCMAKE_BUILD_TYPE=Release ..
    -- libssh found
    CMake Error at /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
      Could NOT find Threads (missing: Threads_FOUND)
    Call Stack (most recent call first):
      /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
      /usr/local/Cellar/cmake/3.14.4/share/cmake/Modules/FindThreads.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
      WinPort/CMakeLists.txt:86 (find_package)
    点赞 评论 复制链接分享
  • weixin_39963744 weixin_39963744 5月前

    Completely removed the Mac compilation hacks, and yet it built!

    Well, somebody else might still have to add this spell to cmake invocation:

    cmake .. \
    -DwxWidgets_CONFIG_EXECUTABLE=/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.1/bin/wx-config \

    , what's your opinion now?

    点赞 评论 复制链接分享
  • weixin_39762001 weixin_39762001 5月前

    Cool :) Looks much cleaner now. /opt/local/Library/Frameworks/wxWidgets.framework - it's locally built version? I'm using

    brew tap cdalvaro/tap
    brew install cdalvaro/tap/wxmac
    cmake .. -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/Cellar/wxmac/3.1.3/bin/wx-config -DwxWidgets_wxrc_EXECUTABLE=/usr/local/Cellar/wxmac/3.1.3/bin/wxrc-3.1

    and I can confirm it works.

    点赞 评论 复制链接分享