-
Notifications
You must be signed in to change notification settings - Fork 17
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
Build on macOS arm64 fail #430
Comments
Hi! Hmm, you installed Allegro from brew for amr, but dub/ldc2/ld won't find the Allgero add-on libraries. Please post the output of:
Some ideas for how to proceed:
Thanks for giving Lix a shot on the different Macs. I don't have one myself to test. It's great to hear that it builds and runs fine on Intel macOS. |
Hi. Thank you so much for reply. First in new apple silicon chips all package change to new directory:
I change
but got error all the times:
For sure is not correct patch of allegro. |
Thanks! It's reasonable that Homebrew installs outside of Idea A. On POSIX systems, dub will ask pkg-config for the library paths and names.
If this solves the problem, I'll add pkg-config to the build instructions for macOS. I've already added pkgconf or pkg-config to the instructions for some Linux distros; it makes a lot of sense to add it to macOS, too. Idea B. If idea A didn't work, let's try again to force the exact paths by hand. In
Then rebuild Lix. It looks funky to add directory paths in If this is the only solution, it makes it harder to support for me. I'd rather not ship Lix with such custom paths per platform. It would be much better if pkg-config solved the problem. |
Thank you for help. idea A: what do you mean - "Rebuild Lix without changing any files." ?? No idea how to rebuild it but I installed pkg-config and try to build fresh git clone and still error
Idea B not working:
or
|
Yep, with "rebuild Lix", I meant: Try again to compile Lix by running dub. Hmm, on idea B, the Error "ld: library not found for -l/opt/homebrew/lib/allegro_acodec" sounds like passing full dirs in Idea C: We can add the library directory manually for lookup.
Then run dub again to compile Lix. |
@SimonN thank you - this idea working well. Game build but have some issues with graphic sprite. I thing some png files alfa layer are pink and game looks like this: |
On macOS ARM64, ld didn't find the Allegro libs even with pkg-config installed; see issue 430 [1]. Let's try what Allegro itself suggests [2] to pass to pkg-config. dub will call pkg-config to resolve the "libs": section if pkg-config is installed on a Posix system, and macOS is Posix. This affects Lix's build on all Linuxes and on macOS, but at least on my Arch Linux, Lix still builds well. [1]: SimonN/LixD#430 [2]: https://github.com/liballeg/allegro5/blob/master/README_pkgconfig.txt
Cool to see it run on ARM! I'll file a separate bug for the pink colors. About what to put in my
i.e., append
dub will first try to pass the names from For my next release, I'm planning: I'll add pkg-config to the macOS build instructions, and write into |
@SimonN thank you for answer. I try config like this in
Build log:
Still this same issue with pink transparent alpha layer. |
Editing |
On macOS ARM64, ld didn't find the Allegro libs even with pkg-config installed; see issue 430 [1]. Let's try what Allegro itself suggests [2] to pass to pkg-config. dub will call pkg-config to resolve the "libs": section if pkg-config is installed on a Posix system, and macOS is Posix. This affects Lix's build on all Linuxes and on macOS, but at least on my Arch Linux, Lix still builds well. [1]: SimonN/LixD#430 [2]: https://github.com/liballeg/allegro5/blob/master/README_pkgconfig.txt
On macOS ARM64, ld didn't find the Allegro libs even with pkg-config installed; see issue 430 [1]. Let's try what Allegro itself suggests [2] to pass to pkg-config. dub will call pkg-config to resolve the "libs": section if pkg-config is installed on a Posix system, and macOS is Posix. This affects Lix's build on all Linuxes and on macOS, but at least on my Arch Linux, Lix still builds well. [1]: SimonN/LixD#430 [2]: https://github.com/liballeg/allegro5/blob/master/README_pkgconfig.txt
Hi @naymapl, since Lix 0.9.43, I've permanently changed Please discard your custom |
I still believe: In Lix 0.9.43 and Lix 0.9.44, the Reopen or file a new bug if you run into problems again. :-) |
Hello.
I build on Intel macOS just fine. I try to build it on my mac mini m1 and is fail. Install allegro from brew for amr. with no issue but build always fail. Any chance to add support for arm is well ?
The text was updated successfully, but these errors were encountered: