Community
cancel
Showing results for 
Search instead for 
Did you mean: 
steveclement
Beginner
67 Views

libopencv_objdetect.so: undefined reference to `t7_ippsMalloc_32s'

Dear Forum users,
I have the following issue when using OpenCV with IPP
Did anyone encounter this or is it PEBKAC?
I did look around for this but didn't really find something...
Thanks,
Steve
steve@steve-laptop:~/code/privateface.svn$ g++ -O2 -O2 -Wall -W -D_REENTRANT -fopenmp -Wl,-O1 -L/opt/intel/ipp/6.1.6.063/ia32/sharedlib -L/usr/local/lib -lpthread -lippi -lopencv_core -lopencv_highgui -lopencv_objdetect -lippcore -lsvml -limf -lirc -liomp5 -I/usr/local/include/opencv -I. -o "facedetect" facedetect.o
/usr/local/lib/libopencv_objdetect.so: undefined reference to `t7_ippsMalloc_32s'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `p8_ippsMalloc_32f'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `px_ippsMalloc_32f'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `w7_ippsMalloc_32s'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `g9_ippsMalloc_32s'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `g9_ippsMalloc_32f'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `px_ippsMalloc_32s'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `t7_ippsMalloc_32f'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `v8_ippsMalloc_32s'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `w7_ippsMalloc_32f'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `p8_ippsMalloc_32s'
/usr/local/lib/libopencv_objdetect.so: undefined reference to `v8_ippsMalloc_32f'
collect2: ld returned 1 exit status
steve@steve-laptop-smile:~/Desktop/code/privateface.svn$ g++ -O2 -O2 -Wall -W -D_REENTRANT -fopenmp -Wl,-O1 -L/opt/intel/ipp/6.1.6.063/ia32/sharedlib -L/usr/local/lib -lpthread -lippi -lopencv_core -lopencv_highgui -lopencv_objdetect -lippcore -lsvml -limf -lirc -liomp5 -I/usr/local/include/opencv -I. -o "facedetect" facedetect.o/usr/local/lib/libopencv_objdetect.so: undefined reference to `t7_ippsMalloc_32s'/usr/local/lib/libopencv_objdetect.so: undefined reference to `p8_ippsMalloc_32f'/usr/local/lib/libopencv_objdetect.so: undefined reference to `px_ippsMalloc_32f'/usr/local/lib/libopencv_objdetect.so: undefined reference to `w7_ippsMalloc_32s'/usr/local/lib/libopencv_objdetect.so: undefined reference to `g9_ippsMalloc_32s'/usr/local/lib/libopencv_objdetect.so: undefined reference to `g9_ippsMalloc_32f'/usr/local/lib/libopencv_objdetect.so: undefined reference to `px_ippsMalloc_32s'/usr/local/lib/libopencv_objdetect.so: undefined reference to `t7_ippsMalloc_32f'/usr/local/lib/libopencv_objdetect.so: undefined reference to `v8_ippsMalloc_32s'/usr/local/lib/libopencv_objdetect.so: undefined reference to `w7_ippsMalloc_32f'/usr/local/lib/libopencv_objdetect.so: undefined reference to `p8_ippsMalloc_32s'/usr/local/lib/libopencv_objdetect.so: undefined reference to `v8_ippsMalloc_32f'collect2: ld returned 1 exit status
0 Kudos
2 Replies
Vladimir_Dudnik
Employee
67 Views

Hello,

it seems you need to add ipps library to your link options.

Regards,
Vladimir

Ying_H_Intel
Employee
67 Views

Yes, the -lipps -lippcore should be added after-lopencv_objdetectfor resolving the symbol.

In addition, the library linkorder is essential as the exapanation in theKB article
http://software.intel.com/en-us/articles/how-to-build-ipp-application-in-linux-environment/


Common error messages
  • Error message: main.c:(.text+0x49): undefined reference to `ippiSet_8u_C1R'
    1. Make sure to link all dependent libraries. To solve the problem above, you should check your build command to see if it contains the library, "-lippiem64t".
    2. Make sure to link the libraries in appropriate order. For example, if your command contains both "-lippiemergedem64t" and "-lippimergedem64t". Make sure to put "-lippiemergedem64t" before "-lippimergedem64t" in command, otherwise you will get this "undefined reference" either.

Regards,
Ying

Reply