Menu

Compilation of X11 Basic for Linux

bruno xxx
2018-02-11
2019-06-13
  • bruno xxx

    bruno xxx - 2018-02-11

    hello,

    I try to compile X11 basic 1.25 but I doesn't work for exemple on Mint 18.X

    I do a
    sudo apt-get install libx11-dev libreadline-dev libc6-dev
    before with success

    but libreadline.so.7 require by X11 Basic seems to be too recent for some distribs

    I try to find libreadline 7 https://pkgs.org/download/libreadline.so.7 but there are only few distrib with this version and when I try to install, there are some dependances that can be a problem for my distrib (and other distribs I think)

    Have you an idea ?

    thanks

    The .deb distrib has the same problem of dependency when I try to launch xbasic
    bruno-ProLiant-MicroServer-Gen8 X11Basic-1.25 # ldd xbasic
    linux-vdso.so.1 => (0x00007ffee124c000)
    libx11basic.so.1.25 => /usr/lib/libx11basic.so.1.25 (0x00007f9d6b086000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9d6acbc000)
    librfftw.so.2 => /usr/lib/librfftw.so.2 (0x00007f9d6aa89000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9d6a884000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9d6a57b000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9d6a35e000)
    libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007f9d6a05d000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f9d69e5a000)
    libreadline.so.7 => not found
    libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f9d69bd9000)
    libfftw.so.2 => /usr/lib/libfftw.so.2 (0x00007f9d6999f000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9d69665000)
    /lib64/ld-linux-x86-64.so.2 (0x000056401abc2000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9d6945c000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9d6923a000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9d69035000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9d68e2f000)

    bruno-ProLiant-MicroServer-Gen8 X11Basic-1.25 # xbasic
    xbasic: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
    bruno-ProLiant-MicroServer-Gen8 X11Basic-1.25 #

    bruno-ProLiant-MicroServer-Gen8 X11Basic-1.25 # ./configure

    Configuring X11-Basic with following features:
    Install prefix: /usr/local
    Cryptographic features = no
    Small RAM version = no
    German version = no
    Produce only static libraries = no
    Use X Window system = yes
    Use SDL library = no
    Use framebuffer = no
    Use readline library = yes
    Support USB = yes
    Support bluetooth = yes

    checking for xbasic... ok
    You seem to have x11basic already installed ! But I'll continue the configuration
    process. Testing X11-Basic Verison:
    xbasic: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out

     
  • Markus Hoffmann

    Markus Hoffmann - 2018-02-11

    Hm, this sounds a little strange, becaause when you compile X11-Basic it should produce a binary that uses the readline library in exactly that version which is present at compile time. And if it was missing, it sould not use it at all.

     
  • Markus Hoffmann

    Markus Hoffmann - 2018-02-11

    The error comes from the already installed x11basic. If you want to compile it from its sources it would be better to uninstall any broken version of X1-Basic which came from a .deb installation.

     
  • Anonymous

    Anonymous - 2018-02-12

    hi, I removed deb package with dpkg -r x11-basic. After It's better for readline problem but a make install still not work (./configure is ok)

    gcc -I. -DUSE_X11 -O3 -fno-omit-frame-pointer -c -o bytecode.o bytecode.c
    bytecode.c: In function ‘bc_parser’:
    bytecode.c:480:32: warning: format ‘%Zd’ expects argument of type ‘signed size_t’, but argument 2 has type ‘int’ [-Wformat=]
    if(verbose>1) gmp_printf("<\"%Zd\">.c ",a);
    ^
    gcc -I. -DUSE_X11 -O3 -fno-omit-frame-pointer -c -o xbbc.o xbbc.c
    gcc -o xbbc xbbc.o bytecode.o -L . -ldl -lm -lpthread -lutil -lreadline -lX11 -lx11basic
    strip xbbc
    LD_LIBRARY_PATH=. ./xbasic examples/compiler/xbc.bas --dynamic -o xbc -L .
    strip xbc
    gcc -I. -DUSE_X11 -O3 -fno-omit-frame-pointer -c -o xb2c.o xb2c.c
    gcc -o xb2c xb2c.o -L . -ldl -lm -lpthread -lutil -lreadline -lX11 -lx11basic
    strip xb2c
    LD_LIBRARY_PATH=. ./xbc examples/compiler/bas2x11basic.bas --dynamic -o bas2x11basic -L .
    strip bas2x11basic
    install -m 644 x11basic.svg /usr/local/share/icons/hicolor/scalable/apps/
    install: la cible '/usr/local/share/icons/hicolor/scalable/apps/' n'est pas un répertoire: Aucun fichier ou dossier de ce type
    Makefile:718 : la recette pour la cible « install » a échouée
    make: *** [install] Erreur 1
    bruno-ProLiant-MicroServer-Gen8 X11Basic-1.25 #

     
  • bruno xxx

    bruno xxx - 2018-02-12

    hi, I removed deb package with dpkg -r x11-basic. After It's better for readline problem but a make install still not work (./configure is ok)

    bytecode.c: In function ‘bc_parser’:
    bytecode.c:480:32: warning: format ‘%Zd’ expects argument of type ‘signed size_t’, but argument 2 has type ‘int’ [-Wformat=]
    if(verbose>1) gmp_printf("<\"%Zd\">.c ",a);
    ^
    gcc -I. -DUSE_X11 -O3 -fno-omit-frame-pointer -c -o xbbc.o xbbc.c
    gcc -o xbbc xbbc.o bytecode.o -L . -ldl -lm -lpthread -lutil -lreadline -lX11 -lx11basic
    strip xbbc
    LD_LIBRARY_PATH=. ./xbasic examples/compiler/xbc.bas --dynamic -o xbc -L .
    strip xbc
    gcc -I. -DUSE_X11 -O3 -fno-omit-frame-pointer -c -o xb2c.o xb2c.c
    gcc -o xb2c xb2c.o -L . -ldl -lm -lpthread -lutil -lreadline -lX11 -lx11basic
    strip xb2c
    LD_LIBRARY_PATH=. ./xbc examples/compiler/bas2x11basic.bas --dynamic -o bas2x11basic -L .
    strip bas2x11basic
    install -m 644 x11basic.svg /usr/local/share/icons/hicolor/scalable/apps/
    install: la cible '/usr/local/share/icons/hicolor/scalable/apps/' n'est pas un répertoire: Aucun fichier ou dossier de ce type
    Makefile:718 : la recette pour la cible « install » a échouée
    make: *** [install] Erreur 1
    bruno-ProLiant-MicroServer-Gen8 X11Basic-1.25 #

     
  • Markus Hoffmann

    Markus Hoffmann - 2018-02-12

    Hi Bruno,
    The compilation worked,just the installation had a problem, because the directory for the icons is not there. You can ignore that. x11basic should work anyways.

     
  • Markus Hoffmann

    Markus Hoffmann - 2018-02-12

    Maybe you just want to create that directory by hand
    sudo mkdir /usr/local/share/icons/hicolor/scalable/apps/

    and try again.

     
  • bruno xxx

    bruno xxx - 2018-02-12

    Yes !! It works, thanks for your help

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.