|
|
|
|
|
Re: Adding pkg_config as linker option [message #1748589 is a reply to message #1748569] |
Thu, 24 November 2016 20:05 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Some people just can't be helped I guess.
For the benefit of anyone else stumbling into this thread,
Adding pkg-config with the proper parameters does indeed work.
The following link adds the opencv libraries to the executable.
g++ -L/usr/lib64/openmpi/lib -o "Hello" ./src/Florp.o ./src/Hello.o ./src/ParmTest.o `pkg-config opencv --libs`
Partial listing from ldd. Note the opencv libraries such as opencv_calib3d and opencv_features2d.
$ldd Debug/Hello
linux-vdso.so.1 (0x00007fff00dfc000)
libopencv_calib3d.so.2.4 => /lib64/libopencv_calib3d.so.2.4 (0x00007fccd4163000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fccd3de1000)
libm.so.6 => /lib64/libm.so.6 (0x00007fccd3ad8000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fccd38c1000)
libc.so.6 => /lib64/libc.so.6 (0x00007fccd3501000)
libopencv_features2d.so.2.4 => /lib64/libopencv_features2d.so.2.4 (0x00007fccd325c000)
libopencv_flann.so.2.4 => /lib64/libopencv_flann.so.2.4 (0x00007fccd2fec000)
:
[Updated on: Thu, 24 November 2016 20:08] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03997 seconds