I was able to build a ScriptBasic SDL extension module for Ubuntu 12.04 LTS 32 bit. I will post the runtime versions for both 32/64 bit shortly. For some reason the
UFO example runs very slow compared to it's 64 bit counter part. I'm thinking this is a VirtualBox issue and would appreciate if someone could try this with VMWare or a direct boot Ubuntu 32 bit system. (both 2D/3D hardware accelerator support check boxes for the VM were clicked)
I'm going to assume with the following instructions that you have not installed ScriptBasic on Ubuntu 32 bit. It is assumed you already have SDL 1.2 installed on your system.
1. Download the ScriptBasic 2.2 beta release from
HERE.
2. Create a sub-directory out of your
home called
sb22 for this example install.
3. Unzip the ScriptBasic archive into your new sb22 directory.
4. Either add the following exports to your startup shell script or put them in a file (sbset) and use a
. ./sbset command. (adjust path names accordingly)
export PATH=/home/jrs/sb22/bin:$PATH
export SCRIBACONF=/home/jrs/sb22/bin/scriba.conf
5. You need to create a ScriptBasic
scriba.conf file which is built from a text file version. (scriba.conf.txt) Adjust paths for your system.
dll ".so"
module "/home/jrs/sb22/modules/"
include "/home/jrs/sb22/include/"
maxinclude 100
preproc (
internal (
sdbg "/home/jrs/sb22/modules/sdbg.so"
)
)
maxstep 0
maxlocalstep 0
maxlevel 3000
maxmem 0
If the exports have been done, type the following in the ~/sb22/bin directory where you saved the scriba.conf.txt file.
scriba -k scriba.conf.txt
This will create a
scriba .conf in your ~/sb22/bin directory.
6. Download the sbsdl_u32.zip and put the
lib*.so files in your
/usr/lib (using sudo) and copy the
sdl.so to your
~/sb22/modules directory.
That should do it for you. I also included the
ufo.sb SB script which can go into a test directory inside your ~/sb22 directory.
From a console/terminal window and in your test directory, type the following to run the ufo.sb program.
scriba ufo.sb