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

can't cross compiling for Android #338

Open
leleliu008 opened this issue May 8, 2024 · 2 comments
Open

can't cross compiling for Android #338

leleliu008 opened this issue May 8, 2024 · 2 comments

Comments

@leleliu008
Copy link

https://github.com/evaleev/libint/archive/refs/tags/v2.9.0.tar.gz

gmake[3]: Entering directory '/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_/src/lib/libint'
cp -f /Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/src/lib/libint/Makefile.library tmp/libint/Makefile
cd src; /Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_/src/lib/libint/../../../src/bin/libint/build_libint
/bin/sh: /Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_/src/lib/libint/../../../src/bin/libint/build_libint: cannot execute binary file
gmake[3]: *** [../../../src/lib/MakeRules:121: tmp/libint/libint2_params.h] Error 126
gmake[3]: Leaving directory '/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_/src/lib/libint'
gmake[2]: *** [/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/src/lib/Makefile:11: default] Error 1
gmake[2]: Leaving directory '/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_/src/lib'
gmake[1]: *** [/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/src/Makefile:11: default] Error 1
gmake[1]: Leaving directory '/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_/src'
gmake: *** [/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/Makefile:15: default] Error 1
gmake: Leaving directory '/Users/fpliu/.ndk-pkg/run/3131/android-21-arm64-v8a/libint/src/_'
@evaleev
Copy link
Owner

evaleev commented May 8, 2024

Cross compiling is not currently supported if you want to generate the library ... the library generator needs to run on the host. CMake harness may address this use case. For now you should use pre-generated library (make export) and cross compile that.

@leleliu008
Copy link
Author

@evaleev Thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants