Hi Francisco,
I am also trying to build the OpenCV2.2 for i.MX53 QSB Platform.
I was able to successfully build till 75%, then i am getting the errors as mentioned below.
I have followed the instructions provided by as mentioned in the above post.
Any idea what I might be missing here??
------------------------------------------------------------------------------------------------------------
[ 75%] Built target opencv_haartraining_engine
Linking CXX executable ../../bin/opencv_createsamples
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libjpeg.so.62, needed by ../../lib/libopencv_highgui.so.2.2.0, not found (try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libpng.so.3, needed by ../../lib/libopencv_highgui.so.2.2.0, not found (try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libz.so.1, needed by ../../lib/libopencv_highgui.so.2.2.0, not found (try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.4.4/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libtiff.so.3, needed by ../../lib/libopencv_highgui.so.2.2.0, not found (try using -rpath or -rpath-link)
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_create_read_struct'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_compression_mem_level'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_write_scanlines'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_stdio_src'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_write_fn'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_init_io'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_CreateDecompress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_destroy_decompress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_finish_decompress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_read_update_info'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_set_defaults'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_set_quality'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_read_fn'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_create_info_struct'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_read_header'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFClose'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_filter'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_start_compress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_alloc_huff_table'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFSetErrorHandler'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFReadRGBAStrip'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_strip_16'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_error'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_strip_alpha'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_start_decompress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_write_image'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFGetField'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_destroy_compress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_compression_level'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_resync_to_restart'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFOpen'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_read_end'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_expand_gray_1_2_4_to_8'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFIsTiled'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFReadEncodedTile'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_read_image'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_write_info'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_create_write_struct'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_gray_to_rgb'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_CreateCompress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_IHDR'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_palette_to_rgb'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_stdio_dest'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_write_end'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_read_info'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_bgr'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFRGBAImageOK'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_rgb_to_gray'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_std_error'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFSetWarningHandler'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_destroy_read_struct'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_finish_compress'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_get_IHDR'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFReadEncodedStrip'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `jpeg_read_scanlines'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `TIFFReadRGBATile'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_compression_strategy'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_destroy_write_struct'
../../lib/libopencv_highgui.so.2.2.0: undefined reference to `png_set_swap'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_createsamples] Error 1
make[1]: *** [modules/haartraining/CMakeFiles/opencv_createsamples.dir/all] Error 2
make: *** [all] Error 2
------------------------------------------------
Regards,
Gopi