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

Compiling errors #6

Open
dougsouza opened this issue Aug 26, 2016 · 11 comments
Open

Compiling errors #6

dougsouza opened this issue Aug 26, 2016 · 11 comments

Comments

@dougsouza
Copy link

Hi @piiswrong,

I am having trouble to compile your caffe version. It seems that there some incompatibility with other libraries that it links to. Would please inform which version of the libraries you used? Like boost and opencv versions.

Thanks,

Doug

@hkrds1996
Copy link

I use the last version of cudnn. I also can't build the author's caffe version. Why don't rewrite the code of author? And if you could run your code, could you please send it to me?

@dougsouza
Copy link
Author

dougsouza commented Nov 3, 2016

@Hukangrong it took me a while to make it work, I didn't make any changes to the code. The OpenCV version that worked for me is 2.4.13 and boost is 1.54. I had to build everything from source, it was a pain. This is an old version of caffe, I don't think it even has support to cudnn.

@hkrds1996
Copy link

@dougsouza Thank you.
But when I buildt the author's caffe package, I got the error:
/usr/bin/ld: cannot found -lcufft
/usr/bin/ld: cannot found -lnpps
/usr/bin/ld: cannot found -lnppi
/usr/bin/ld: cannot found -lnppc
/usr/bin/ld: cannot found -lcudart

Do you also have the error? If have, could you please tell me how to deal with it?

@dougsouza
Copy link
Author

@Hukangrong, I didn't have these issues. It seems that cuda stuff is missing, do you have cuda toolkit installed? In addition to have cuda toolkit installed, you also have to make sure cuda stuff is available in your path.

@hkrds1996
Copy link

@dougsouza Thanks, but I could compile the office caffe package successfully.

@MihaiDogariu
Copy link

Hi all,
I have a problem building the author's caffe package as well. This is what I get:
JPEGDataLayer.cpp:(.text._ZN5boost9iostreams18mapped_file_source4openINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKNS0_24basic_mapped_file_paramsIT_EE[_ZN5boost9iostreams18mapped_file_source4openINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEvRKNS0_24basic_mapped_file_paramsIT_EE]+0x14b): undefined reference to `boost::iostreams::mapped_file_source::open_impl(boost::iostreams::basic_mapped_file_paramsboost::iostreams::detail::path const&)'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/extract_features.bin.dir/build.make:132: recipe for target 'tools/extract_features' failed
make[2]: *** [tools/extract_features] Error 1
CMakeFiles/Makefile2:4929: recipe for target 'tools/CMakeFiles/extract_features.bin.dir/all' failed
make[1]: *** [tools/CMakeFiles/extract_features.bin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Above this error there are many other similar errors, all about "undefined reference to `boost::iostreams::mapped_file_source::". Any help is greatly appreciated. Thanks.

@hkrds1996
Copy link

@MihaiDogariu you don't need to do "make runtest" successfully. just ignore the error of "make runtest". and you also can run the authors' program.

@MihaiDogariu
Copy link

@Hukangrong Forgot to mention that those errors occurred when I ran only the "make" command from the /caffe/build directory. I didn't get to the part with "make runtest".
All I could do was to create the "build" directory, run "cmake" from it and then run "make". I believe that there are several files that were not built correctly that prevent me from running the author's program.

@hkrds1996
Copy link

@MihaiDogariu maybe you do something worry before run "Make". when i compiled the caffe, this error only happened in "Make runtest" step.

@hkrds1996
Copy link

hkrds1996 commented Jan 10, 2017

@MihaiDogariu this caffe also couldn't be complied by cmake in my marchine. So you can just do "Make all", "Make test" and "Make runtest" in caffe directory.

@MihaiDogariu
Copy link

Hi @Hukangrong. Thank you for the info. I have tried now with "make" command, and after solving the issues related to the hdf5 header I was able to build the author's caffe version.

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