lua-users home
lua-l archive

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


2009/3/6 thal 144 <thal144@hotmail.com>:
> Now when I enter
> ~/lqt.build$  ./cpptoxml/cpptoxml -C cpptoxml/parser/rpp/pp-qt-configuration
> ./src/qtgui.cpp > src/qtgui.xml
>
> I get the response:
> Generator requires Qt include dir as option -Q or QT_INCLUDE to be set

export QT_INCLUDE=/usr/include
./cpptoxml/cpptoxml

should work. You have to check that /usr/include/QtCore exists and is
a directory. Else you should find it and change /usr/include to the
proper directory.

> As far as cmake is concerned, I hadn't heard of it until recently, and I
> installed cmake-gui at the same time,
> and ran it on the "out of source directory" lqt.build before reading your
> instruction to do it as
>
> $ cmake ../lqt
> $ make

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. Just move it to a place where lua can find it.
Check the Lua manual for how "require" works

http://www.lua.org/manual/5.1/manual.html#pdf-require

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.

> Sorry about that...

why? :) we should make the instructions clearer...

mauro