If the user tries to install CodeTyphon using Qt4, the Lazarus IDE behaves exactly like Pascode reports.
This is evident in platforms like Chakra Linux where no GNOME libraries exist and vlclplatform=1.
Compiling CodeTyphon in Arch Linux using Gtk2 does not expose this erroneous behaviour.
Trying to find out what's going on, I did this: removed CodeTyphon completely and Qt4Pas libraries.
Next, I installed Qt4Pas from Arch repositories and installed CodeTyphon again WITHOUT running "Remove and Build ALL" (option 8) from the initial install menu.
Instead, I've entered CodeTyphon Centre, selected "Use Qt4 libraries" on the Settings menu and started "Remove and Build ALL".
Lazarus was built without errors AND it does not expose the erroneous behaviour (i.e works like the Gtk2 version); however, there are some random messages about "Risking corruption" that I suspect the Qt4Pas libraries (from Arch repos).
Since Arch
has moved to Qt5
(this is the default selection for new installations), the CodeTyphon Qt4Pas build script should check the installed Qt version (using qtchooser) and select Qt4 for Qt4Pas compilation. Exporting QT_SELECT=4 should (hopefully) select Qt4 as the toolkit to use.
ln_Typhon1_Build_QT4pas.sh
# =============================================================
# CodeTyphon Studio
# Copyright (c) PilotLogic Software House.
# All rights reserved.
# =============================================================
unzipqt4pas()
{
if [ ! -d $vcodetyphon/qt4pas/ ] ;
then
echo "."
echo "
"
echo " Unzip qt4pas.7z"
echo "
"
echo "."
sudo mkdir $vcodetyphon/qt4pas/
#sudo unzip -o ../allzips/src/qt4pas.7z -d $vcodetyphon/
sudo $v7zipexe x ../allzips/src/qt4pas.7z -o$vcodetyphon/ -y
sudo chmod -R 777 $vcodetyphon/qt4pas/
fi
}
buildqt4pas()
{
if [ ! -f $vcodetyphon/qt4pas/libQt4Pas.so ] ;
then
echo "."
echo "
"
echo " Try to Build QT4pas Libraries"
echo "
"
echo "."
echo "
Qt Info
"
echo "."
cd $vcodetyphon/qt4pas
$vqmake -query
echo "."
echo "
Build QT4pas
"
echo "."
$vqmake
sudo $vmake install
if [ -f $vcodetyphon/qt4pas/libQt4Pas.so ] ;
then
echo "
"
echo "[INFO]: QT4pas Libraries finish Build OK"
echo "."
else
echo "
"
echo "[ERROR]: QT4pas Libraries Don't Build...???"
echo "."
fi
sleep 3
else
echo "."
echo "[INFO] QT4pas Libraries Exists..."
echo "."
fi
}
#========================MAIN===========================
. $PWD/ln_All_Functions.sh
getvalues
export QT_SELECT=4
if [ -f $vcodetyphon/allzips/src/qt4pas.7z ] ;
then
unzipqt4pas
buildqt4pas
fi
ln_Typhon1_Build_QT4pas.sh