Menu

Compiling X11-Basic for Raspbian on Windows Box (running inside a VM)

Anonymous
2018-06-29
2019-05-29
  • Anonymous

    Anonymous - 2018-06-29

    Good day. I am getting some errors when compiling the frame buffer version of v1.25:

    gcc -DFRAMEBUFFER -O3 -o xbasic.framebuffer main.c xbasic.c tools.c loadprg.c file.c io.c io_basic.c parser.c variablen.c svariablen.c array.c parameter.c fft.c mathematics.c memory.c runtime.c wort_sep.c ltext.c functions.c sfunctions.c afunctions.c kommandos.c gkommandos.c bitmap.c do_gets.c errortxt.c window.c sysVstuff.c aes.c graphics.c sound.c number.c decode.c virtual-machine.c type.c lodepng.c md5.c sha1.c framebuffer.c raw_mouse.c raw_keyboard.c consolefont.c terminal.c spat-a-fnt.c 8x16.c 5x7.c unifont.c unifont57.c -ldl -lm -lpthread -lasound -lutil -lreadline -llapack
    In file included from framebuffer.c:44:0:
    x11basic.h:150:3: error: unknown type name ‘uint32_t’
    uint32_t opcode;
    ^~~~~~~~
    x11basic.h:159:3: error: unknown type name ‘uint32_t’
    uint32_t opcode;
    ^~~~~~~~
    x11basic.h:168:3: error: unknown type name ‘uint32_t’
    uint32_t opcode;
    ^~~~~~~~
    x11basic.h:177:3: error: unknown type name ‘uint32_t’
    uint32_t opcode;
    ^~~~~~~~
    Makefile:520: recipe for target 'xbasic.framebuffer' failed
    make: *** [xbasic.framebuffer] Error 1
    pi@raspberry:~/Downloads/X11Basic-1.25 $

    I presume that I need to indlude the standard lib stdint.h, but am not sure where to add it at (maybe inside of x11basic.h?). Can someone advise what mods I need to make to enable this to compile? Thank you, in advance.

    Also, for those who are curious, I got the base Raspbian build forVM from here: http://www.aoakley.com/articles/2017-07-04-raspbian-x86-virtualbox.php

    I also had to modify the X11-Basic installation instructions:
    sudo apt-get install transfig
    sudo apt-get install imagemagick
    sudo apt-get install libblas
    sudo apt-get install liblapack

    sudo mkdir -p /usr/local/share/man/man1
    sudo mkdir -p /usr/local/share/icons/hicolor/scalable/apps/
    sudo mkdir -p /usr/local/share/applications/

    ./config
    make
    sudo make install

    X11-Basic runs. The framebuffer version won't build, obviously, but I am sure it is a simple little process that needs to be implemented, in order to get it to work.

    Take care, folks.

    ~MHz

     
  • MegaHurtz

    MegaHurtz - 2018-07-06

    Good day. I am the OP. I hadn't logged in when I posted same.

    Can you please approve the post, Sir Markus? TIA.

    ~MHz

     
  • Markus Hoffmann

    Markus Hoffmann - 2019-05-29

    Hi Mhz, Sorry, I completely forget to approve your post. Is the issue still an issue?

     

Anonymous
Anonymous

Add attachments
Cancel