Changeset - a9fdf75beb22
[Not reviewed]
tip default
0 3 0
Kallithea Admin (logiqub) - 23 months ago 2022-06-08 04:56:15
logiqub@gmail.com
Fix Linux build:
* add chdir and execv missing implementations in process.s
* update SDL2 library name in demo/tetris/sdl2.qub

Update README.md:
* add missing ./configure (create Makefile.conf for LC_VER)
* update libSDL2 install commands (add architecture i386)
* typo fix
3 files changed with 24 insertions and 8 deletions:
0 comments (0 inline, 0 general)
README.md
Show inline comments
...
 
@@ -4,7 +4,7 @@ The logiqub is a scripting language desi
 
interoperable (portable, extensible, embeddable). As a virtual machine
 
assembler, high level features present in other languages are not implemented.
 
The minimalist approach reduces complexity and maintenance, and increases
 
agility by cutting depencies. That being said, anything that can be done
 
agility by cutting dependencies. That being said, anything that can be done
 
in C and assembly can be done with the logiqub.
 

	
 
Visit the <a href="http://logiqub.com/about" class="readme">about</a> page to
...
 
@@ -35,16 +35,18 @@ Debian packages for the logiqub are not 
 
You can download a prebuilt binary <a href="http://logiqub.com/download/" class="readme">here</a>.
 
For graphical apps get the SDL2 libraries for Debian:
 

	
 
    sudo dpkg --add-architecture i386
 
    sudo apt-get update
 
    sudo apt-get install libsdl2-2.0
 
    sudo apt-get install libsdl2-image-2.0
 
    sudo apt-get install libsdl2-tff-2.0
 
    sudo apt-get install libsdl2-mixer-2.0
 
    sudo apt-get install libsdl2-2.0-0:i386
 
    sudo apt-get install libsdl2-image-2.0-0:i386
 
    sudo apt-get install libsdl2-mixer-2.0-0:i386
 
    sudo apt-get install libsdl2-tff-2.0-0:i386
 
    sudo apt-get install libsdl2-net-2.0-0:i386
 

	
 
### 2) Source
 

	
 
In the following code, change "linux" to "raspbian" for the Raspberry Pi.
 
Open a terminal.
 
In the following code, change "logiqub/system/linux" to
 
"logiqub/system/raspbian" for the Raspberry Pi. Open a terminal.
 

	
 
    sudo apt-get update
 
    sudo apt-get install binutils
...
 
@@ -56,6 +58,7 @@ Open a terminal.
 
    hg clone http://logiqub@logiqub.com/repo/logiqub
 

	
 
    cd logiqub/system/linux
 
    ./configure                     # creates Makefile.conf
 
    make                            # release build
 
    make debug                      # debug build (symbols for gdb)
 
    make lib                        # library build
...
 
@@ -137,6 +140,7 @@ to know the offsets of C struct fields o
 
    pacman -S mingw32/mingw-w64-i686-SDL2_image
 
    pacman -S mingw32/mingw-w64-i686-SDL2_mixer
 
    pacman -S mingw32/mingw-w64-i686-SDL2_ttf
 
    pacman -S mingw32/mingw-w64-i686-SDL2_net
 

	
 
<br>
 
Verify installation.
demo/tetris/sdl2.qub
Show inline comments
...
 
@@ -4,7 +4,7 @@ os_name "linux" $ dup ?_ $= (0 true )( f
 
{ sdl >:
 

	
 
LINUX (1
 
  "SDL2" : "libSDL2.so" $0 dlopen constant ;
 
  "SDL2" : "libSDL2-2.0.so.0" $0 dlopen constant ;
 
)(
 
  "SDL2" : "SDL2.dll" $0 dlopen constant ;
 
%)
system/linux/process.s
Show inline comments
...
 
@@ -25,6 +25,18 @@
 
    NIP
 
    NEXT
 

	
 
_chdir_:    # ( dirname -- 0|err )
 
    DUP
 
    call    chdir
 
    NIP
 
    NEXT
 

	
 
_execv_:    # ( args pathname -- 0|err )
 
    DUP
 
    call    execv
 
    leal    8(%esp), %esp
 
    NEXT
 

	
 

	
 
/* vim: ft=gas :
 
*/
0 comments (0 inline, 0 general)