MYNT-EYE-S-SDK
MYNT-EYE-S-SDK copied to clipboard
Compile error in synthetic.cc
System: Ubuntu 18.04 Command: make samples Abort due to errors in line 340 of synthetic.cc
Output of "make samples"
/MYNT-EYE-S-SDK-master/src/mynteye/api/synthetic.cc:340:26: error: no matching function for call to ‘make_shared<
Output of "make -n samples"
~/Downloads/MYNT-EYE-S-SDK-master$ make -n samples text="Make uninstall"; options=""; [ -z "" ] && options="1;33"; echo -e "\033[${options}m${text}\033[0m" sudo rm -rf /usr/local/include/mynteye/ sudo rm -rf /usr/local/lib/libmynteye.so* sudo rm -rf /usr/local/lib/cmake/mynteye/ sudo rm -rf /usr/local/share/mynteye/ text="Make build"; options=""; [ -z "" ] && options="1;33"; echo -e "\033[${options}m${text}\033[0m" work_dir="./_build"; build_dir=".."; [ -z ".." ] && build_dir=..; build_options=""; ([ -e "${work_dir}" ] || mkdir -p "${work_dir}") && cd "${work_dir}" && echo -e "CD: ${work_dir}" && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++ -DCMAKE_MAKE_PROGRAM=make ${build_options} ${build_dir} && make text="Make install"; options=""; [ -z "" ] && options="1;33"; echo -e "\033[${options}m${text}\033[0m" cd ./_build; sudo make install text="Make samples"; options=""; [ -z "" ] && options="1;33"; echo -e "\033[${options}m${text}\033[0m" work_dir="./samples/_build"; build_dir=""; [ -z "" ] && build_dir=..; build_options=""; ([ -e "${work_dir}" ] || mkdir -p "${work_dir}") && cd "${work_dir}" && echo -e "CD: ${work_dir}" && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++ -DCMAKE_MAKE_PROGRAM=make ${build_options} ${build_dir} && make
I meet the same problem because of opencv4. The Option.cmake file will discard camera module component when Opencv4 used (line39).However, after I commented that line,I found the code base doesn't support opencv4 indeed.
My branch should work with opencv4
https://github.com/truncs/MYNT-EYE-S-SDK