TheRealOrange / terminalvideoplayer

GNU General Public License v3.0
281 stars 10 forks source link

ARCH Linux compilation failure #4

Open Skycader opened 2 years ago

Skycader commented 2 years ago

g++ src/main.cpp -std=c++17 -O3 -o tvp pkg-config --cflags --libs opencv4

Skycader commented 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]$

Venji10 commented 2 years ago

@Skycader Try installing the opencv package. That should provide the missing library and pkg-config file.

Venji10 commented 2 years ago

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