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

Error in building with makefile #1

Open
jai1805 opened this issue Sep 16, 2022 · 1 comment
Open

Error in building with makefile #1

jai1805 opened this issue Sep 16, 2022 · 1 comment

Comments

@jai1805
Copy link

jai1805 commented Sep 16, 2022

I installed all the dependencies but when I try to compile and run the program I get this error below are the error logs

cd build && /usr/bin/cmake -DCMAKE_BUILD_TYPE=Release .. && make)
-- Found CUDA: /usr/local/cuda (found suitable version "11.6", minimum required is "10")
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:275 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
CMakeLists.txt:17 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CUDA: /usr/local/cuda (found version "11.6")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cloudlabgpu1/Downloads/CUDA-SfM-master
make[1]: Entering directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
make[2]: Entering directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
make[3]: Entering directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
make[3]: Leaving directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
[ 38%] Built target cudaSift
make[3]: Entering directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
[ 46%] Building NVCC (Device) object SfM/CMakeFiles/SfM.dir/SfM_generated_sfm.cu.o
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:4:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/kernels.h:19: warning: "enable_debug" redefined
19 | #define enable_debug false
|
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:41: note: this is the location of the previous definition
41 | #define enable_debug true
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:30:42: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
30 | checkCUDAErrorWithLine("Malloc failed!");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:32:42: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
32 | checkCUDAErrorWithLine("Malloc failed!");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:110:44: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
110 | checkCUDAErrorWithLine("A malloc failed!");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:113:40: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
113 | checkCUDAErrorWithLine("Kron failed!");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:275:38: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
275 | checkCUDAErrorWithLine("Before SVD");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:279:31: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
279 | checkCUDAErrorWithLine("SVD");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:376:54: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
376 | checkCUDAErrorWithLine("Not copyBoidsToVBO failed!");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:380:50: error: macro "checkCUDAError" passed 2 arguments, but takes just 1
380 | checkCUDAErrorWithLine("copyBoidsToVBO failed!");
| ^
In file included from /home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/sfm.cu:3:
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/SfM/common.h:18: note: macro "checkCUDAError" defined here
18 | #define checkCUDAError(msg) checkCUDAErrorFn(msg, FILENAME, LINE)
|
CMake Error at SfM_generated_sfm.cu.o.cmake:206 (message):
Error generating
/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build/SfM/CMakeFiles/SfM.dir//./SfM_generated_sfm.cu.o

make[3]: *** [SfM/CMakeFiles/SfM.dir/build.make:72: SfM/CMakeFiles/SfM.dir/SfM_generated_sfm.cu.o] Error 1
make[3]: Leaving directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
make[2]: *** [CMakeFiles/Makefile2:144: SfM/CMakeFiles/SfM.dir/all] Error 2
make[2]: Leaving directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
make[1]: *** [Makefile:106: all] Error 2
make[1]: Leaving directory '/home/cloudlabgpu1/Downloads/CUDA-SfM-master/build'
make: *** [GNUmakefile:19: Release] Error 2

@Astatin3
Copy link

I got the same error, Is this possibly due to a compatibility error?

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

2 participants