- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
it seems you need to add ipps library to your link options.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
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'
- 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".
- 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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page