1

I am trying to port a program made using OpenCV 2.4 (not 3) from OSX to iOS 7 (not 8, or 9)

I followed their tutorial, that worked until it complained of jpeg linking errors, I pasted the errors on google, and found on their issue tracker a solution, and a link to the jpeg library, I downloaded it, did all the steps correctly, and now it compiles and runs, but crashes on startup and complains with the following error:

dyld: Library not loaded: /opt/libjpeg-turbo/lib/libjpeg.62.dylib
Reason: image not found

I have no idea how to fix it

speeder
  • 6,197
  • 5
  • 34
  • 51

1 Answers1

3

Go to your Project -> Target -> General -> Linked Frameworks and Libraries and try changing the status of the libjpeg.a library you linked to "Optional" instead of "Required".

I was having the same exact issue and changing the status fixed the crash for me. Not sure why.

user6336133
  • 31
  • 1
  • 3
  • 1
    It doesn't solve problem - it just doesn't kill process on dylib loading failure but still doesn't load dylib – fnc12 Jul 27 '16 at 10:46