Closed eswenson1 closed 2 months ago
I even tried:
export LDFLAGS="-L/opt/homebrew/opt/libpcap/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libpcap/include"
but got the same error. Also, I do have libSDL2 installed:
ls /opt/homebrew/lib/libSDL2*
/opt/homebrew/lib/libSDL2-2.0.0.dylib@ /opt/homebrew/lib/libSDL2.dylib@ /opt/homebrew/lib/libSDL2main.a@
/opt/homebrew/lib/libSDL2.a@ /opt/homebrew/lib/libSDL2_test.a@
This is a SIMH problem. Maybe post your issue here: https://github.com/open-simh/simh
I don't have any issues building the pdp11 binary using the https://github.com/open-simh/simh.
According to this: *** git commit id is +e1db7dec41098cc7e22d2b379a26a7c4561dfa14.
you are on a very old commit.
When you update the repository, you also need to do git submodule sync --recursive
and then git submodule update --init --recursive
to ensure the submodules are also up to date.
Yes, it looks like I flubbed the command (from my history) that did both of these.
Actually, I've been doing:
git submodule sync
git submodule update
I didn't realize I needed the --recursive on both and the --init on update. Thanks.
After a few weeks of tinkering I finally got almost every emulator to build (except KLH10 Issue #2270 )
The dependency list is quite long though. I am thinking to add all this to the its/boot/dependencies.sh
file to at least have a record of the required MacOS dependencies
# this built pdp-10/ka/ks/kl
brew install sdl2
brew install gh
brew install sdl2_net
brew install sdl2_image
brew install pkg-config
brew install libpng zlib
brew install sdl2_config
brew install sdl2_sound
brew install pthread
brew install libpthread-stubs
brew install gtk+3
brew install sdl2_ttf
brew install vde
brew install autoheader
brew install autoconf
brew install aclocal
brew install automake
brew install qt5
brew install openssl
brew install cmake
export LDFLAGS="-L/usr/local/opt/qt@5/lib -L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/qt@5/include -I/usr/local/opt/zlib/include"
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"
2/16/2024: Edited to clean up duplicate installs and fixing a typo
We should try to get this running with GitHub's CI actions. There is currently no way to pass the environment from dependencies.sh to the "make" step. Maybe those lines can be written to a file which is sourced before make runs, or something...
When I try to build with
make EMULATOR=pdp10-ka all
on an M2 Mac, the pdp11 simulator build fails with linker errors referencingpcap_...
. I have done abrew install libpcap
, which was successful -- but that does't fix the issue.This is what the output looks like:
Note, also, this error, which occurs twice:
Also note that I did install
brew install sdl2
, so I'm not sure why I'm getting the errors about libsdl2.