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.