Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

px function will not link; code example included

davidalm
Beginner
229 Views
This is example code from VS 2010, with ALL *_l.lib files added to the project. (Lib files are from ipp folder of Composer XE 2011 SP1.)
The w7 version (commented out) will build, but the px version gives unresolved external:_px_ippiResize_8u_C3R@68.
What am I doing wrong?
#include "stdafx.h"
#include
extern "C" {
/*
IppStatus __stdcall w7_ippiResize_8u_C3R (const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srIppcROI,
Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,
double xFactor, double yFactor, int interpolation);
*/
IppStatus __stdcall px_ippiResize_8u_C3R (const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srIppcROI,
Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,
double xFactor, double yFactor, int interpolation);
}
int _tmain(int argc, _TCHAR* argv[])
{
IppStatus s;
IppiRect r1;
IppiSize sz;
//s = w7_ippiResize_8u_C3R(0, sz, 0, r1, 0, 0, sz, 0, 0, 0 );
s = px_ippiResize_8u_C3R(0, sz, 0, r1, 0, 0, sz, 0, 0, 0 );
return 0;
}
0 Kudos
5 Replies
SergeyKostrov
Valued Contributor II
229 Views
>>...This is example code from VS 2010, with ALL *_l.lib files added to the project...

It looks like some library was not added.Could you search all these '*_l.lib' filesfor a sub-string
'px_ippiResize_8u_C3R'?
0 Kudos
Naveen_G_Intel
Employee
229 Views

Hi David,

Please refer to below article to get information about initialization of PX code of IPP library.

http://software.intel.com/en-us/articles/generic-library-dispatching-with-the-ipp-70-library/

regards,

Naveen Gv

0 Kudos
SergeyKostrov
Valued Contributor II
229 Views
Hi Naveen,

I just read the article you mentioned and there is a statement that:

...
Of course, you must also be sure to include the appropriate generic library in the list of libraries that
your application will link against.
...

So, it means that a correct generic library was not included in the first place, right?

David claims that he added all libraries. I thinkit would be nice to see a complete list ofadded libraries.

Best regards,
Sergey
0 Kudos
Naveen_G_Intel
Employee
229 Views

Hi David & Sergey,

As in the below picture, you have to download separate package from the registration centre. It has got px and mx libraries. This was not included in the main package.






Regards,
Naveen Gv
0 Kudos
SergeyKostrov
Valued Contributor II
229 Views
Thank you, Naveen! Finally explained.

Best regards,
Sergey
0 Kudos
Reply