JPery / MJPEGWriter

Lightweight HTTP server to stream your OpenCV processing in C++
MIT License
97 stars 40 forks source link

Compiling under Ubuntu 18.04 #12

Closed philipp-schmidt closed 4 years ago

philipp-schmidt commented 4 years ago

Compiling led to a few undefined references under Ubuntu 18.04. The following might be a better way to compile this if you want to stick to pure g++:

g++ MJPEGWriter.cpp main.cpp -o MJPEG -lpthread `pkg-config opencv --cflags --libs` -std=c++11
JPery commented 4 years ago

This could be due to the OpenCV version rather than Ubuntu version. Which OpenCV version are you using?

philipp-schmidt commented 4 years ago

Sorry for replying late.

It's OpenCV 3.2.0 currently. The above command compiles everything just fine, was just letting anyone else know in case they run into the same issue!