oylz / DS

cpp deep_sort: C++ implementation of Simple Online Realtime Tracking with a Deep Association Metric
https://github.com/nwojke/deep_sort
GNU General Public License v3.0
250 stars 78 forks source link

can not find lib #16

Open Vincent630 opened 4 years ago

Vincent630 commented 4 years ago

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

shaix123 commented 4 years ago

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

VanniZhou commented 4 years ago

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

not yet

leijuzi commented 4 years ago

me met the problem too

Haoran-Young commented 4 years ago

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

oylz commented 4 years ago

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

quangnmkma commented 2 years ago

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