| May 31, 2009 10:00 AM PDT | |
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.
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.
Do you need more help?
This article applies to: Intel® C++ Compiler for Mac OS X* Knowledge Base, Intel® Integrated Performance Primitives Knowledge Base
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (1) 
Trackbacks (0)
Leave a comment 
To obtain technical support, please go to Software Support.


Aditya R.
i'm getting a similar error when I use ifort with openmp on mac os X. Are there compatibility issues with mac os x and OpenMP? Also, I tried all the above options. Is IPP the wrong framework?
dyld: Library not loaded: libiomp5.dylib
Referenced from: /Users/raghavan/Research/Programs/OpenMP/./hello
Reason: image not found
Trace/BPT trap