Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7953 Discussions

Linker errors while JPEG compression

Rohit_Dhamija
Beginner
329 Views

Hi,

I am working on Mac OS X 10.5.2, Xcode 3.1.2 version. One of modules of my application require JPEG compression technique, to accomplish, we are using the ijg sample ( provided in ipp-samples->image-codecs).

Below are the steps used

1. Compiled ijg sample (using build.sh)

2. Added libjpeg.ipp.a and libjpeg.ipp.dynlib created through this sample into our application


3. Added jconfig.h, jerror.h, jmorecfg.h, jpeglib.h and jversion.h from the include folder of ijg sample into our application.

The code on compilation gave following linker errors:
++++++++++++++++++++++++

"_ippiEncodeHuffmanStateInit_JPEG_8u", referenced from:

_start_pass_huff in libjpeg.ipp.a(jchuff.o)

"_ippiRGBToYCbCr_JPEG_8u_C3P3R", referenced from:

_rgb_ycc_convert_intellib in libjpeg.ipp.a(jccolor.o)

"_ippiEncodeHuffman8x8_JPEG_16s1u_C1", referenced from:

_encode_mcu_huff_intellib in libjpeg.ipp.a(jchuff.o)

_encode_mcu_huff_intellib in libjpeg.ipp.a(jchuff.o)

_finish_pass_huff in libjpeg.ipp.a(jchuff.o)

"_ippiGetHuffmanStatistics8x8_JPEG_16s_C1", referenced from:

_encode_mcu_gather_intellib in libjpeg.ipp.a(jchuff.o)

"_ippiSampleDownRowH2V2_Box_JPEG_8u_C1", referenced from:

_h2v2_downsample_intellib in libjpeg.ipp.a(jcsample.o)

"_ippiEncodeHuffmanStateGetBufSize_JPEG_8u", referenced from:

_start_pass_huff in libjpeg.ipp.a(jchuff.o)

"_ippiSampleDownRowH2V1_Box_JPEG_8u_C1", referenced from:

_h2v1_downsample_intellib in libjpeg.ipp.a(jcsample.o)

"_ippiEncodeHuffmanSpecGetBufSize_JPEG_8u", referenced from:

_start_pass_huff in libjpeg.ipp.a(jchuff.o)

_start_pass_huff in libjpeg.ipp.a(jchuff.o)

_jpeg_make_c_derived_tbl_intellib in libjpeg.ipp.a(jchuff.o)

"_ippiEncodeHuffmanRawTableInit_JPEG_8u", referenced from:

_jpeg_gen_optimal_table_intellib in libjpeg.ipp.a(jchuff.o)

_finish_pass_gather in libjpeg.ipp.a(jchuff.o)

_finish_pass_gather in libjpeg.ipp.a(jchuff.o)

"_ippiRGBToY_JPEG_8u_C3C1R", referenced from:

_rgb_gray_convert_intellib in libjpeg.ipp.a(jccolor.o)

"_ippiEncodeHuffmanSpecInit_JPEG_8u", referenced from:

_start_pass_huff in libjpeg.ipp.a(jchuff.o)

_start_pass_huff in libjpeg.ipp.a(jchuff.o)

_jpeg_make_c_derived_tbl_intellib in libjpeg.ipp.a(jchuff.o)

"_ippiQuantFwdTableInit_JPEG_8u16u", referenced from:

_start_pass_fdctmgr in libjpeg.ipp.a(jcdctmgr.o)

"_ippiCMYKToYCCK_JPEG_8u_C4P4R", referenced from:

_cmyk_ycck_convert_intellib in libjpeg.ipp.a(jccolor.o)

"_ippiDCTQuantFwd8x8LS_JPEG_8u16s_C1R", referenced from:

_forward_DCT_intellib in libjpeg.ipp.a(jcdctmgr.o)

ld: symbol(s) not found

collect2: ld returned 1 exit status

Build failed (14 errors)

++++++++++++++++++++++++


Our main purpose is to compress our raw data in JPEG format.

WHAT ARE THE MINIMAL SET OF LIBRARIES FROM INTEL IPP COMPILER PACKAGE TO COMPILE THE CODE SUCCEESSFULLY??

FYI: We have licensed version of Intel C++ compiler, and are using the same.

Thankyou.

Regards,
Rohit Dhamija

0 Kudos
1 Reply
Quoc-An_L_Intel
Moderator
329 Views

You should report this on the IPP forum instead of the compiler forum.

0 Kudos
Reply