Caffe for Raspberry Pi

526 views
Skip to first unread message

Mesut Pişkin

unread,
Feb 24, 2017, 2:33:47 PM2/24/17
to Caffe Users


Hello Everybody,
I'm trying to build Caffe for Raspberry Pi 2 but I have a problem, I get an error like the following, do you help me? What could be the cause of the error.



Error Message:

 

make[2]: *** No rule to make target '/usr/local/lib/libraspicam.so', needed by 'lib/libcaffe.so.1.0.0-rc3'.  Stop.

 

CMakeFiles/Makefile2:235: 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


Screenshot


Shahmi

unread,
Feb 24, 2017, 2:53:33 PM2/24/17
to Caffe Users
It seems you didn't have libraspicam.so library installed on the target. Perhaps, you can check if the library exists or not in the /usr/local/lib directory.

Mesut Pişkin

unread,
Feb 24, 2017, 3:59:24 PM2/24/17
to Caffe Users
Thanks I have solved this problem but I am getting a new error, can you help me
Error message:
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTget_dataset_ndims'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTread_dataset_int'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTfind_dataset'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTmake_dataset_double'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTmake_dataset_int'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTread_dataset_float'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTmake_dataset_float'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTget_dataset_info'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTread_dataset_string'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTread_dataset_double'
../lib/libcaffe.so.1.0.0-rc3: undefined reference to `H5LTmake_dataset_string'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:129: recipe for target 'tools/upgrade_solver_proto_text' failed
make[2]: *** [tools/upgrade_solver_proto_text] Error 1
CMakeFiles/Makefile2:435: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed
make[1]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2



24 Şubat 2017 Cuma 22:53:33 UTC+3 tarihinde Shahmi yazdı:

Shahmi

unread,
Feb 24, 2017, 5:16:31 PM2/24/17
to Caffe Users
Looks like you were having a linking error. Could be the case the path where the include files were compiled against was not correct.

Eugen Lange

unread,
Jul 24, 2017, 7:01:33 AM7/24/17
to Caffe Users

Hello,

i have the same problem. How did you solve it?

thank you.

Jonathan R. Williford

unread,
Jul 24, 2017, 3:07:14 PM7/24/17
to Eugen Lange, Caffe Users
It looks like you can turn off support for raspicam:
USE_RASPICAM

If you have the flexibility, you might want to try caffe2 with Raspberry Pi:

Best,
Jonathan

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/d6336ee4-e821-4a26-94f8-87ca8e7832a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages