Environment : Mac OS* X 10.5.x, Xcode 3.x.x. Intel® C++ Compiler Professional Edition for Mac OS* X, version 11.x.xxx, Installed compiler with default options.
Problem:
Build any application linking with dynamic IPP library, get build error:
file not found:libiomp5.dylib For example, download the IPP sample m_ipp-samples_p_6.0.0.109 from
http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-code-samples/Open the /image-processing/image-processing-functions/ippiDemo.xcodeproj in Xcode IDE.
Build the ippiDemo.xcodeproj project, it will fail with error message: file not found:libiomp5.dylib
Build failed(1 error)
Resolution : As a workaround, please try
1) # cd /Library/Frameworks/Intel_IPP.framework
2) # ./Versions/Current/tools/env/ippunbind.sh
3) # cp /opt/intel/Compiler/11.0/0xx/lib/libiomp5.dylib ./Libraries
4) # ./Versions/Current/tools/env/ippbind.sh
Please note: since 6.0, IPP libraries for Mac OS* was integrated to Intel® C++ Compiler Professional Edition. As the default OpenMP library (libiomp5.dylib, libiomp5.a) used by IPP are not in IPP Libraries/lib directory as previous versions. They are actually under Intel compiler lib directory /opt/intel/Compiler/11.0/0xx/lib now.
Other related error: "Library not loaded: libiomp5.dylib"If add -liomp5 to the "Other Linker Flags" and added "/opt/intel/Compiler/11.0/0xx/lib/" to the "Library Search Paths" in the ippiDemo project.
Or
try IPP static link: add –lippsemerged –lippsmerged /opt/intel/Compiler/11.0/056/Frameworks/ipp/lib/libippcore.a
The project compiled, but at run time, it failed with error:
Library not loaded: libiomp5.dylib
Referenced from: /opt/intel/Compiler/11.0/056/Frameworks/ipp/Libraries/libippac-6.0.dylib
Reason: image not found
Workaround: If dynamic link IPP library, please try the resolution as above.
If static link IPP library, please delete the explicit link files in the project :ippiDemo.xcodeproj. libippi.dylib libipps.dylib libippcore.dylib and Intel_IPP.Frameworks and rebuild.