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

cmake configuration error: compiling a test executable failed #67

Closed
bishesh opened this issue Aug 3, 2017 · 14 comments
Closed

cmake configuration error: compiling a test executable failed #67

bishesh opened this issue Aug 3, 2017 · 14 comments

Comments

@bishesh
Copy link

bishesh commented Aug 3, 2017

I'm trying to install from source in ubuntu 16.04 but configuring using cmake fails with the following error:

OpenCL disabled, not looking for it

 ANN not found, disabling it in benchmarks

 FLANN not found, disabling it in benchmarks

 CMake Error at tests/CMakeLists.txt:95 (message):
   Compiling a test executable failed.
 Call Stack (most recent call first):
   tests/CMakeLists.txt:104 (try_compile_cloud_types)

Attached are the cmakecache and log files (log file renamed since uploading .log is not supported).
CMakeCache.txt

CMakeOutputlog.txt

@SaiPrabhaMergu
Copy link

I face the same issue, How did you solve this? , could you share the solution

@HannesSommer
Copy link
Collaborator

Which compiler are you using? It is tested with (mostly vanilla) 16.04. And I cannot reproduce myself neither with g++ 5.4 nor clang 3.8.

Could you please provide the output of cmake --trace ?

@bishesh
Copy link
Author

bishesh commented Oct 5, 2017

@HannesSommer The output of cmake --trace is attached here. My g++ version: g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609.
@SaiPrabhaMergu The problem is not solved yet.

cmakeTrace.txt

@HannesSommer
Copy link
Collaborator

Very strange. Given these versions I must assume the difference is somewhere else. Maybe in cmake? (could you please report cmake --version).
Also, based on that idea could you please try out the PR #71 (branch fix/removeOutOfPlaceCommas), and report back if it fixes the issue?

@bishesh
Copy link
Author

bishesh commented Oct 5, 2017

ccmake version 3.5.1
I also tried PR #71 removing commas, but I still get exactly the same error.

@SaiPrabhaMergu
Copy link

I am trying to build it on windows, using cmake. The error which I see is as follows:

CMake Error at tests/CMakeLists.txt:95 (message):
Compiling a test executable failed.
Call Stack (most recent call first):
tests/CMakeLists.txt:104 (try_compile_cloud_types)

I have tried PR #71, but still it failed.

@HannesSommer
Copy link
Collaborator

Thanks for the feedback. This seems to be a tough one. As I cannot reproduce I need more help from you. Could you please try #72 and upload the output of cmake --trace 2>&1 (assuming bash syntax to merge the error stream into the standard output) ?

@SaiPrabhaMergu
Copy link

I am trying to build this code for Visual Studio 2015 x64.
cmake-gui version :3.3
Eigen version:3.3.4
Boost version:1.65.1
grep version:2.5.4
I face another error now.

cmake warning Policy CMP0054 is not set:

Can I get your comment on this

@HannesSommer
Copy link
Collaborator

HannesSommer commented Oct 9, 2017

I have no experience with libnabo on Windows. Maybe others do?

In any case: you posted a warning (that should not be triggered through the changes in #72). Are you sure that it is your actual problem?

@bishesh
Copy link
Author

bishesh commented Oct 9, 2017

Thanks @HannesSommer ! Trying #72 helped me figure out the problem. In the error output I could now see "Eigen/Core not found". The EIGEN_INCLUD_DIR path I was providing until now TOP-MOST-EIGEN-DIR/Eigen, but I now see that I should rather provide TOP-MOST-EIGEN-DIR. It should have issued proper error of not getting the expected path for Eigen! Anyway, thanks for your help. I have now successfully built the library.

@HannesSommer
Copy link
Collaborator

Awesome. This is great news! This issue helped improving the feedback of the CMake code!

@SaiPrabhaMergu
Copy link

I was able to build the library too, Following are the steps I followed

  1. To escape error: "cmake warning Policy CMP0054 is not set:" add line "cmake_policy(SET CMP0054 OLD)" in CMakeLists.txt(I added in line 2)
  2. I also had to remove the line "add_definitions(-Wall -Wextra)" line 44 in CMakeLists.txt, this was stopping the nabo.lib from forming.
    The above steps helped me solve the issues. So I thought I should share.

@HannesSommer
Copy link
Collaborator

Ah, great. Thanks for sharing. I'll incorporate these changes soon ( recent Cmake versions / for windows)

@SaiPrabhaMergu
Copy link

@HannesSommer sure, I will get back to you.

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