Thanks for you help, Mauro. I am making incremental progress :)
I did this:
> export QT_INCLUDE=/usr/include
When I did this:
the cpptoxml process ran at about 80% of CPU for 5 minutes before I killed it.
I guess this is because
> You have to check that /usr/include/QtCore exists and is a directory.
I DON'T see this directory: /usr/include/QtCore
>Else you should find it and change /usr/include to the proper directory.
Do you mean I should add an empty directory called QtCore in /usr/include
and then run ./cpptoxml/cpptoxml from ~/lqt.build/lib?
I just want to be sure before I do this, since you are so kind as to be holding my
hand through this process :) Can you confirm that I should do it?
> If the "make" command finished then you already have your bindings
> built. Check in lqt.build/lib/ . if you see things like "libqtcore.so"
> then you are done.
Yes, it did finish, and I see
liblua.so libqtnetwork.so libqtsvg.so
libqtcore.so libqtopengl.so libqtwebkit.so
libqtgui.so libqtscript.so libqtxml.so
> For a quick test you can rename libqtcore.so -> qtcore.so and
> libqtgui.so -> qtgui.so . Then from the lib/ directory try to run the
> examples shipped with the source.
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'
[C]: in function 'require'
t1.lua:7: in main chunk
> Just move it to a place where lua can find it.
I tried before moving them to /usr/local/share/lua/5.1
without taking the 'lib' prefix off the filenames, though.
At the moment, that directory only contains a subdirectory for 'luarocks'...
Does that look like a sensible place to put them?
Thanks again - hopefully this exchange might be useful to someone else...
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!