Building OSX App Bundle

后端 未结 7 519
[愿得一人]
[愿得一人] 2020-11-29 14:40

Suppose I have have made a an osX app without using Xcode. After compiling with GCC I get an executable which is linked to several other libraries. Some of those libraries m

7条回答
  •  一向
    一向 (楼主)
    2020-11-29 15:26

    A workaround to have the menu work on Mac with wxWidget code is to simply:

    1. Start the program in a terminal as usual (./appname)
    2. The program GUI starts as normal, and click the terminal to have the app lose focus
    3. Click the GUI to regain focus and the menu items work.

    I agree that an app bundle is the correct way to build a program on a Mac. This is just a simple workaround for help during debugging.

    Edit: This is on Mac Catalina, wxWidgets 3.1.4, with g++ 4.2.1 (Nov 2020)

提交回复
热议问题