pcl-for-android
pcl-for-android copied to clipboard
Detected a mismatch for the compiler version between your conan profile settings and CMake:
I have compiled arm64-v8a sucessfully, but when I make the project, there is an error:
C/C++ debug|arm64-v8a : CMake Error at /home/ming/AndroidStudioProjects/pcl-for-android/example-app/app/.cxx/cmake/debug/arm64-v8a/conanbuildinfo.cmake:1065 (message): Detected a mismatch for the compiler version between your conan profile settings and CMake: Compiler version specified in your conan profile: 8
Compiler version detected in CMake: 9.0
Please check your conan profile settings (conan profile show [default|your_profile_name])
How should I do? Thanks.
I modified the NDK to android-ndk-r19c, the problem has been solved, but another error exists:
C/C++ debug|arm64-v8a : CMake Error at /home/ming/Android/Sdk/cmake/3.10.2.4988404/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "2.91.0")
The error
Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "2.91.0")
has been addressed by delete the file "FindEigen3.cmake" in : ~/.conan/data/eigen/3.3.7/conan/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/
And, the NDK version of r20 also works, I did not read the readme clearly before.
Finally, if git clone about errors occurs in your Cross-compilation, modify all urls from"https" to "git" in conanfile.py in ~/AndroidStudioProjects/pcl-for-android-master/conanfiles/flann, ~/AndroidStudioProjects/pcl-for-android-master/conanfiles/lz4, and ~/AndroidStudioProjects/pcl-for-android-master/conanfiles/pcl. This may help someone else.
The solutions really help me! Thanks a lot!