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  ~/lqt.build/lib: qtcore.so  qtgui.so, 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 './qtcore.so'
        no file '/usr/local/lib/lua/5.1/qtcore.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
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
PATH_TO/lqt
and the build folder at the same level as lqt,
PATH_TO/lqt.build

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

Peter