lua-users home
lua-l archive

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

Thanks for you help, Mauro.  I am making incremental progress :)

I did this:
> export QT_INCLUDE=/usr/include

When I did this:
> ./cpptoxml/cpptoxml
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 ~/

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 . if you see things like ""
> then you are done.
Yes, it did finish, and I see
all there.

> For a quick test you can rename -> and
> -> . 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  ~/, 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]: ?

> 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!