Cannot Build simple CPP program that uses Caffe

77 views
Skip to first unread message

totok

unread,
Apr 1, 2020, 10:05:13 AM4/1/20
to Caffe Users
Hello everyone,
I'm a French engineering student starting an internship in DataSciences and Embedded Systems. I created a POC in python using Keras for my project, but I need something optimized to run on an Raspberry PI. Thus, I want to switch to C++. I've been struggling for 2 days to build and use the Caffe API in C++.

I firstly installed Caffe using the APT version ( sudo apt install caffe-cpu ), but when I try to build a simple project (found here ), it crashed at link editing.
I also tryied to install Caffe from sources and ran all the tests, but same result.

Here is my CMakeLists.txt :

cmake_minimum_required(VERSION 3.15)
project
(caffeTest)

set(CMAKE_CXX_STANDARD 14)
find_package
(OpenCV REQUIRED)
find_package
(Caffe REQUIRED)

add_executable
(caffeTest main.cpp)

target_link_libraries
(caffeTest ${Caffe_LIBS})
target_link_libraries
(caffeTest ${OpenCV_LIBS})

System info : 
  • Ubuntu 18.04
  • cmake version 3.10.2
  • gcc version 4.8.5 (I downgraded for the Caffe build)
  • g++ version 7.5.0

I'm out of options and would love to get some help !
Thank you for your time and answers.

monicabrown brown

unread,
May 4, 2020, 4:50:54 PM5/4/20
to Caffe Users

Hello,This is monica kindly get back to me Please for a special reason I am Waiting for you

Reply all
Reply to author
Forward
0 new messages