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

Issue compiling on Asahi Linux #75

Open
Knucklesfan opened this issue Apr 8, 2024 · 4 comments
Open

Issue compiling on Asahi Linux #75

Knucklesfan opened this issue Apr 8, 2024 · 4 comments
Labels
bug Need a test The fix / implementation needs some polishing and testing on a side of the reporter or by others.

Comments

@Knucklesfan
Copy link

Hello.
I have been using SDL-Mixer-X as a core library on a game I have been developing. However, when attempting to port it to my arm64 Macbook Pro laptop running Asahi Fedora Remix, whenever I attempt to compile, I get this message:
-- Configuring done (1.8s)
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_ASM-ATT_COMPILE_OBJECT
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
gmake[2]: *** [CMakeFiles/AudioCodecs.dir/build.make:92: external/AudioCodecs/src/AudioCodecs-stamp/AudioCodecs-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/AudioCodecs.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Is this an issue with SDL-Mixer-X, or should I report this to my operating system maintainers instead?

@Wohlstand
Copy link
Member

Hello! I do remember sometimes this issue may appear, you can try to clean up entire build directory and run the build from the scratch. I do remember some similar issue appears at other folk, and then clean and rebuild goes success. Also, what CMake version you do run?

@branleur
Copy link

This seems to be a general ARM64 compilation problem when AudioCodecs attempts to compile libopus, as it occurs on a RasPi 4 and other ARM64 SBCs as well. I got around it by compiling AudioCodecs with -DAUDIOCODECS_BUILD_OPUS=OFF and using system opus instead.

@Wohlstand
Copy link
Member

Hello!
Recently I found the problem on macOS itself, and I fixed it now. Now it should build normally everywhere.

@Wohlstand Wohlstand added the Need a test The fix / implementation needs some polishing and testing on a side of the reporter or by others. label Sep 30, 2024
@Wohlstand
Copy link
Member

Just a note: perform a CLEAR build with generating of CMake config from the scratch.

@Wohlstand Wohlstand added the bug label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Need a test The fix / implementation needs some polishing and testing on a side of the reporter or by others.
Projects
None yet
Development

No branches or pull requests

3 participants