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

[HowTo] How to build it for iOS and VisionOS #289

Closed
Phantomxm2021 opened this issue Feb 10, 2024 · 3 comments
Closed

[HowTo] How to build it for iOS and VisionOS #289

Phantomxm2021 opened this issue Feb 10, 2024 · 3 comments

Comments

@Phantomxm2021
Copy link

We are developing an emulator for VisionOS but we don't know how to build it from source.
Does anyone know?

@warmenhoven
Copy link

Every core in the libretro project that is built and available on the buildbot uses the gitlab CI infrastructure. They all have a .gitlab-ci.yml file, and almost all of them reference the helper template scripts.

For iOS for mgba, the command that is executed is:
make -C . -f Makefile.libretro platform=ios-arm64

@Phantomxm2021
Copy link
Author

Every core in the libretro project that is built and available on the buildbot uses the gitlab CI infrastructure. They all have a .gitlab-ci.yml file, and almost all of them reference the helper template scripts.

For iOS for mgba, the command that is executed is: make -C . -f Makefile.libretro platform=ios-arm64

Thanks. But when I build for iOS I get a nerror, do you know how to fix it?

ld: building for 'iOS', but linking in object file (/Users/xxx/Downloads/mgba-master/src/arm/arm.o) built for 'macOS'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mgba_libretro_ios.dylib] Error 1

@warmenhoven
Copy link

make clean

Looks like you previously built it for macOS. The intermediary files go to the same place for all platforms so anytime you change your platform you'll need to clean first.

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

2 participants