[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: success compiling lqt on Kubuntu-7.04 Feisty Fawn with Qt-4.4.3
- From: Leo Razoumov <slonik.az@...>
- Date: Mon, 19 Jan 2009 18:48:52 -0500 (EST)
Herewith I report a succesfull build of lqt master branch
version (b480550f85f6186f16b447102f2b9755d035c89e)
under Kubuntu-7.04 Feisty Fawn with gcc-4.1.2, Qt-4.4.3 and
cmake-2.6.2.
I hope similar process should work for Kubuntu-8.04 Gutsy.
Here are the gory details:
(1) Kubuntu-7.04 comes with very old cmake. To build lqt one has to
install cmake version 2.6 or later. Compiling/installing
cmake-2.6.2 was easy.
(2) Kubuntu-7.04 comes with Qt-4.2.3. After two days of trying to
compile lqt I gave up on Qt-4.2.3 and compiled/installed the
latest Qt-4.4.3. IMPORTANT: do *NOT* install new Qt into
system-wide directories to prevent potential Qt library versioning
conflicts. I built and installed new Qt into /pkg/Qt-4.4.3
telling it to ./configure script explicitly
Qt-4.4.3.build> ./configure -prefix /pkg/Qt-4.4.3
(3) To setup correct environment for Qt-4.4.3 I created a simple
launcher script "qt44.run" given below
----8<---- file: qt44.run ----8<----
#!/bin/sh
export PATH="/pkg/Qt-4.4.3/bin:$PATH"
export LD_LIBRARY_PATH="/pkg/Qt-4.4.3/lib:$LD_LIBRARY_PATH"
exec "$@"
---->8-------->8----
(4) Now read lqt/BUILD file and do the following:
lqt.build> qt44.run cmake ../lqt
lqt.build> LUA_INIT='' qt44.run make VERBOSE=1
Setting LUA_INIT='' is needed only in very few cases such as mine when
my pre-existing Lua installation did some heavy lifting at
initialization. In any case it would not hurt.
VERBOSE=1 tell make to spit out comilation commands as they are
exuted. The defualt verbosity level coming from cmake generated
Makefiles is very limited.
(5) Test the lqt build
lqt.build> LUA_INIT='' LUA_CPATH=$PWD/lib/lib?.so qt44.run ./bin/lua ../lqt/test/webview.lua
Again, most likely you do not need LUA_INIT='' at all.
(6) Enjoy lqt and move the bindings *.so where Lua can find them
--Leo--