Changeset - 01b9d75cb89e
[Not reviewed]
default
0 1 0
Kallithea Admin (logiqub) - 5 years ago 2019-08-25 16:19:52
logiqub@gmail.com
README install linux/raspbian
1 file changed with 57 insertions and 6 deletions:
README.md
57
6
0 comments (0 inline, 0 general)
README.md
Show inline comments
...
 
@@ -29,2 +29,47 @@ Supported systems and architectures:
 

	
 
## Linux (Debian, Raspbian)
 

	
 
### 1) Binary
 

	
 
Debian packages for the logiqub are not available for the moment.
 
You can download a prebuilt binary <a href="http://logiqub.com/download/">here</a>.
 
For graphical apps get the SDL2 libraries for Debian:
 

	
 
    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
 

	
 
### 2) Source
 

	
 
In the following code, change "linux" to "raspbian" for the Raspberry Pi.
 

	
 
    sudo apt-get update
 
    sudo apt-get install binutils
 
    sudo apt-get install gdb        # optional
 
    sudo apt-get install make
 
    sudo apt-get install mercurial
 

	
 
    cd $HOME                        # if you wish to install there
 
    hg clone http://logiqub@logiqub.com/repo/logiqub
 

	
 
    cd logiqub/system/linux
 
    make                            # release build
 
    make debug                      # debug build (symbols for gdb)
 
    make lib                        # library build
 

	
 
To install:
 

	
 
    ln -s $HOME/logiqub/system/linux/logiqub $HOME/bin/logiqub
 
    ln -s $HOME/logiqub/system/linux/liblogiqub.so $HOME/bin/liblogiqub.so
 

	
 
To test:
 

	
 
    cd $HOME/logiqub/demo
 
    logiqub ascii.qub
 

	
 
    cd tetris                       # SDL2
 
    logiqub main.qub
 

	
 
## Windows
...
 
@@ -33,3 +78,5 @@ Supported systems and architectures:
 

	
 
You can download a prebuilt binary here: <a href="http://logiqub.com/download/windows/logiqub.zip">logiqub.zip</a>.
 
You can download a prebuilt binary <a href="http://logiqub.com/download/">here</a>.
 

	
 
For graphical apps get the 32-bit <a href="https://www.libsdl.org/download-2.0.php">SDL2 libraries</a> for Windows.
 

	
...
 
@@ -42,2 +89,3 @@ Open a terminal.
 

	
 
    pacman -Syu                   # optional, update system
 
    pacman -S binutils
...
 
@@ -56,2 +104,3 @@ Open a terminal.
 

	
 

	
 
To properly install the executable, you should add it to your PATH environment
...
 
@@ -59,4 +108,4 @@ variable. You can also create a logiqub.
 

	
 
    alias run="ansixon_x86 winpty logiqub"
 
    alias debug="ansixon_x86 winpty gdb --args logiqub"
 
    alias run="ansicon_x86 winpty logiqub"
 
    alias debug="ansicon_x86 winpty gdb --args logiqub"
 
    export PATH=$PATH:$HOME/logiqub/system/windows
...
 
@@ -65,3 +114,4 @@ variable. You can also create a logiqub.
 
Make sure to "source logiqub.rc" in your .bashrc file to make the aliases
 
available, or do it manually.
 
available, or do it manually when you need.
 

	
 

	
...
 
@@ -74,3 +124,4 @@ If you wish to use SDL2 applications, ge
 

	
 
Verify installation
 

	
 
Verify installation.
 

	
...
 
@@ -79,3 +130,3 @@ Verify installation
 

	
 
    cd tetris
 
    cd tetris                       # SDL2
 
    run main.qub
0 comments (0 inline, 0 general)