Using X11 for an older program

Ryan Schmidt ryandesign at macports.org
Fri Dec 25 22:05:47 UTC 2020



On Dec 21, 2020, at 20:55, Ken Cunningham wrote:

> There are likely to be more libraries missing after you fix this one, but you can try.
> 
> EIther symlink a real library that is the same or as similar as you have into the position being looked for:
> 
> sudo ln -s /opt/local/lib/libpng16.16.dylib /opt/X11/lib/libpng15.15.dylib
> 
> or
> 
> use install_name_tool to change /opt/local/lib/libpng16.16.dylib to /opt/X11/lib/libpng15.15.dylib in your binary.
> 
> install_name_tool -change  /opt/local/lib/libpng16.16.dylib /opt/X11/lib/libpng15.15.dylib /path/to/my/binary

Definitely do not do that. The filename has changed because version 15 and version 16 are not meant to be interchangeable.



More information about the macports-users mailing list