intersectConvexConvex linker errors (Bug #3058)


Added by Randy Melder almost 12 years ago. Updated almost 12 years ago.


Status:Cancelled Start date:2013-05-30
Priority:Normal Due date:
Assignee:Randy Melder % Done:

0%

Category:samples
Target version:2.4.6
Affected version:branch '2.4' Operating System:
Difficulty: HW Platform:
Pull request:

Description

I'm having a linker issue with the /sample/detector_descriptor_matcher_evaluation.cpp

/tmp/ccVdmReP.o: In function `proccessMatches(cv::Size_<int>, std::vector<cv::DMatch, std::allocator<cv::DMatch> > const&, std::vector<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > >, std::allocator<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > > > > const&, std::vector<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > >, std::allocator<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > > > > const&, double)':
detector_descriptor_matcher_evaluation.cpp:(.text+0x101a): undefined reference to `cv::intersectConvexConvex(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, bool)'
collect2: error: ld returned 1 exit status

Here is my complete compilation output:

g++ -L/usr/lib:/usr/lib64 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_features2d --verbose -o OpenCVddme detector_descriptor_matcher_evaluation.cpp

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC)
COLLECT_GCC_OPTIONS='-L/usr/lib:/usr/lib64' '-v' '-o' 'OpenCVddme' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/cc1plus -quiet -v -D_GNU_SOURCE detector_descriptor_matcher_evaluation.cpp -quiet -dumpbase detector_descriptor_matcher_evaluation.cpp -mtune=generic -march=x86-64 -auxbase detector_descriptor_matcher_evaluation -version -o /tmp/ccA11it5.s
GNU C++ (GCC) version 4.7.2 20120921 (Red Hat 4.7.2-2) (x86_64-redhat-linux)
compiled by GNU C version 4.7.2 20120921 (Red Hat 4.7.2-2), GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=127281
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/x86_64-redhat-linux
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/backward
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/include
/usr/local/include
/usr/include
End of search list.
GNU C++ (GCC) version 4.7.2 20120921 (Red Hat 4.7.2-2) (x86_64-redhat-linux)
compiled by GNU C version 4.7.2 20120921 (Red Hat 4.7.2-2), GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=127281
Compiler executable checksum: c80d6366117d4cf1da5e1787031f4a46
COLLECT_GCC_OPTIONS='-L/usr/lib:/usr/lib64' '-v' '-o' 'OpenCVddme' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
as -v --64 -o /tmp/ccVdmReP.o /tmp/ccA11it5.s
GNU assembler version 2.22.52.0.1 (x86_64-redhat-linux) using BFD version version 2.22.52.0.1-10.fc17 20120131
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/:/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.7.2/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.7.2/:/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-L/usr/lib:/usr/lib64' '-v' '-o' 'OpenCVddme' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o OpenCVddme /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.7.2/crtbegin.o -L/usr/lib:/usr/lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.7.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../.. -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_features2d /tmp/ccVdmReP.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/4.7.2/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64/crtn.o
/tmp/ccVdmReP.o: In function `proccessMatches(cv::Size_<int>, std::vector<cv::DMatch, std::allocator<cv::DMatch> > const&, std::vector<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > >, std::allocator<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > > > > const&, std::vector<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > >, std::allocator<std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > > > > const&, double)':
detector_descriptor_matcher_evaluation.cpp:(.text+0x101a): undefined reference to `cv::intersectConvexConvex(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, bool)'
collect2: error: ld returned 1 exit status

Bonus info:

OpenCV-2.4.2

$uname -a
Linux localhost.localdomain 3.4.2-4.fc17.x86_64 #1 SMP Thu Jun 14 22:22:05 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz
stepping : 7
cpu MHz : 2000.000
cache size : 6144 KB


Associated revisions

Revision a15db2d9
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3058 from PhilLab:patch-2

History

Updated by Daniil Osokin almost 12 years ago

Hi, Randy!
Thanks for attention. Can you reproduce this with OpenCV 2.4.5?

  • Category set to samples
  • Priority changed from Blocker to Normal
  • Target version set to 2.4.6
  • Assignee set to Randy Melder

Updated by Daniil Osokin almost 12 years ago

Please, reopen this ticket, as soon as you will provide response.

  • Status changed from Open to Cancelled

Also available in: Atom PDF