I’ve installed the 2020.2.1 raspberry pi image. When I try to build the cpp-multiCameraServer, I get the following output…
pi@frcvision(rw):~/examples/cpp-multiCameraServer$ make install
g++ -pthread -g -Og -c -o main.o -std=c++17 -I/usr/local/frc/include -I/usr/local/frc/include/opencv -I/usr/local/frc/include main.cpp
In file included from /usr/include/c++/8/vector:69,
from main.cpp:11:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& …) [with _Args = {{anonymous}::CameraConfig}; _Tp = {anonymous}::CameraConfig; _Alloc = std::allocator<{anonymous}::CameraConfig>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<{anonymous}::CameraConfig>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<{anonymous}::CameraConfig*, std::vector<{anonymous}::CameraConfig> >’} changed in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc: In member function ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& …) [with _Args = {{anonymous}::CameraConfig}; _Tp = {anonymous}::CameraConfig; _Alloc = std::allocator<{anonymous}::CameraConfig>]’:
/usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<{anonymous}::CameraConfig*, std::vector<{anonymous}::CameraConfig> >’ changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)…);
^~~~~~~~~~~~~~~~~
g++ -pthread -g -o multiCameraServerExample main.o -L/usr/local/frc/lib -lwpilibc -lwpiHal -lcameraserver -lntcore -lcscore -lopencv_dnn -lopencv_highgui -lopencv_ml -lopencv_objdetect -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_calib3d -lopencv_videoio -lopencv_imgcodecs -lopencv_features2d -lopencv_video -lopencv_photo -lopencv_imgproc -lopencv_flann -lopencv_core -lwpiutil -latomic -Wl,–unresolved-symbols=ignore-in-shared-libs
cp multiCameraServerExample runCamera /home/pi/
Should this build right out of the box?
Thanks.