Thank you sir Sternas for your kind words.
I've managed to build Lazarus SmallIDE with Qt4 using CodeTyphon 2.5.
Before I provide the necessary steps, here is some quick info regarding CT and Chakra/Qt.
Chakra is a 100% KDE dedicated distribution with a PC-BSD/Free-BSD inspired architecture.
Although it started like an ArchLinux fork, is no longer based on it (even if it provides support
for it's tools). The system uses Qt4 exclusively (i.e no gtk2 library dependencies are available)
and it's optimized for it (gtk2 applications like Firefox are available as bundles/packages that
operate on their own appspace, so that the system remains gtk2 free).
After installing the ArchLinux system libraries required for CT, in order to build Lazarus so that
it uses Qt4 from the start, you need to do the following:
1. Download the necessary Qt4 Pascal bindings for your architecture (x86/amd64) from here:
users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
2. Extract the package somewhere and as a root user copy the libQt4Pas* shared objects to /usr/lib
(just make sure you select the correct libraries for your processor architecture, i.e do not put 32-bit libraries
in a 64-bit installation, it won't work). Alternatively, you can download the source from this page
and build the bindings from source (I used the supplied binaries).
Make sure these .so files are
symlinked correctly, for example
/usr/lib/libQt4Pas.so -> /usr/lib/libQt4Pas.so.5.2.5
/usr/lib/libQt4Pas.so.5 -> /usr/lib/libQt4Pas.so.5.2.5
/usr/lib/libQt4Pas.so.5.2 -> /usr/lib/libQt4Pas.so.5.2.5
3. As a root user, issue the following commands
ldconfig
ldconfig -p | grep libQt4Pas*
and if everything is correct, you should see these libraries matched.
4. Go to ScriptsLin/ln_Lazarus32_Build_Small.sh (or ScriptsLin/ln_Lazarus64_Build_Small.sh) and change line 58 from
$vmake clean all PP=$vfpcexedir/$vfpcexec INSTALL_PREFIX=/usr/lib/codetyphon/lazarus/
to
$vmake clean all LCL_PLATFORM=qt PP=$vfpcexedir/$vfpcexec INSTALL_PREFIX=/usr/lib/codetyphon/lazarus/
5. You can now build Lazarus SmallIDE (32 or 64-bit) completely from source using Qt4.
So far building BigIDE fails due to some problems with GtkGlx(?) components, but I will try to investigate more.
Please note that CodeTyphon Center
does not work at all under Chakra, because it was built using Gtk2.
Any ideas on how to recompile it using Qt4 are highly appreciated.