G'day,

I've just noticed (via lwn.net) that GNU/Linux Mint 20 (MATE interface).

Notably, this include Linux Kernel 5, which smooths some IUP thing out.

I'm pleased to report that (with some minor klunky things, that took
me 5 minutes to sort out) I've been able to get an IUP "Hello, World"
iup.Message dialog box to run (slimmed-down manual extract):

        #!/bin/bash ../support/play-lua-tec
        local iup = require("iuplua")
        iup.Message("MyApp", "hello, world")

The files in "../support/" are:

        libcdlua51.so
        libcdluapdf51.so
        libcdpdf.so
        libcd.so
        libimlua51.so
        libim.so
        libiuplua51.so
        libiup.so
        libpdflib.so
        play-lua-tec

and "play-lua-tec" plays with "package.cpath" and LD_LIBRARY_PATH:
(slimmed-down manual extract):

        LUAVER="51"
        LOCAL_SUPPORT_PACKAGE_CPATH=$(cat <<EOF
        package.cpath= table.concat({
                '../support/?.so',
                '../support/lib?.so',
                '../support/lib${LUAVER}.so',
                package.cpath}, ';')

        EOF
                                     )

        LD_LIBRARY_PATH="../support:$:D_LIBRARY_PATH"        \
                       lua -a "$LOCAL_SUPPORT_PACKAGE_CPATH" \
                       "$@"

(Lots of "Assistant" infrastructure elided for now, until I can pin
down a cohesive version to host on a proper project platform...)

cheers,

sur-behoffski (Brenton Hoff)
programmer, Grouse Software


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to