Previous - NeXT computer emulator - on Debian
back to main Previous page.
History
2021-11-15: I re-created this page on my self-hosted web server.
2017-06-29: build - run make
bitraf@desktop-41nl8sd:~/work/previous/previous-code/build$ make Scanning dependencies of target Slirp [ 1%] Building C object src/slirp/CMakeFiles/Slirp.dir/bootp.c.o In file included from /usr/include/string.h:630:0, from /usr/include/x86_64-linux-gnu/sys/un.h:37, from /home/bitraf/work/previous/previous-code/src/slirp/slirp.h:162, from /home/bitraf/work/previous/previous-code/src/slirp/bootp.c:24: /home/bitraf/work/previous/previous-code/src/slirp/misc.h:27:7: error: expected identifier or ‘(’ before ‘__extension__’ char *strdup(const char *); ^ src/slirp/CMakeFiles/Slirp.dir/build.make:62: recipe for target 'src/slirp/CMakeFiles/Slirp.dir/bootp.c.o' failed make[2]: *** [src/slirp/CMakeFiles/Slirp.dir/bootp.c.o] Error 1 CMakeFiles/Makefile2:607: recipe for target 'src/slirp/CMakeFiles/Slirp.dir/all' failed make[1]: *** [src/slirp/CMakeFiles/Slirp.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
ok, it fails like on Fedora.
2017-06-29: build - run cmake
bitraf@desktop-41nl8sd:~/work/previous/previous-code/build$ cmake .. -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread -- Found MATH: /usr/lib/x86_64-linux-gnu/libm.so -- Could NOT find READLINE (missing: READLINE_LIBRARY READLINE_INCLUDE_DIR) -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.28") -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so -- Looking for include file termios.h -- Looking for include file termios.h - found -- Looking for include file strings.h -- Looking for include file strings.h - found -- Looking for include file malloc.h -- Looking for include file malloc.h - found -- Looking for include file sys/times.h -- Looking for include file sys/times.h - found -- Looking for include files sys/socket.h, sys/un.h -- Looking for include files sys/socket.h, sys/un.h - found -- Looking for include file SDL2/SDL_config.h -- Looking for include file SDL2/SDL_config.h - found -- Looking for cfmakeraw -- Looking for cfmakeraw - found -- Looking for setenv -- Looking for setenv - found -- Looking for select -- Looking for select - found -- Looking for posix_memalign -- Looking for posix_memalign - found -- Looking for memalign -- Looking for memalign - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for nanosleep -- Looking for nanosleep - found -- Looking for alphasort -- Looking for alphasort - found -- Looking for scandir -- Looking for scandir - found -- Looking for include file sys/filio.h -- Looking for include file sys/filio.h - not found -- Looking for include file sys/ioctl.h -- Looking for include file sys/ioctl.h - found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Found PythonInterp: /usr/bin/python (found version "2.7.13") -- Configuring done -- Generating done -- Build files have been written to: /home/bitraf/work/previous/previous-code/build
ok.
2017-06-29: make a build directory
bitraf@desktop-41nl8sd:~/work/previous$ cd previous-code/ bitraf@desktop-41nl8sd:~/work/previous/previous-code$ mkdir -p build bitraf@desktop-41nl8sd:~/work/previous/previous-code$ cd build
ok.
2017-06-29: get source
bitraf@desktop-41nl8sd:~/work/previous$ svn checkout svn://svn.code.sf.net/p/previous/code/branches/branch_realtime previous-code [...] U previous-code Checked out revision 825.
ok.
2017-06-29: create a directory to work in
bitraf@desktop-41nl8sd:~$ mkdir -p ~/work/previous bitraf@desktop-41nl8sd:~$ cd ~/work/previous
ok.
2017-06-29: install prerequisites:
bitraf@desktop-41nl8sd:~$ sudo apt install libsdl2-dev libpng-dev Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: cups-browsed cups-core-drivers cups-daemon cups-filters-core-drivers cups-ppdc cups-server-common fakeroot foomatic-db-compressed-ppds foomatic-filters freepats g++ g++-6 git-man gstreamer0.10-alsa gstreamer0.10-plugins-base hp-ppd hplip-data icedtea-netx-common imagemagick-common libatk-wrapper-java libavcodec56 libavresample2 libavutil54 libbasicusageenvironment0 libchromaprint0 libcupscgi1 libcupsmime1 libcupsppdc1 libde265-0 libdvbpsi9 libfakeroot libfluidsynth1 libfontembed1 libfreerdp-cache1.1 libfreerdp-client1.1 libfreerdp-codec1.1 libfreerdp-common1.1.0 libfreerdp-core1.1 libfreerdp-crypto1.1 libfreerdp-gdi1.1 libfreerdp-locale1.1 libfreerdp-primitives1.1 libfreerdp-rail1.1 libfreerdp-utils1.1 libgif4 libgif7 libgovirt-common libgroupsock1 libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libgutenprint2 libgvnc-1.0-0 libhpmud0 libilmbase6 libjasper1 libkeybinder0 liblilv-0-0 liblircclient0 liblivemedia23 liblouisutdml-bin liblouisutdml-data liblouisutdml7 libmariadbclient18 libmjpegutils-2.1-0 libmms0 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libofa0 libopenal-data libopenal1 libopencv-calib3d2.4v5 libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4-deb0 libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenexr6 libopenjpeg5 libpango1.0-0 libpaps0 libphodav-2.0-common libpng12-0 libpostproc52 libqpdf17 libqt4-help libqt4-network libqt4-sql libqt4-sql-mysql libqt4-svg libsane-hpaio libsbc1 libschroedinger-1.0-0 libsctp1 libserd-0-0 libsnmp-base libsnmp30 libsord-0-0 libsoundtouch1 libspandsp2 libsratom-0-0 libsrtp0 libstdc++-6-dev libswscale3 libusageenvironment1 libusbredirhost1 libvirt-glib-1.0-0 libvo-aacenc0 libvo-amrwbenc0 libvpx1 libwebrtc-audio-processing-0 libwildmidi-config libwildmidi2 libwinpr-crt0.1 libwinpr-crypto0.1 libwinpr-dsparse0.1 libwinpr-environment0.1 libwinpr-file0.1 libwinpr-handle0.1 libwinpr-heap0.1 libwinpr-input0.1 libwinpr-interlocked0.1 libwinpr-library0.1 libwinpr-path0.1 libwinpr-pool0.1 libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1 libwinpr-synch0.1 libwinpr-sysinfo0.1 libwinpr-thread0.1 libwinpr-utils0.1 libx264-142 libxcb-composite0 libxfce4util6 libxfcegui4-4 libzbar0 lksctp-tools mscompress mysql-common openprinting-ppds paps printer-driver-all printer-driver-brlaser printer-driver-c2esp printer-driver-cjet printer-driver-dymo printer-driver-escpr printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-fujixerox printer-driver-hpijs printer-driver-m2300w printer-driver-min12xxw python-cups python-imaging python-pexpect python-ptyprocess python-renderpm python-reportlab python-reportlab-accel python-smbc qpdf rsync spice-client-glib-usb-acl-helper ssl-cert xfce-keyboard-shortcuts xfce4-artwork xfce4-quicklauncher-plugin xfce4-volumed Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: gir1.2-ibus-1.0 libasound2-dev libdbus-1-dev libdpkg-perl libdrm-dev libegl1-mesa-dev libfile-fcntllock-perl libgl1-mesa-dev libgles2-mesa-dev libglib2.0-dev libglu1-mesa-dev libibus-1.0-5 libibus-1.0-dev libice-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpng-tools libpthread-stubs0-dev libpulse-dev libsdl2-2.0-0 libsm-dev libsndio-dev libudev-dev libwayland-bin libwayland-dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxrender-dev libxshmfence-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev mesa-common-dev pkg-config x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev Suggested packages: libasound2-doc debian-keyring libglib2.0-doc libice-doc libsm-doc libxcb-doc libxext-doc libxt-doc The following NEW packages will be installed: gir1.2-ibus-1.0 libasound2-dev libdbus-1-dev libdpkg-perl libdrm-dev libegl1-mesa-dev libfile-fcntllock-perl libgl1-mesa-dev libgles2-mesa-dev libglib2.0-dev libglu1-mesa-dev libibus-1.0-5 libibus-1.0-dev libice-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpng-dev libpng-tools libpthread-stubs0-dev libpulse-dev libsdl2-2.0-0 libsdl2-dev libsm-dev libsndio-dev libudev-dev libwayland-bin libwayland-dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxrender-dev libxshmfence-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev mesa-common-dev pkg-config x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-scrnsaver-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev 0 upgraded, 76 newly installed, 0 to remove and 0 not upgraded. Need to get 15.9 MB/17.4 MB of archives. After this operation, 63.4 MB of additional disk space will be used. Do you want to continue? [Y/n] y [...] Processing triggers for libc-bin (2.24-11+deb9u1) ...
ok.
2017-06-29:I'm using Debian 9 (stretch) for testing
bitraf@desktop-41nl8sd:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.0 (stretch) Release: 9.0 Codename: stretch bitraf@desktop-41nl8sd:~$ uname -a Linux desktop-41nl8sd 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/Linux
ok