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

make errors #248

Closed
naonaomxy opened this Issue Nov 20, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@naonaomxy

naonaomxy commented Nov 20, 2017

Thank you for your viewing for my question firstly.
When I 'make' colmap in /build, there is something wrong with it as follows:

**In file included from /usr/local/cuda/include/common_functions.h:50:0,
from /usr/local/cuda/include/cuda_runtime.h:115,
from :0:
/usr/local/cuda/include/crt/common_functions.h:64:24: error: token ""CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, and CUDACC_VER_BUILD instead."" is not valid in preprocessor expressions
#define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, and CUDACC_VER_BUILD instead."
^
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:364:33: note: in expansion of macro ‘CUDACC_VER
#if defined(CUDACC_VER) && CUDACC_VER >= 70500 && __cplusplus > 199711L
^
CMake Error at gpu_mat_test_generated_gpu_mat_test.cu.o.cmake:203 (message):
Error generating
/home/yang/data/sfm/colmap/colmap/build/src/mvs/CMakeFiles/gpu_mat_test.dir//./gpu_mat_test_generated_gpu_mat_test.cu.o

src/mvs/CMakeFiles/gpu_mat_test.dir/build.make:63: recipe for target 'src/mvs/CMakeFiles/gpu_mat_test.dir/gpu_mat_test_generated_gpu_mat_test.cu.o' failed
make[2]: *** [src/mvs/CMakeFiles/gpu_mat_test.dir/gpu_mat_test_generated_gpu_mat_test.cu.o] Error 1
CMakeFiles/Makefile2:4991: recipe for target 'src/mvs/CMakeFiles/gpu_mat_test.dir/all' failed
make[1]: *** [src/mvs/CMakeFiles/gpu_mat_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....**

Could you help me to deal with it? Thank you very much.
Ubuntu 16.04
CUDA 9.0
CuDNN 7.0.4
gcc 5.4.0
boost 1.58
Eigen3

@ahojnnes

This comment has been minimized.

Show comment
Hide comment
@ahojnnes

ahojnnes Nov 20, 2017

Contributor

Seems like you use an old version of Eigen. Can you try to use a newer version?

Contributor

ahojnnes commented Nov 20, 2017

Seems like you use an old version of Eigen. Can you try to use a newer version?

@ahojnnes

This comment has been minimized.

Show comment
Hide comment
@ahojnnes

ahojnnes Nov 26, 2017

Contributor

Closing this due to lack of feedback. Feel free to follow up in case there is another questions.

Contributor

ahojnnes commented Nov 26, 2017

Closing this due to lack of feedback. Feel free to follow up in case there is another questions.

@ahojnnes ahojnnes closed this Nov 26, 2017

@kitizz

This comment has been minimized.

Show comment
Hide comment
@kitizz

kitizz Dec 2, 2017

For anyone having the same issue, it revolves around changes made in CUDA 9 that Eigen releases are yet to catch up with. (My machine's CUDA was upgraded under me)

I had success by

  1. Uninstalling Eigen and Ceres
  2. Cloning Eigen master hg clone https://bitbucket.org/eigen/eigen
  3. Following the ol' Cmake, make, install rigmarole for Eigen
  4. Rebuilding, and installing Ceres
  5. Building COLMAP source

Great success

kitizz commented Dec 2, 2017

For anyone having the same issue, it revolves around changes made in CUDA 9 that Eigen releases are yet to catch up with. (My machine's CUDA was upgraded under me)

I had success by

  1. Uninstalling Eigen and Ceres
  2. Cloning Eigen master hg clone https://bitbucket.org/eigen/eigen
  3. Following the ol' Cmake, make, install rigmarole for Eigen
  4. Rebuilding, and installing Ceres
  5. Building COLMAP source

Great success

@ahojnnes

This comment has been minimized.

Show comment
Hide comment
@ahojnnes

ahojnnes Dec 3, 2017

Contributor

Thanks for the feedback. Glad you could resolve it.

Contributor

ahojnnes commented Dec 3, 2017

Thanks for the feedback. Glad you could resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment