evaleev / libint

Libint: high-performance library for computing Gaussian integrals in quantum mechanics
Other
218 stars 96 forks source link

can't cross compiling for Android #338

Open leleliu008 opened 1 month ago

leleliu008 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

@evaleev Thank you for your reply.