Eclipse: kompilacja projektu z OpenCV

0

Witajcie,
ostatnimi czasy staram się skonfigurować środowisko do programowania z wykorzystaniem biblioteki OpenCV. Do tego celu chcę zaprzęgnąć Eclipse. Robię wszystko pod Ubuntu. Konfiguruję wszystko wg. tego opisu: http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html i oczywiście wszystko idzie gładko, do momentu zbudowania całego projektu. Podczas kompilacji zwraca mi poniższe komunikaty:

make all 
Building target: OpenCV
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o "OpenCV" ./src/DisplayImage.o -lopencv_core -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann -lopencv_imgproc -lopencv_highgui
/usr/bin/ld: warning: libIlmImf.so.6, needed by /usr/local/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libHalf.so.6, needed by /usr/local/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Header::channels()'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Chromaticities::Chromaticities(Imath::Vec2<float> const&, Imath::Vec2<float> const&, Imath::Vec2<float> const&, Imath::Vec2<float> const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Header::~Header()'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::OutputFile::OutputFile(char const*, Imf::Header const&, int)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::hasChromaticities(Imf::Header const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::ChannelList::insert(char const*, Imf::Channel const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Header::Header(int, int, float, Imath::Vec2<float> const&, float, Imf::LineOrder, Imf::Compression)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::globalThreadCount()'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::OutputFile::writePixels(int)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::chromaticities(Imf::Header const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::OutputFile::setFrameBuffer(Imf::FrameBuffer const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::InputFile::header() const'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Slice::Slice(Imf::PixelType, char*, unsigned int, unsigned int, int, int, double, bool, bool)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::OutputFile::~OutputFile()'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::InputFile::InputFile(char const*, int)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::InputFile::setFrameBuffer(Imf::FrameBuffer const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `half::_eLut'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Channel::Channel(Imf::PixelType, int, int, bool)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Header::dataWindow() const'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::ChannelList::findChannel(char const*) const'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::InputFile::readPixels(int, int)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::Header::channels() const'
/usr/local/lib/libopencv_highgui.so: undefined reference to `Imf::FrameBuffer::insert(char const*, Imf::Slice const&)'
/usr/local/lib/libopencv_highgui.so: undefined reference to `half::convert(int)'
collect2: error: ld returned 1 exit status
make: *** [OpenCV] Błąd 1

22:03:12 Build Finished (took 3s.869ms)

Szukałem na internecie trochę o tym problemie i znalazłem kilka opisów, podobnych do tego: http://ubuntuforums.org/showthread.php?t=2051889 , czyli żeby wywalić biblioteki na sam koniec pkg-config. Tutaj mam właśnie problem - gdzie ja mam to zmienić? Jak to uczynić? Jestem dopiero początkujący z pracą w Eclipse i chciałbym w końcu się do niego przekonać, a za każdym razem mam z nim jakieś problemy.

0

Zainstaluj OpenEXR i zobacz co się stanie.

Jak instalowałeś OpenCV? Jeżeli jakoś "ręcznie" to wywal to wszystko i zainstaluj za pomocą managera pakietów łącznie z pakietami dev. Nie ma potrzeby ręcznej kompilacji ani instalowania w /usr/local.

1 użytkowników online, w tym zalogowanych: 0, gości: 1