OpenCV with Eclipse on Fedora 30

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am new to eclipse and opencv and I was trying to build a sample c++ code using Eclipse.

I have installed following packages.
rpm -qa | grep opencv
opencv-devel-3.4.4-10.fc30.x86_64
opencv-3.4.4-10.fc30.x86_64
opencv-core-3.4.4-10.fc30.x86_64
opencv-contrib-3.4.4-10.fc30.x86_64




00:29:09 **** Incremental Build of configuration Debug for project sample ****
make all
Building target: sample
Invoking: GCC C++ Linker
g++ -L/usr/lib64/ -L/usr/lib/ -o "sample"  ./main.o   -llibopencv_core.so.3.4 -llibopencv_core.so.3.4.4 -llibopencv_highgui.so.3.4 -llibopencv_highgui.so.3.4.4
/usr/bin/ld: cannot find -llibopencv_core.so.3.4
/usr/bin/ld: cannot find -llibopencv_core.so.3.4.4
/usr/bin/ld: cannot find -llibopencv_highgui.so.3.4
/usr/bin/ld: cannot find -llibopencv_highgui.so.3.4.4
collect2: error: ld returned 1 exit status
make: *** [makefile:46: sample] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

00:29:10 Build Failed. 5 errors, 0 warnings. (took 419ms)


$ locate opencv_core.so.3.4
/usr/lib64/libopencv_core.so.3.4
/usr/lib64/libopencv_core.so.3.4.4

I have already added /usr/lib64/ and /usr/lib/ as library search paths in eclipse.

Is there anything missing in my config?

Regards,
--
Danishka Navin





_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux