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
Directory structure mismatch for new Android NDK - libgcc.a: No such file or directory #491
Comments
What a pain. |
There must have been a similar issue with the 4.6 version as it had |
25247b4 - didn't this resolve it? (only for the problem in first post, not the |
Oh yeah that commit happened around the time when I posted the ticket, lgtm |
You were first. I think @jgranick saw your issue and fixed it right away, but didn't mention it in commit message/posted here. Unrelated question: now we've got to wait for binary version bump to get this patch via haxelib? |
Is this one working now? |
When compiling with the latest android NDK I'm getting a
This is because the folder structure has changed,
android-toolchain.xml
is looking inlib name="${prebuiltBase}/lib/gcc/${EXEPREFIX}/${TOOLCHAIN_VERSION}/libgcc.a"/>
which results in :
/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9/libgcc.a
but the file is in :
/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/libgcc.a:
https://github.com/HaxeFoundation/hxcpp/blob/master/toolchain/android-toolchain.xml#L162
So although the TOOLCHAIN_VERSION is correctly set to 4.9 ( and works for all other folders ), the folder structure in this case should resolve to 4.9.x. I guess adding a new variable like TOOLCHAIN_SUBVERSION or detecting if the folder exists could resolve this
The text was updated successfully, but these errors were encountered: