Open Skycader opened 2 years ago
[test@ARCH terminalvideoplayer]$ g++ src/main.cpp -std=c++17 -O3 -o tvp pkg-config --cflags --libs opencv4
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv4', required by 'virtual:world', not found
src/main.cpp:1:10: fatal error: opencv2/opencv.hpp: No such file or directory
1 | #include <opencv2/opencv.hpp>
| ^~~~~~~~
compilation terminated.
[test@ARCH terminalvideoplayer]$
@Skycader Try installing the opencv
package. That should provide the missing library and pkg-config file.
Also, the README provides another compilation command, which doesn't even need opencv: g++ src/main.cpp src/video.cpp -Iinc/ -std=c++17 -O3 -o tvp -lavformat -lavcodec -lavutil -lswscale
g++ src/main.cpp -std=c++17 -O3 -o tvp
pkg-config --cflags --libs opencv4