RidgeRun / gst-inference

A GStreamer Deep Learning Inference Framework
GNU Lesser General Public License v2.1
120 stars 29 forks source link

Fail to Inferenceoverlay on Ubuntu 16.04 #259

Open bill9889 opened 4 years ago

bill9889 commented 4 years ago

Inferenceoverlay fails to build on Ubuntu 16.04 following the wiki instructions link

Seems Inferenceoverlay requires opencv 3.3.1 or later, but Ubuntu 16.04 has opencv 2.4.9.1 available.

Making all in opencv
make[4]: Entering directory '/home/aphillips/work/customers/EDGEMATRIX/TF/gst-inference/gst-libs/gst/opencv'
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../..    -I../../../gst-libs -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGST_USE_UNSTABLE_API -Wno-error=missing-include-dirs  -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wold-style-definition -Waggregate-return -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -Werror  -g   -DGST_DISABLE_DEPRECATED -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/r2inference-0.0/  -MT libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.lo -MD -MP -MF .deps/libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.Tpo -c -o libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.lo `test -f 'gstinferencebaseoverlay.cc' || echo './'`gstinferencebaseoverlay.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../gst-libs -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGST_USE_UNSTABLE_API -Wno-error=missing-include-dirs -DG_THREADS_MANDATORY -DG_DISABLE_DEPRECATED -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wwrite-strings -Wold-style-definition -Waggregate-return -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -Werror -g -DGST_DISABLE_DEPRECATED -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/r2inference-0.0/ -MT libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.lo -MD -MP -MF .deps/libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.Tpo -c gstinferencebaseoverlay.cc  -fPIC -DPIC -o .libs/libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wold-style-definition’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
In file included from gstinferencebaseoverlay.cc:22:0:
gstinferencebaseoverlay.h:30:31: fatal error: opencv2/imgproc.hpp: No such file or directory
compilation terminated.
Makefile:606: recipe for target 'libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.lo' failed
make[4]: *** [libgstinferencebaseoverlay_1.0_la-gstinferencebaseoverlay.lo] Error 1
make[4]: Leaving directory '/home/aphillips/work/customers/EDGEMATRIX/TF/gst-inference/gst-libs/gst/opencv'
Makefile:500: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/aphillips/work/customers/EDGEMATRIX/TF/gst-inference/gst-libs/gst'
Makefile:490: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/aphillips/work/customers/EDGEMATRIX/TF/gst-inference/gst-libs'
Makefile:627: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/aphillips/work/customers/EDGEMATRIX/TF/gst-inference'
Makefile:535: recipe for target 'all' failed
boxerab commented 4 years ago

You could try building it