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

errors building example-app, CMake not finding Eigen3 #15

Open
brianm-sra opened this issue Aug 3, 2020 · 7 comments
Open

errors building example-app, CMake not finding Eigen3 #15

brianm-sra opened this issue Aug 3, 2020 · 7 comments

Comments

@brianm-sra
Copy link

I successfully built the PCL for Android arm64-v8a libraries, but then got an error attempting
to build the example app. Appears to be an issue with Gradle configuration.

It is a bit confusing as the message

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.

conflicts with the fact that Gradle 5.1.1 was apparently downloaded / used

Also I found the 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

So then I changed ~/.conan/profiles/arm64-v8a to specify
compiler.version=9
instead of
compiler.version=8

and tried the build again

$ cd ~/Downloads/pcl-for-android/example-app
$ ./gradlew clean assemble
This time it seemed to get stuck at 26% EXECUTING of the :app:generateJsonModelDebug
step for a long time

Any suggestions ?

@brianm-sra
Copy link
Author

Followup:

<===----------> 26% EXECUTING [29m 20s]

Task :app:generateJsonModelDebug FAILED
CMake Error at androidsdk/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")

@brianm-sra
Copy link
Author

Are there instructions for getting pcl-for-android/example-app build
CMake to find Eigen which is installed at

/usr/local/include/eigen3:
Eigen signature_of_eigen3_matrix_library unsupported

/usr/local/share/eigen3:
cmake

@brianm-sra brianm-sra changed the title errors building sample app, gradle or cmake compiler version mismatch ? errors building example-app, CMake not finding Eigen3 Aug 3, 2020
@brianm-sra
Copy link
Author

I uninstalled eigen3-dev since the pcl / conan stuff has its own way of accessing eigen 3.3.7

However I still have two questions for building:

  1. How to build native-lib.so file for Android arm64-v8a ?

  2. Should I be using compiler version 8 or 9 ? Should I change the CMake or conan config ?

@13671447200
Copy link

Hello,brother,I have common question ,Did you compile successfully?

@brianm-sra
Copy link
Author

I worked around it for now by making a version of the example app that does not use conan, but instead uses local copies of the includes and libs from dependencies. But this is not ideal and I am planning to take another look at the cmake/conan build configuration files etc. to see if I can make the example app build work with conan.

If the original bashbug author can provide any suggestions, it would be appreciated.

@brianm-sra
Copy link
Author

Oh, and after my August 5 comment, I realized that the example app includes a file named
native-lib.cpp , which is supposed to be (should be, if no errors) built to native-lib.so as part of building the example app. Originally I was confused about where that .so is supposed to come from.

@mei123hao
Copy link

I met the same problem, Have you solved it ?

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

3 participants