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
caffe cmake build erros #5031
Comments
I have the same problem apparently it related to disable "Static Linking of Cuda" for OpenCV in CMake but I dont really know how to do that. Let me know if you manage to fix it |
i still not fix it,let us keep waiting someone else who have experience on this problem to give us some tips~ |
I have solved this problem with the next steps I hope it helps you too. 1 Once you are in the build directory |
Oh,thx~it did work~,it is very grateful to you~
2016-11-28 5:51 GMT-05:00 ferchonavarro <notifications@github.com>:
… I have solved this problem with the next steps I hope it helps you too.
1 Once you are in the build directory
ccmake ..
This will open like a gui in the terminal
2 if you press "t" you get all the possible options
3 then I have disable CUDA_USE_STATIC_CUDA_RUNTIME (if you are on teh flag
just press enter to enable On or disbale OFF)
4. press c to configure
5 press g to generate
6 make all
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5031 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ARdUvrxlLh0e7-ZQbmkjrjJvTSRDxTN0ks5rCrI7gaJpZM4K8bBp>
.
|
great I am glad it works for you too! Cheers |
Closing since it looks like the problem has been solved? |
hi @ferchonavarro |
@albertyou2 yes it should work and use CUDA I have tested it. |
1)It is an excellent solution, thanks a lot. |
I dont get the CUDA_USE_STATIC_CUDA_RUNTIME option in my GUI ? |
+1 |
1 similar comment
+1 |
I faced the same error, could not resolve it with the suggested solution. |
Hi ,when is try to use cmake to build ,i encounter this problem ( have cmake .. errors happened in make all -j4) ,are there anyone have encountered these errors:
[ 82%] Linking CXX shared library ../../lib/libcaffe.so
/usr/bin/ld: cannot find -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
src/caffe/CMakeFiles/caffe.dir/build.make:3284: recipe for target 'lib/libcaffe.so.1.0.0-rc3' failed
make[2]: *** [lib/libcaffe.so.1.0.0-rc3] Error 1
CMakeFiles/Makefile2:272: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed
make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
i try to fix this but feel hopeless~ please give some help ~ thx
The text was updated successfully, but these errors were encountered: