-
Notifications
You must be signed in to change notification settings - Fork 56
Linux (x86) build and run instructions
Victor edited this page Apr 12, 2018
·
6 revisions
NB: this is NOT for cross-compilation. NB: see pull request #37 for PulseAudio, unless it has been merged into master already.
-
gcc
andg++
- Jam 2.5.
- 32-bit development and runtime libraries (
i386
ori686
architecture, depending on your distribution) for: glibc
-
libX11
,libXau
,libffi
- If you want sound output,
pulseaudio
andalsa
. - Your legally obtained
717006.rom
file.
- Clone the Einstein repo somewhere.
cd [repo-dir]/K/_Build_/Jam
-
jam -starget=linux
to build the K libraries. It will give you an error at the end about not being able to linktests.cp.o
butbuild.LINUX/libk.a
should exist. cd [repo-dir]/_Build_/Jam
- Build CLI application with PulseAudio and (old) PortAudio:
jam -starget=linux -spulseaudio=yes
- Build with system-provided PortAudio libs:
jam -starget=linux -snativeportaudio=yes
You will get build.LINUX/einstein
which is the emulator with a CLI interface.
Before you run Einstein for the first time, it is a good idea to setup a directory to contain the files that Einstein requires, such as your ROM file.
- Create a directory, for example,
$HOME/.einstein/
- Copy your ROM file to this directory, and name it
717006.rom
- Copy
[repo-dir]/_Data_/Einstein.rex
to this directory. - Set the environment variable EINSTEIN_HOME, eg. put the line
export EINSTEIN_HOME=$HOME/.einstein/
in your~/.bash_profile
file, assuming you use bash as your shell. - Logout and login again, or, from your current terminal, run
. ~/.bash_profile
to refresh your environment variables.
- Open a terminal.
-
[repo-dir]/_Build_/Jam/build.LINUX/einstein --help
to print command-line help. - Run the emulator as
[repo-dir]/_Build_/Jam/build.LINUX/einstein
and it will open a new window for the Newton screen, and give you aneinstein>
prompt in the terminal. Typehelp
in the terminal to see help. - Run as
[repo-dir]/_Build_/Jam/build.LINUX/einstein --audio=pulseaudio
for sound output, assuming you compiled with PulseAudio.