DS
DS copied to clipboard
can not find lib
when i run the make.sh file,it report this problem,and i can not find these libs even in my opencv build ldirectory,can you tell me what makes that happen?and how to fix this problem???thanks a lot ,by the way ,i use opencv3.4,which version have you used? /usr/bin/ld: cannot find -lopencv_corexyz /usr/bin/ld: cannot find -lopencv_imgprocxyz /usr/bin/ld: cannot find -lopencv_highguixyz /usr/bin/ld: cannot find -ltcmalloc
Hello, I have the same problem。Do you solve it?
Hello, I have the same problem。Do you solve it?
not yet
me met the problem too
I met this problem: /usr/bin/ld: cannot find -lopencv_corexyz /usr/bin/ld: cannot find -lopencv_imgprocxyz /usr/bin/ld: cannot find -lopencv_highguixyz /usr/bin/ld: cannot find -lboost_system
But I fixed it via constructing symbolic links. The occurrence of this problem is that the system needs some *.so libs, but it cannot find them by itself. So, we have to find them manually and build symbolic links.
For example:
To address '/usr/bin/ld: cannot find -lopencv_corexyz', we must have 'libopencv_corexyz.so' in '/usr/lib'. 'libopencv_core.so.2.4.13' locates in '/usr/local/lib' on my computer. So, execute this command to solve the problem:
sudo ln -s /usr/local/lib/libopencv_core.so.2.4.13 /usr/lib/libopencv_corexyz.so
for opencv
you can only link with libopencv_xxx.so(without containing xyz,the reason is: I had multiple opencv versions on my computer at that time)
for tcmalloc
you must install gperftools
I had install gperftools but when i run ./make.sh, i had error: "usr/bin/ld: cannot find -ltcmalloc"