When I try to open a binary executable file, I get:
dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib
After manually installing libpng
with Homebrew, I next get a similar error (in the same dyld
library):
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
After installing libjpeg
with Homebrew, I get the infamous error:
Illegal instruction: 4
And, once again, the binary executable does not open. Now I am thinking about simply incorporating these two preprocessor directives into the src and recompiling the binary executable:
- A
libpng
preprocessor directive - A
libjpeg
preprocessor directive
Is this a good approach and, if so, would it perhaps be possible to install the dyld
library in one line altogether (instead of separately installing libpng
and libjpeg
and any other requisite components, as I received an Illegal instruction: 4
even after both were installed).
Can someone demonstrate a clean way to incorporate dyld
library code into my src? I can provide a Github link to the src, if necessary.