-
Notifications
You must be signed in to change notification settings - Fork 315
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
cmake can't compile test on android ndk r23b using ollvm 12 #26
Comments
I got similar issue with ld library too Can you try ollvm 14 for windows? https://github.com/sr-tream/obfuscator/#integrate-to-android-ndk . I can't compile with mingw You're lucky to be able to compile with VS2019 because I always failed with it, and I had to use mingw-w64 8.1.0. |
You may have no problem executing your instructions on Linux, but use VS2019 on windows. I suggest cmake adding |
I tried that, i'm always getting strange errors
|
Nvm, i used |
How to solve ld: error: unable to find library -latomic |
i've compiled ollvm on windows with Visual Studio 16 2019 with following cmds:
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=ARM -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;compiler-rt;lld" -Thost=x64 ../llvm
(i've also tried with only clang)cmake --build . --target ALL_BUILD --config Release -- /nologo /maxcpucount
then i copied build outputs to <toolchain_dir>/bin and <toolchain_dir>/lib64, when i try to compile simple android cmake project i get this error:
(i'm using android toolchain that is bundled with ndk with following settings: platform = android-19, stl = c++_static, abi = armeabi-v7a, i've tried using legacy toolchain, same results)
The text was updated successfully, but these errors were encountered: