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

Added macos universal build. #97

Closed
wants to merge 1 commit into from

Conversation

langfort
Copy link
Contributor

Added a new macos_arch build option that allows specifying universal, x86_64, or arm64 (apple silicon). This defaults to universal which includes both x86_64 and arm64 builds. Both the FMOD libraries and godot-cpp library provide macos universal builds now so this allows fmod-gdnative to be able to be built for and run on macos arm64 architecture.

Without these changes running a godot project with the fmod-gdnative library on macos arm64 gives the following error: Can't open dynamic library: .../addons/fmod/libs/osx/libGodotFmod.osx.release.64.dylib, error: dlopen(.../addons/fmod/libs/osx/libGodotFmod.osx.release.64.dylib, 0x0002): tried: '.../addons/fmod/libs/osx/libGodotFmod.osx.release.64.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libGodotFmod.osx.release.64.dylib' (no such file).

Added a new macos_arch build option that allows specifying universal,
x86_64, or arm64 (apple silicon). This defaults to universal which
includes both x86_64 and arm64 builds.
@langfort
Copy link
Contributor Author

I see that the CI builds failed due to missing the FMODUSER and FMODPASS variables. Where do I set these in my fork to allow the CI builds to work? And should their values be my personal FMOD username and password?

@langfort
Copy link
Contributor Author

Okay after some poking around it looks like maybe pull requests from forks are not possible with the CI builds right now (issue #95) and a work-around is being a contributor in the project and creating a branch there instead of from a fork (pull-requests #93 and #96).

What should be the way forward here? Happy to help however I can!

@CedNaru
Copy link
Member

CedNaru commented Nov 21, 2021

I just sent you an invitation so you can be contributor on this repo

@langfort
Copy link
Contributor Author

Okay thanks, I will open a new pull request.

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.

None yet

2 participants