Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

RobertRoeb
Copy link

Added compile flag --enable-iphonesimulator
Documented this build instructions

  Added compile flag --enable-iphonesimulator
  Documented this build instructions
Copy link
Contributor

@vadz vadz left a 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
Copy link
Contributor

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...

Copy link
Author

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.

@RobertRoeb
Copy link
Author

The title of the last commit is wrong, it now works with just "--with-iphonesimulator" instead of two options

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

Successfully merging this pull request may close these issues.

2 participants