Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation instructions for wxWidgets on macOS #11

Open
ryaanahmed opened this issue Mar 6, 2019 · 0 comments
Open

Compilation instructions for wxWidgets on macOS #11

ryaanahmed opened this issue Mar 6, 2019 · 0 comments

Comments

@ryaanahmed
Copy link

@lpugin

re: https://github.com/DDMAL/aruspix/wiki/03-%E2%80%93-Aruspix-Command-line

The instructions on the wiki for compiling wxWidgets won't work on the macOS 10.14 (Mojave), as the 32 bit headers have all been removed, and the SDK for the default minimum macOS version that wxWidgets expects is also no longer present.

I suspect this is only a problem on a fresh install of 10.14, as an upgraded system will probably have all of the legacy libraries/SDK (?). Not sure, but this bit me working on a laptop that came with Mojave installed.

Two things need to be changed in the configure command in order to compile on macOS 10.14 for a 64 bit architecture:

  • change -arch i386 to -arch x86_64
  • add flag --with-macosx-version-min=10.14 (or whatever the minimum supported SDK is on your platform

The following works fine for me:

../configure LDFLAGS="-arch x86_64" OBJCFLAGS="-arch x86_64" OBJCXXFLAGS="-arch x86_64" CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" CPPFLAGS="-arch x86_64" --disable-shared --with-libjpeg=builtin --with-libpng=builtin --disable-universal-binary --enable-debug --disable-gui --disable-unicode --with-macosx-version-min=10.14

Perhaps this could be presented in the wiki as an alternate command for newer systems?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant