error: undefined reference to 'cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'
-
@swansorter said in error: undefined reference to 'cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
LIBS += -L/usr/local/arm/opencv-arm/lib -I/usr/local/arm/opencv-arm/include/opencv4 -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lopencv_objdetect
What is this?! Why do you add include folder to the libs search paths?
What are the names of the libs inside /usr/local/arm/opencv-arm/lib?wrote on 11 Mar 2021, 11:51 last edited by@jsulm
sorry it is
LIBS += -L/usr/local/arm/opencv-arm/lib -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lopencv_objdetect -
@jsulm
sorry it is
LIBS += -L/usr/local/arm/opencv-arm/lib -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lopencv_objdetect@swansorter Did you try full rebuild after fixing pro file?
-
@swansorter Did you try full rebuild after fixing pro file?
wrote on 11 Mar 2021, 11:59 last edited by@jsulm yess sir same error
-
@jsulm yess sir same error
wrote on 11 Mar 2021, 12:00 last edited by@swansorter The m
-
@swansorter The m
@swansorter Actually you should install the libs/headers in your sysroot
-
@swansorter Actually you should install the libs/headers in your sysroot
wrote on 11 Mar 2021, 12:13 last edited by@jsulm how to install the libs/headers in my sysroot
-
@jsulm how to install the libs/headers in my sysroot
@swansorter Simply copy them to your sysroot...
-
@swansorter Simply copy them to your sysroot...
wrote on 11 Mar 2021, 12:27 last edited by swansorter 3 Nov 2021, 12:27@jsulm what i need to copy and in sysroot where i need to paste?
-
@jsulm what i need to copy and in sysroot where i need to paste?
@swansorter Libs to: /opt/rootfs-s5p4418/usr/lib
Include files to: /opt/rootfs-s5p4418/usr/include -
@swansorter Libs to: /opt/rootfs-s5p4418/usr/lib
Include files to: /opt/rootfs-s5p4418/usr/includewrote on 11 Mar 2021, 12:56 last edited by@jsulm
from : usr/local/arm/opencv-arm/libs To: /opt/rootfs-s5p4418/usr/lib
from : usr/local/arm/opencv-arm/include To: /opt/rootfs-s5p4418/usr/include
ist this write? -
@jsulm
from : usr/local/arm/opencv-arm/libs To: /opt/rootfs-s5p4418/usr/lib
from : usr/local/arm/opencv-arm/include To: /opt/rootfs-s5p4418/usr/include
ist this write?@swansorter yes
-
@swansorter yes
wrote on 11 Mar 2021, 13:15 last edited by@jsulm i followed above steps still same error
12/14