-
Notifications
You must be signed in to change notification settings - Fork 24
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
Exception when compile for Mac M1 #100
Comments
Try to install lld from brew. Also you may try to install gcc. |
Unfortunately I have the same problem even with the brew installation
I changed link to :
|
Add |
Here the logs :
|
Can you prepare small repro for me? |
Yes here it is : https://gitlab.satoris.lu/satoris/satoris-ocr |
Try to set linker in your config to
|
We already tried this this morning, but we had the same problem on the linker
|
Send me trace. |
|
Try to change in link field But I assume this won't change anything. |
No, same result unfortunately |
Ok, change all |
It's ok for the Linker, now there's another error :
|
Remove |
You will need to import checks from somewhere or run binaries on android or on emulator to get check values (or enter them by yourself - pretty long list). |
It seems that the library boost does not compile well on Mac after the checks were removed. What do you think?
|
What checks? Also update sw |
Rather than using the Json configuration, the command use Clang ++ (/usr/bin/clang++). Here's the trace of the command :
|
Did you upgrade sw? It says July build month instead of August. |
My bad, I thought I did it. I did checks manually and import it, but I have a new error :
|
Run without |
Without -static :
With -static :
|
Did you have |
Oh, I need output without |
No, no
For the checks without checks.3.txt :
|
No, no, it's not what we need. You have shared build. It fails on the last step. |
Replace shared with static in my prev. post. |
I'm not sure where this shared build (and its directory) can be found. I looked in cfg.json but didn't find it. There are other folders with this cfg.json inside it. Is there a chance that it is it ?
|
"library": "shared", Look for |
Ok I got it. Here are the logs after the checks have been copied :
|
You either have old sw or old android config. |
It's strange because I updated sw as you said with It seems that the android libc has built-in support for pthreads, is there no way to remove |
I removed it from dependencies. |
same error unfortunately
|
Put your command please. |
Here with static :
Error :
And with
Error ( same for both ) :
|
So, we've made some progress but some only. By modifying the clang script we could get rid of pthread linker issue. Note that this pthread arg is indeed not passed for compilation of .so, but is given for compiling of first .a lib.
Compilation of the .a is a success and it export methods we seem to need:
However the last linkage fails:
Any idea why linker using /Users/loganwillaumez/Documents/1-Work/110-Professionnal/Satoris/Projects/satoris-ocr/.sw/out/win2android/libsatoris.ocr-0.0.1.a does not manage to use the symbols to build the shared library? |
I'll test this myself on mac. |
Can you send me yours |
Yes here : |
No, it still asks me for manual checks. |
It's the checks.3.txt that I have on my static folder. On my way I have the checks correct (until the last one who breaks) : One of the shared folders's checks.3.txt is larger than its static counterpart after some operations : |
Ok, just send me your |
Here it is : |
Can you try to build for android platform 30, not 21? |
Yes, here are the new checks : |
Try this binary and static build. |
Hello sir ! Thanks for the new binary, the lpthread problem has been resolved. Therefore, I have this log error :
Do you have any idea ? |
Yes, you must mark symbols as exported or whatever. |
In my windows, everything is fine, I am able to build on it without any problems. This problem only occurs on my Mac m1. |
Tried this and that. Maybe some mac related android issue. |
Hello I tried to compile on a Mac M1, but I received this message Error :
I've had a similar issue with librarian not found, but it's ok after some tweaks.
The Json :
Do you have any idea of what's hapenning?
The text was updated successfully, but these errors were encountered: