Results 1 to 3 of 3

Thread: Silly Lua path question for Girder running on Rpi Jessie

  1. #1

    Default Silly Lua path question for Girder running on Rpi Jessie

    Hey Ron,

    Sorry to bug you, how do I fix the path that Girder uses for Lua? I loaded "luarocks", and stuff to attempt getting girder to work with OSC "open sound control"
    - works fine so far, but I get an error when it can't find a certain module in the path

    /opt/girder $ luarocks path
    export LUA_PATH='/home/fpp/.luarocks/share/lua/5.1/?.lua;/home/fpp/.luarocks/share/lua/5.1/?/init.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua;./?.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?/init.lua'
    export LUA_CPATH='/home/fpp/.luarocks/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/?.so;/root/.luarocks/lib/lua/5.1/?.so;./?.so;/usr/lib/arm-linux-gnueabihf/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so'

    In Girder I get this:
    Tue Jan 31 03:49:32 2017 Scripting / [string "Scripting"]:17: module 'lub' not found:
    Tue Jan 31 03:49:32 2017 no field package.preload['lub']
    Tue Jan 31 03:49:32 2017 no file './lub.lua'
    Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub.lua'
    Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub/init.lua'
    Tue Jan 31 03:49:32 2017 no file '/opt/girder/liblub.so'
    Tue Jan 31 03:49:32 2017 no file '/opt/girder/lub.so'
    Tue Jan 31 03:49:32 2017 no file './liblub.so'
    Tue Jan 31 03:49:32 2017 no file './lub.so'
    Tue Jan 31 03:49:32 2017 no file './lub.elua'
    Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub.elua'
    Tue Jan 31 03:49:32 2017 no file '/opt/girder/lua/lub/init.elua'
    Tue Jan 31 03:49:32 2017 stack traceback:
    Tue Jan 31 03:49:32 2017 [C]: in function 'require'
    Tue Jan 31 03:49:32 2017 [string "Scripting"]:17: in main chunk

    Thanks in advance for any help!
    -Declan.

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    It is extremely unlikely that you can load external lua libraries (dll or so) as Girder uses it's own Lua build. You can use external lua libraries that come as .lua files.
    Ron
    No support through PM

  3. #3

    Default

    Thanks for the reply...

    Bummer... yesterday blown...

    Guess that Crestron is still the king of the touchscreens then... ugh ($$).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •