DS icon indicating copy to clipboard operation
DS copied to clipboard

can not find lib

Open Vincent630 opened this issue 5 years ago • 6 comments

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

Vincent630 avatar Aug 07 '19 01:08 Vincent630

Hello, I have the same problem。Do you solve it?

shaix123 avatar Aug 17 '19 07:08 shaix123

Hello, I have the same problem。Do you solve it?

not yet

VanniZhou avatar Nov 06 '19 08:11 VanniZhou

me met the problem too

leijuzi avatar Dec 03 '19 09:12 leijuzi

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

Haoran-Young avatar May 16 '20 05:05 Haoran-Young

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

oylz avatar May 18 '20 12:05 oylz

I had install gperftools but when i run ./make.sh, i had error: "usr/bin/ld: cannot find -ltcmalloc"

quangnmkma avatar Dec 10 '21 07:12 quangnmkma