lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

thal 144 wrote:

I haven't finished the previous step yet, but I have renamed these files
in  ~/, copied t1.lua into this directory
and tried running > lua t1.lua there, but I got the same message from lua
that I was getting before:

lua: t1.lua:7: module 'qtcore' not found:
        no field package.preload['qtcore']
        no file './qtcore.lua'
        no file '/usr/local/share/lua/5.1/qtcore.lua'
        no file '/usr/local/share/lua/5.1/qtcore/init.lua'
        no file '/usr/local/lib/lua/5.1/qtcore.lua'
        no file '/usr/local/lib/lua/5.1/qtcore/init.lua'
        no file './'
        no file '/usr/local/lib/lua/5.1/'
        no file '/usr/local/lib/lua/5.1/'
stack traceback:
        [C]: in function 'require'
        t1.lua:7: in main chunk
        [C]: ?

It should work without any renaming or moving of files:

When the source resides in
and the build folder at the same level as lqt,

then please go into and try these commands:
export LUA_CPATH=$PWD/lib/lib?.so
./bin/lua ../lqt/test/webview.lua