I'm trying to compile the audio-video codec samples for Intel Performance Primitives using gcc on linux. I would especially like to compile the sample mpeg4_enc.
But I get the following error:&nbs p;
src/mp4_enc_me.cpp:401: error: cast from 'Ipp8u*' to 'Ipp32s' loses precision src/mp4_enc_me.cpp: In function 'void MPEG4_ENC::mp4_ME_QuarterPel_SAD(MPEG4_ENC ::mp4_Data_ME*)':
Any suggestions how I can get past this compiler error and get it to compile would be appreciated.
The answer might be several month too late for you, but I came across this thread when experiencing the same problem. Sadly there was no answer to help me out. After figuring it out for myself I am now providing the answer for future reference.
The problem arises (in my case, not sure for abalk) when compiling the code with the build32.sh script on 64bit system. On such a sytem the pointer have 64bit length and a cast to Ipp32s is indeed an error.