• Tcl/Tk on Haiku

    From Luis P. Mendes@21:1/5 to All on Sat Nov 6 14:47:00 2021
    Hi all!


    AFAICT, there was an old version of Tcl running on the Haiku operating
    system.
    Haiku aims to be a simple to use operating system for desktop use, which matches Tcl and Tk spirit.

    Is there any effort to make Tcl and Tk available on that system?
    Tcl and Tk could gain some ground on Haiku.



    Luis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Werner@21:1/5 to All on Sat Nov 6 09:38:51 2021
    You could try out the Haiku OS builds of undroidwish, see www.androwish.org However, this currently has no standalone tclsh. And is rather experimental. OTOH, a plain Tcl 8.6 can be easily compiled on current Haiku OS.

    Cheers,
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luis P. Mendes@21:1/5 to Christian Werner on Mon Nov 8 15:39:06 2021
    Sat, 06 Nov 2021 09:38:51 -0700, Christian Werner wrote:

    You could try out the Haiku OS builds of undroidwish, see
    www.androwish.org However, this currently has no standalone tclsh. And
    is rather experimental.
    OTOH, a plain Tcl 8.6 can be easily compiled on current Haiku OS.

    Cheers,
    Christian

    Hi Christian,


    In fact, I could compile the new 8.6.12. The return code was 0.

    But `make check` returned an error.
    make test
    [...]
    gcc -O2 -pipe -Wl,--export-dynamic -shared -o pkgooa.so pkgooa.o -L/ boot/home/Desktop/tcl8.6.12/unix -ltclstub8.6 -lroot -lz -lpthread -
    lnetwork
    make[1]: Leaving directory '/boot/home/Desktop/tcl8.6.12/unix/dltest'
    make tcltest-real LIB_RUNTIME_DIR="`pwd`"
    make[1]: Entering directory '/boot/home/Desktop/tcl8.6.12/unix'
    gcc -O2 -pipe -Wl,--export-dynamic tclTestInit.o tclTest.o
    tclTestObj.o tclTestProcBodyObj.o tclThreadTest.o tclUnixTest.o \
    -L/boot/home/Desktop/tcl8.6.12/unix -ltcl8.6 libtclstub8.6.a -
    lroot -lz -lpthread -lnetwork \
    -o tcltest
    make[1]: Leaving directory '/boot/home/Desktop/tcl8.6.12/unix' LD_LIBRARY_PATH=`pwd`: TCLLIBPATH="/boot/home/Desktop/tcl8.6.12/unix/
    pkgs" TCL_LIBRARY="/boot/home/Desktop/tcl8.6.12/library" ./tcltest /boot/ home/Desktop/tcl8.6.12/tests/all.tcl
    runtime_loader: Cannot open file libtcl8.6.so: No such file or directory Makefile:813: recipe for target 'test-tcl' failed
    make: *** [test-tcl] Error 3


    And `make install` could not install it.

    make install
    Making directory /usr/local/lib
    Making directory /usr/local/bin
    Installing libtcl8.6.so to /usr/local/lib/
    cp: cannot create regular file '/usr/local/lib/_inst.33973_': Invalid
    Argument
    Makefile:887: recipe for target 'install-binaries' failed
    make: *** [install-binaries] Error 1


    Best regards,


    Luis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Werner@21:1/5 to All on Mon Nov 8 08:25:20 2021
    Luis,

    the default prefix of /usr/local is no good idea on Haiku OS.
    Use e.g. /boot/usr/local and a symlink from /boot/usr to /usr
    or something below your home directory.

    HTH,
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luis P. Mendes@21:1/5 to Christian Werner on Sun Nov 21 00:07:58 2021
    Mon, 08 Nov 2021 08:25:20 -0800, Christian Werner wrote:

    Luis,

    the default prefix of /usr/local is no good idea on Haiku OS.
    Use e.g. /boot/usr/local and a symlink from /boot/usr to /usr or
    something below your home directory.

    HTH,
    Christian

    Hi Christian,

    I followed your suggestion and tried two ways.
    Created a symlink to /usr/local and also changed the prefix dir in the configure script to a different location.
    Still, got the same error.

    Regarding Tk, I guess it's not possible to compile it in Haiku because
    this system doesn't have X11, right?


    Thanks,

    Luis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Werner@21:1/5 to Luis P. Mendes on Sun Nov 21 01:42:16 2021
    Luis P. Mendes schrieb am Sonntag, 21. November 2021 um 01:08:01 UTC+1:

    ...
    I followed your suggestion and tried two ways.
    Created a symlink to /usr/local and also changed the prefix dir in the configure script to a different location.
    Still, got the same error.

    OK, then please just use the HaikuPorts version of tcl-8.6.11 which you
    can install by

    pkgman install tcl

    Regarding Tk, I guess it's not possible to compile it in Haiku because
    this system doesn't have X11, right?

    Correct, that is where my undroidwish project (see www.androwish.org)
    comes into play. It uses the mechanisms from AndroWish (SDL2, AGG,
    freetype) to somewhat emulate an X11.

    HTH,
    Christian

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)