hello i am trying to use opencv with qt
one month ago, i used opencv with qt
i did this on my rapberry:
wget
https://github.com/Nolaan/libopencv_24/ ... 10.deb.zip
unzip libopencv_2.4.10.deb.zip
sudo dpkg -i libopencv_2.4.10.deb
and i added the file opencv and opencv2 in /usr/local/include (these files i got of my compile opencv on my laptop)
but now i do the same but i can not compile
this appears on the terminal
/usr/bin/g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I/opt/qt5/mkspecs/devices/linux-rasp-pi-g++ -I. -I/usr/local/include/opencv -I/opt/qt5/include -I/opt/qt5/include/QtCore -I. -o main.o main.cpp
main.cpp:6:5: warning: unused parameter ‘argc’ [-Wunused-parameter]
main.cpp:6:5: warning: unused parameter ‘argv’ [-Wunused-parameter]
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -Wl,-O1 -Wl,-rpath,/usr/local/qt5/lib -o cam main.o -L/usr/local/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann -lopencv_nonfree -L/usr/local/qt5/lib -lQt5Core -lpthread
/usr/bin/ld: warning: libavformat.so.53, needed by /usr/local/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_read_frame@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_codec_get_id@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_close_input_file@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_find_stream_info@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_free_context@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avio_open@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_guess_codec@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_write_header@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_write_trailer@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_guess_format@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_register_all@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_new_stream@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avio_close@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_alloc_context@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_network_init@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_write_frame@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `avformat_open_input@LIBAVFORMAT_53'
/usr/local/lib/libopencv_highgui.so: undefined reference to `av_seek_frame@LIBAVFORMAT_53'
collect2: ld returned 1 exit status
Makefile:176: recipe for target 'cam' failed
make: *** [cam] Error 1
some body maybe has a solution ???