-
Notifications
You must be signed in to change notification settings - Fork 20
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
sacd_extrackt arm64 #1
Comments
I think we just need to change this part: Extra flags for GCCif (CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang")) in STRING(TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPER) |
anyway then comes to this error [ 97%] Building C object CMakeFiles/sacd_extract.dir/tmp/sacd-ripper/libs/libsacd/scarletbook_xml.c.o |
Dear Antonello, |
Buonasera @antonellocaroli , could you try again to compile on ARM hardware. For Linux on RPis you need to install the following dependency:
Regards, ArminiusTux |
I finally managed to build for arm64 on M1 Mac:
In Xcode you can see generated errors more easily, I added two frameworks In Build Setting > Apple Clang Custom Compiler flags > other flags > debug
|
The last working version for me on M series Mac is MrWicked's 0.3.6 - is there a newer server side that I need for your client? When I try to compile, I get a bunch of alignment errors and it will not link. I wonder if the packed structs need a bit of rethinking? I also noticed that mkdir is configured with a char* 2nd parameter instead of a mode_t (int). I'm honestly not sure where to start with the alignment issues, it's been a while since I coded in C and this seems to be a side-effect of clang, 64bit registers and ARM CPUs. I have tried to compile with GCC, clang and zig cc and none of them are successful. |
A) Try to build on your macOS Mx/Apple Silicon using brew and cmake: xcode-select --install B) where did you spotted that mkdir configured with a char* 2nd param ? |
Hello Fayep! Have you tried again to compile using the above A) instructions? |
Hi, sorry for taking a while to get back to you. I updated my XCode and that seems to have fixed everything. Compiled first time. Thanks. |
would you be able to adapt the configuration and build files so that arm64 and arm build is also possible?
as setmind did
https://github.com/setmind/sacd-ripper
The text was updated successfully, but these errors were encountered: