[Simh] Installing SDL2 on Mac To Build SIMH

Paul Koning paulkoning at comcast.net
Fri Feb 16 16:19:23 EST 2018



> On Feb 16, 2018, at 3:50 PM, Mark Pizzolato <Mark at infocomm.com> wrote:
> 
> On Friday, February 16, 2018 at 12:23 PM, Rob Jarratt wrote:
>> I don't have a Mac but I need someone to be able to build SIMH on 
>> his Mac and be able to link SDL2. I have looked at this page: https://www.libsdl.org/download-2.0.php
>> 
>> I don't understand if you need runtime or dev libraries, I have tried 
>> opening both dmg files with 7Zip and I can't find anything in either 
>> that looks like a libsdl2.a file. What am I looking for and where would 
>> I put the file to be able to link it? Compile already works.
> 
> Rob,
> 
> The normal simh makefile knows how to find the necessary SDL pieces on all *nix platforms (including MacOS X).  

Unfortunately it doesn't handle the simple case of installing the pieces from source.  I have SDL and SDL2 in /usr/local/lib, which  is the default for GNU packages built from source.  SIMH doesn't find it.  Which is odd, because /usr/local/lib is also the standard spot on other Unix systems such as Linux.

"brew" and/or "port" use other paths like /opt, but I don't want to use those tools.  It would be good if built-from-source dependencies are recognized.

As for the prebuilt libraries, I wonder if all you get is shared libraries.  On Linux those are *.so files, but on Mac OS they are *.dylib.

	paul




More information about the Simh mailing list