Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/ld: cannot find -lippicv #5852

Closed
clarkk opened this issue Dec 21, 2015 · 4 comments
Closed

/usr/bin/ld: cannot find -lippicv #5852

clarkk opened this issue Dec 21, 2015 · 4 comments

Comments

@clarkk
Copy link

clarkk commented Dec 21, 2015

When compiling some code I get this

# g++ txtbin-03.1.cpp -o txtbin `pkg-config opencv --cflags --libs`
/usr/bin/ld: cannot find -lippicv
collect2: error: ld returned 1 exit status

When compiling with opencv 2.4 it works (opencv installed with apt-get)

Installing opencv

# apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
# apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
# cd /var/bin && git clone https://github.com/Itseez/opencv.git && cd opencv
# cmake . && make -j2 && make install 
@alalek
Copy link
Member

alalek commented Dec 22, 2015

Thanks for report!
Dependency from ippicv is wrong here and it should be removed.
Workaround: try to use cmake -DINSTALL_CREATE_DISTRIB=ON .

@clarkk
Copy link
Author

clarkk commented Dec 22, 2015

If you compile like this is looks like it works

cmake -DWITH_IPP=ON -DINSTALL_CREATE_DISTRIB=ON . && make -j $(nproc) && make install

@Vishruit
Copy link

Vishruit commented Dec 8, 2016

Wrongly associated library path!
find /usr/local/ -name "libippicv*"
Add the path returned to the LIBS path or you can symlink libippicv.a to /usr/local/lib
Source

@zimenglan-sysu-512
Copy link

hi @Vishruit,
i follow ur way to ln -s, it works.
thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants