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

ipp linking problem for visual studio 2012

TURK__Tamer
Novice
10,352 Views

Hi, I could not overcome the visual studio ipp connection problem. Could you help me for the problem of the following errors.

 

dllinitialization.obj : error LNK2019: unresolved external symbol __imp__SHGetSpecialFolderPathA@16 referenced in function _AFIDInitializeDll
1>dllinitialization.obj : error LNK2019: unresolved external symbol _ippStaticInit referenced in function __AFIDInitializeIpp
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiRGBToGray_8u_C3C1R@24 referenced in function _AynxImgColorToGray
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiColorToGray_8u_C3C1R@28 referenced in function _AynxImgColorToGray
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiFilterMaxGetBufferSize_8u_C1R@16 referenced in function _AynxImgFilterMaxGetBufferSize
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiFilterMaxGetBufferSize_8u_C3R@16 referenced in function _AynxImgFilterMaxGetBufferSize
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiFilterMaxBorderReplicate_8u_C1R@44 referenced in function _AynxImgFilterMaxBorderReplicate
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiFilterMaxBorderReplicate_8u_C3R@44 referenced in function _AynxImgFilterMaxBorderReplicate
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiSqrIntegral_8u32f64f_C1R@44 referenced in function _AynxImgSqrIntegral
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiRectStdDev_32f_C1R@48 referenced in function _AynxImgRectStdDev
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiMirror_8u_C1IR@20 referenced in function _AynxImgMirror
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiMirror_8u_C3IR@20 referenced in function _AynxImgMirror
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiResize_8u_C1R@68 referenced in function _AynxImgResizeRect
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiResize_8u_C3R@68 referenced in function _AynxImgResizeRect
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiRotateCenter_8u_C1R@84 referenced in function _AynxImgRotateRect
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiRotateCenter_8u_C3R@84 referenced in function _AynxImgRotateRect
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiFilter_32f_C1R@44 referenced in function _AynxImgFilter
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiFilter_32f_C3R@44 referenced in function _AynxImgFilter
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopy_8u_C1R@24 referenced in function _AynxImgCopy
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopy_8u_C3R@24 referenced in function _AynxImgCopy
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopy_32f_C1R@24 referenced in function _AynxImgCopy
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopy_32f_C3R@24 referenced in function _AynxImgCopy
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopyConstBorder_8u_C1R@44 referenced in function _AynxImgCopyConstBorder
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopyConstBorder_8u_C3R@44 referenced in function _AynxImgCopyConstBorder
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopyConstBorder_32f_C1R@44 referenced in function _AynxImgCopyConstBorder
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiCopyConstBorder_32f_C3R@44 referenced in function _AynxImgCopyConstBorder
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiDup_8u_C1C3R@24 referenced in function _AynxImgGrayToColor
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiSet_8u_C1R@20 referenced in function _AynxImgSet
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiSet_8u_C3R@20 referenced in function _AynxImgSet
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiSet_8u_C1MR@28 referenced in function _AynxImgSetWithMask
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippiSet_8u_C3MR@28 referenced in function _AynxImgSetWithMask
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ippsMove_8u@12 referenced in function _AynxImgCreateWithData
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ijlInit@4 referenced in function _AynxImgLoadJpegFromMem
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ijlFree@4 referenced in function _AynxImgLoadJpegFromMem
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ijlRead@8 referenced in function _AynxImgLoadJpegFromMem
1>AynxImage.lib(AynxImage.obj) : error LNK2019: unresolved external symbol _ijlWrite@8 referenced in function _AynxImgSaveJpegToMem
1>AynxHaar.lib(AynxHaar.obj) : error LNK2019: unresolved external symbol _ippiHaarClassifierInitAlloc_32f@32 referenced in function __AynxHaarAdjustClassifier
1>AynxHaar.lib(AynxHaar.obj) : error LNK2019: unresolved external symbol _ippiHaarClassifierFree_32f@4 referenced in function _AynxHaarDestroy
1>AynxHaar.lib(AynxHaar.obj) : error LNK2019: unresolved external symbol _ippiGetHaarClassifierSize_32f@8 referenced in function __AynxHaarAdjustClassifier
1>AynxHaar.lib(AynxHaar.obj) : error LNK2019: unresolved external symbol _ippiApplyHaarClassifier_32f_C1R@44 referenced in function __AynxHaarRunClassifiers
1>C:\Users\Aker\Desktop\2.0\src\AyonixFaceID\..\..\dlib\debug\AyonixFaceID.dll : fatal error LNK1120: 40 unresolved externals

0 Kudos
1 Solution
TURK__Tamer
Novice
10,352 Views

Hi Sergey , 

Thanks, I have made some progress with your help. Why do you think the following problem is caused?

 

 

View solution in original post

0 Kudos
16 Replies
Sergey_K_Intel
Employee
10,352 Views

Hi!

For win32 platform build you need 32-bit libraries from $(IPPROOT)\lib\ia32_win directory. This is also for compiler libraries from ....compiler\lib\ia32_win.

Regards,
Sergey

0 Kudos
TURK__Tamer
Novice
10,352 Views

Hello Sergey, I did what you have  said and my mistakes have decreased a little bit, but I still have the following problems.

 

 

email: tamer.turk@yandex.com

Thank you 

 

 

1>AynxImage.lib(AynxImage.obj) : error LNK2001: unresolved external symbol _ijlWrite@8
1>AynxImage.lib(AynxImage.obj) : error LNK2001: unresolved external symbol _ippiResize_8u_C1R@68
1>AynxImage.lib(AynxImage.obj) : error LNK2001: unresolved external symbol _ippiResize_8u_C3R@68
1>AynxImage.lib(AynxImage.obj) : error LNK2001: unresolved external symbol _ijlFree@4
1>AynxImage.lib(AynxImage.obj) : error LNK2001: unresolved external symbol _ijlRead@8
1>AynxImage.lib(AynxImage.obj) : error LNK2001: unresolved external symbol _ijlInit@4
1>C:\Users\Aker\Desktop\2.0\src\AyonixFaceID\..\..\dlib\release\AyonixFaceID.dll : fatal error LNK1120: 6 unresolved externals

0 Kudos
Sergey_K_Intel
Employee
10,352 Views

Hi Tamer,

These are quite outdated functions which don't exist in IPP 2020. Did your application work with any of previous versions of IPP?

Regards

0 Kudos
TURK__Tamer
Novice
10,282 Views

Hi Sergey,
If the functions that return errors are the above, which version should I use? Thank you.

 

 

0 Kudos
Sergey_K_Intel
Employee
10,282 Views

May be this article can help: https://software.intel.com/content/www/us/en/develop/articles/how-to-build-former-intel-ipp-samples-with-ipp-90-legacy-libraries.html ? IJL* functions are not from IPP, where do they come from?

 

0 Kudos
TURK__Tamer
Novice
10,282 Views

Hi Sergey,

The problem may be that I use the 2012 version, I share the linking values and some library values below.

How can I download and install the 2012 version?Does it exist?

Thanks.

 

AynxArray.lib
AynxLinkedList.lib
AynxDirectoryInfo.lib
AynxImage.lib
AynxHaar.lib
AynxPCAObjectDetector.lib
AynxHistFitting.lib
AynxLocalBinaryPatterns.lib
AynxGabor.lib
AynxKNearestNeighbor.lib
AynxANNetwork.lib
AynxMTwister.lib
AynxFaceID.lib
AynxLicenseBasic.lib
AynxDongleLicense.lib
AynxStd.lib
ijl20.lib
ippcore_t.lib
ippcc_t.lib
ippcv_t.lib
ippi_t.lib
ippj_t.lib
ipps_t.lib
libiomp5md.lib
libircmt.lib
svml_dispmt.lib
libmmt.lib

 

 

 

 

 

0 Kudos
Sergey_K_Intel
Employee
10,282 Views

IJL stands for Intel JPEG library which is not released since 2010. IPP doesn't support JPEG coding after version 8. At that time JPEG processing was done with UIC (Universal Image Coding) framework. You can try UIC if you download IPP legacy library from https://software.intel.com/content/www/us/en/develop/articles/intel-ipp-legacy-libraries.html article. But in any case, UIC is not similar to IJL in terms of interface functions. You should think about redeveloping of your JPEG-processing application, you may use any of open-source JPEG libraries (like IJG).

Regards,
Sergey

0 Kudos
TURK__Tamer
Novice
10,352 Views

Hi Sergey, I found a library and source file from github related to ijl, but I still get "ijl" errors even though I added it to visual studio.

 

My purpose is to do these operations;

We have a .dll file, I am trying to build it. To overcome the license problem and run it in release mode. I'm progressing hard and slow.

 

Can you help me?

0 Kudos
Sergey_K_Intel
Employee
10,352 Views

That ijl20.lib is import library for ijl20.dll in amd64 mode, not for win32.

Ijl15.lib is static library for win32, so you may try to integrate ijl15 instread of ijl20.

Nevertheless, you won't find ippiResize_8u_C1R/C3R in new IPP, these functions are deprecated. You should use ippiResizeNearest/Linear/Cubic/... functions instead of deprecated.

0 Kudos
TURK__Tamer
Novice
10,353 Views

Hi Sergey , 

Thanks, I have made some progress with your help. Why do you think the following problem is caused?

 

 

0 Kudos
Sergey_K_Intel
Employee
10,352 Views

If you have no source code files for AynxDirectoryInfo.lib and this is your old library, it means that format of object files and library file differ from what your current linker can operate with (https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1047?view=vs-2019). The only way is to downgrade the version of Visual Studio which you use.

0 Kudos
TURK__Tamer
Novice
10,352 Views

Hi Sergey Again ,

The error was like this time, I can get the .dll output of the other modules but I can't get the important one.

2>  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 2098)
2>   To work around this problem, try simplifying or changing the program near the locations listed above.
2>  Please choose the Technical Support command on the Visual C++ 
2>   Help menu, or open the Technical Support help file for more information
2>LINK : fatal error LNK1257: code generation failed
3>------ Rebuild All started: Project: Ayonix.FaceID, Configuration: Release x86 ------
3>  Ayonix.FaceID -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.FaceID.dll
4>------ Rebuild All started: Project: Ayonix.AccessControl, Configuration: Release x86 ------
4>  Ayonix.AccessControl -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.AccessControl.dll
5>------ Rebuild All started: Project: Ayonix.AccessControl.Repository.FlatFile, Configuration: Release x86 ------
6>------ Rebuild All started: Project: Ayonix.AccessControl.Presentation, Configuration: Release x86 ------
5>  Ayonix.AccessControl.Repository.FlatFile -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.AccessControl.Repository.FlatFile.dll
6>  Ayonix.AccessControl.Presentation -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.AccessControl.Presentation.dll
7>------ Rebuild All started: Project: Ayonix.AccessControl.UI.WinForms.PersonsManager, Configuration: Release x86 ------
7>  Ayonix.AccessControl.UI.WinForms.PersonsManager -> C:\Users\Aker\Desktop\2.0\bin\release\pmanager.exe
========== Rebuild All: 6 succeeded, 1 failed, 0 skipped ==========

 

0 Kudos
Sergey_K_Intel
Employee
10,352 Views

Unfortunately, I have no idea here. Try to simplify problematic line, break it into two or three.

0 Kudos
Adriaan_van_Os
New Contributor I
10,352 Views

Sergey Khlystov (Intel) wrote:

If you have no source code files for AynxDirectoryInfo.lib and this is your old library, it means that format of object files and library file differ from what your current linker can operate with (https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1047?view=vs-2019). The only way is to downgrade the version of Visual Studio which you use.

Or do the linking manually with a decent linker. Absolutely crazy by the way, that MS builds "tools" that can not import those object files or libs. Another reason to only ever use open-source development tools.

Regards,

Adriaan van Os

 

 

 

0 Kudos
TURK__Tamer
Novice
10,352 Views

Hi Sergey , 

Thank you for your help. I do not have any linking or library problems. Now I am dealing with the problems caused by visual studio 2012. I am writing problems on Microsoft pages.

 

2>  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 2098)
2>   To work around this problem, try simplifying or changing the program near the locations listed above.
2>  Please choose the Technical Support command on the Visual C++ 
2>   Help menu, or open the Technical Support help file for more information
2>LINK : fatal error LNK1257: code generation failed
3>------ Rebuild All started: Project: Ayonix.FaceID, Configuration: Release x86 ------
3>  Ayonix.FaceID -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.FaceID.dll
4>------ Rebuild All started: Project: Ayonix.AccessControl, Configuration: Release x86 ------
4>  Ayonix.AccessControl -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.AccessControl.dll
5>------ Rebuild All started: Project: Ayonix.AccessControl.Repository.FlatFile, Configuration: Release x86 ------
6>------ Rebuild All started: Project: Ayonix.AccessControl.Presentation, Configuration: Release x86 ------
5>  Ayonix.AccessControl.Repository.FlatFile -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.AccessControl.Repository.FlatFile.dll
6>  Ayonix.AccessControl.Presentation -> C:\Users\Aker\Desktop\2.0\dlib\release\Ayonix.AccessControl.Presentation.dll
7>------ Rebuild All started: Project: Ayonix.AccessControl.UI.WinForms.PersonsManager, Configuration: Release x86 ------
7>  Ayonix.AccessControl.UI.WinForms.PersonsManager -> C:\Users\Aker\Desktop\2.0\bin\release\pmanager.exe
========== Rebuild All: 6 succeeded, 1 failed, 0 skipped ==========

0 Kudos
TURK__Tamer
Novice
10,347 Views

Hi Sergey, I caused the following problem (1), as follows;

(compiler file 'f: \ dd \ vctools \ compiler \ utc \ src \ p2 \ p2symtab.c', line 2098)

Because I manually changed the words "ippiResize_8u_C1R @ 68" and "ippiResize_8u_C3R @ 68" in the "AynxImage.lib" file.

The file "AynxImage.lib" definitely needs the functions "ippiResize_8u_C1R @ 68" and "ippiResize_8u_C3R @ 68".

Where can I get it or how can I fix it?

Thank you.

0 Kudos
Reply