I just updated my Xcode to 4.6 and then I noticed that my installed OpenCV does not working properly. I got the following errors when I was trying to compile conde that uses OpenCV:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /opt/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Trace/BPT trap: 5
Anyone knows how to solve this problem?
Thank you!
This is the answer you are looking for.
Set environment variable
DYLD_FALLBACK_LIBRARY_PATH.