lua-users home
lua-l archive

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


Thanks for the fast reply!

I found the  cpptoxml executable in ~l/lqt.build/bin, and copied it to the lqt.build/cpptoxml directory.

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

How do I do this?  My understanding of environment variables is... poor.

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

Sorry about that...

Thanks, Mauro!

> Date: Fri, 6 Mar 2009 11:39:19 +0100
> Subject: Re: Trying to build lqt on Kubuntu 8.04 Hardy
> From: mauro.iazzi@gmail.com
> To: lua@bazar2.conectiva.com.br
>
> 2009/3/6 thal 144 <thal144@hotmail.com>:
> >
> > Hello, I am trying to build the most recent version of lqt from the git
> > repository on Kubuntu 8.04 Hardy.
> >
> > I have cmake 2.6.2, and Qt-4.4.0, and haven't had any problems with the
> > BUILD instructions up to this point,
> > so I haven't tried to use the script posted by Leo Razoumov on 19 Jan 2009.
> >
> > This works OK:
> >>~/lqt.build/cpptoxml$ make
> > [100%] Built target cpptoxml
> >>~/lqt.build/cpptoxml$ cd ..
> >
> >         I don't understand this next instruction:
> >
> >         "Checkouts from KDE svn needs to build cpptoxml seperately
> >         svn.kde.org/home/kde/trunk/kdesupport/cpptoxml"
> >
> >         I am using KDE, but got lqt from the git repository - do I need to
> > download something else?
>
> no, you already had it.
>
> > This works OK:
> > == Create a cpp file including the module ==
> >
> >>~/lqt.build$ mkdir ./src
> >>~/lqt.build$ echo '#include <QtGui>' > ./src/qtgui.cpp
> >
> > and now the problem:
> >
> > == Create the XML description of the file ==
> >
> >>~/lqt.build$ ./cpptoxml/cpptoxml -C cpptoxml/parser/rpp/pp-qt-configuration
> >> ./src/qtgui.cpp > src/qtgui.xml
> > bash: ./cpptoxml/cpptoxml: No such file or directory
> > <------------------------ PROBLEM
> >
> >
> >
> > I don't understand what is going on at this point (to put it mildly!)
> >
> > In ~/lqt.build   I have:
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:43 bin
> > -rw-r--r--  1 neil neil 33851 2009-03-03 14:26 CMakeCache.txt
> > drwxr-xr-x 29 neil neil  4096 2009-03-06 01:11 CMakeFiles
> > -rw-r--r--  1 neil neil  1810 2009-03-03 14:28 cmake_install.cmake
> > drwxr-xr-x  3 neil neil  4096 2009-03-03 14:28 cpptoxml
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:50 lib
> > drwxr-xr-x  3 neil neil  4096 2009-03-03 14:28 lua
> > -rw-r--r--  1 neil neil 64830 2009-03-03 14:28 Makefile
> > drwxr-xr-x  2 neil neil 20480 2009-03-03 14:43 qtcore_src
> > drwxr-xr-x  2 neil neil 36864 2009-03-03 14:45 qtgui_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:47 qtnetwork_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:48 qtopengl_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:48 qtscript_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:49 qtsvg_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:50 qtwebkit_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-03 14:50 qtxml_src
> > drwxr-xr-x  2 neil neil  4096 2009-03-06 01:13 src
> >
> > In  ~/lqt.build/cpptoxml  there  is:
> > drwxr-xr-x 3 neil neil  4096 2009-03-03 14:28 CMakeFiles
> > -rw-r--r-- 1 neil neil  1147 2009-03-03 14:28 cmake_install.cmake
> > -rw-r--r-- 1 neil neil 24769 2009-03-03 14:28 Makefile
> >
> > In ~/lqt.build/cpptoxml/CMakeFiles  there  is:
> > -rw-r--r-- 1 neil neil 1144 2009-03-03 14:28 CMakeDirectoryInformation.cmake
> > drwxr-xr-x 3 neil neil 4096 2009-03-03 14:43 cpptoxml.dir
> > -rw-r--r-- 1 neil neil    3 2009-03-03 14:28 progress.make
> >
> > In ~/lqt.build/cpptoxml/CMakeFiles/cpptoxml.dir  there is:
> > -rw-r--r-- 1 neil neil  49577 2009-03-03 14:28 build.make
> > -rw-r--r-- 1 neil neil   1254 2009-03-03 14:28 cmake_clean.cmake
> > -rw-r--r-- 1 neil neil  29836 2009-03-03 14:43 CXX.includecache
> > -rw-r--r-- 1 neil neil   3284 2009-03-03 14:28 DependInfo.cmake
> > -rw-r--r-- 1 neil neil  44051 2009-03-03 14:43 depend.internal
> > -rw-r--r-- 1 neil neil 105147 2009-03-03 14:43 depend.make
> > -rw-r--r-- 1 neil neil    769 2009-03-03 14:28 flags.make
> > -rw-r--r-- 1 neil neil   1119 2009-03-03 14:28 link.txt
> > -rw-r--r-- 1 neil neil 244528 2009-03-03 14:43 main.cpp.o
> > drwxr-xr-x 3 neil neil   4096 2009-03-03 14:43 parser
> > -rw-r--r-- 1 neil neil    445 2009-03-03 14:28 progress.make
> >
> > In ~/lqt.build/cpptoxml/CMakeFiles/cpptoxml.dir/parser  there is:
> > -rw-r--r-- 1 neil neil   2088 2009-03-03 14:43 ast.cpp.o
> > -rw-r--r-- 1 neil neil 169340 2009-03-03 14:43 binder.cpp.o
> > -rw-r--r-- 1 neil neil  30284 2009-03-03 14:43 class_compiler.cpp.o
> > -rw-r--r-- 1 neil neil 316480 2009-03-03 14:43 codemodel.cpp.o
> > -rw-r--r-- 1 neil neil  31684 2009-03-03 14:43 codemodel_finder.cpp.o
> > -rw-r--r-- 1 neil neil  19840 2009-03-03 14:43 compiler_utils.cpp.o
> > -rw-r--r-- 1 neil neil  41628 2009-03-03 14:43 control.cpp.o
> > -rw-r--r-- 1 neil neil  47892 2009-03-03 14:43 declarator_compiler.cpp.o
> > -rw-r--r-- 1 neil neil  34360 2009-03-03 14:43 default_visitor.cpp.o
> > -rw-r--r-- 1 neil neil  21908 2009-03-03 14:43 dumptree.cpp.o
> > -rw-r--r-- 1 neil neil  53452 2009-03-03 14:43 lexer.cpp.o
> > -rw-r--r-- 1 neil neil    646 2009-03-03 14:43 list.cpp.o
> > -rw-r--r-- 1 neil neil  42908 2009-03-03 14:43 name_compiler.cpp.o
> > -rw-r--r-- 1 neil neil 150368 2009-03-03 14:43 parser.cpp.o
> > drwxr-xr-x 2 neil neil   4096 2009-03-03 14:43 rpp
> > -rw-r--r-- 1 neil neil    653 2009-03-03 14:43 smallobject.cpp.o
> > -rw-r--r-- 1 neil neil   3588 2009-03-03 14:43 tokens.cpp.o
> > -rw-r--r-- 1 neil neil  37732 2009-03-03 14:43 type_compiler.cpp.o
> > -rw-r--r-- 1 neil neil  23556 2009-03-03 14:43 visitor.cpp.o
> >
> > In ~/lqt.build/cpptoxml/CMakeFiles/cpptoxml.dir/parser/rpp  there is:
> > -rw-r--r-- 1 neil neil 253284 2009-03-03 14:43 preprocessor.cpp.o
> >
> > Sorry if this is too much information...
>
> It seems everything works but I don't see the cpptoxml executable
> anywhere. My guess would be in the source directory (
> lqt/cpptoxml/cpptoxml ). you could simply copy it to
> lqt.build/cpptoxml/cpptoxml.
>
> Notice that these instructions are only needed if you do not use
> cmake. if you used cmake like this
>
> $ cmake ../lqt
> $ make
>
> then you have already built everything and don't need to do anything
> else. This is the preferred way to build lqt and if it did not work it
> would be useful to know what was the problem. I'll try to clarify all
> these things in the BUILD instructions.
>
> mauro


check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. More than messages