-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Allow for cross compilation on iPhone on Silicon Macs #25782
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
base: master
Are you sure you want to change the base?
Allow for cross compilation on iPhone on Silicon Macs #25782
Conversation
Added compile flag --enable-iphonesimulator Documented this build instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I guess it's an improvement but it still doesn't look optimal to specify all of --with-osx_iphone
, --enable-iphonesimulator
and --with-macosx-sdk
. I'm pretty sure we could have --with-osx_iphonesimulator
replacing the first 2, but I also wonder if we can't either deduce that simulator should be used from the SDK provided (i.e. if it contains iPhoneSimulator
in its name) or, maybe more logically, choose iphonesimulator
SDK if the option to build for the simulator is used? I.e. why can't we just make specifying only --with-osx_iphonesimulator
work?
|
||
../configure --with-osx_iphone --enable-iphonesimulator --enable-monolithic \ | ||
--disable-shared --with-macosx-sdk=$(xcrun --sdk iphonesimulator --show-sdk-path) \ | ||
--host=aarch64-apple-darwin24.6.0 --build=aarch64-apple-darwin --without-libtiff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using --host=$($wx/config.guess)
would make it unnecessary to tell people to replace 24.6.0 above and AFAICS doesn't have any real drawbacks. I'm also rather surprised that you have to specify both host
and build
that are essentially the same...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have an environment variable like "wx" set, so I don't understand how this could find the config.guess script. What did work was this:
../wxWidgetsRR/configure --with-osx_iphone --enable-iphonesimulator --enable-monolithic
--disable-shared --with-macosx-sdk=$(xcrun --sdk iphonesimulator --show-sdk-path)
--host=$(../wxWidgetsRR/config.guess) --build=aarch64-apple-darwin --without-libtiff
but then I have to write the path twice. I have not found a trick to get the main directory into the options.
Co-authored-by: VZ <[email protected]>
The title of the last commit is wrong, it now works with just "--with-iphonesimulator" instead of two options |
Added compile flag --enable-iphonesimulator
Documented this build instructions