Seite 1 von 1

Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Sonntag 7. Oktober 2012, 16:05
von oleg
Hello all,

I've a trouble with installation on Ubuntu 12.10

####################################################
# Installing the THELI GUI
####################################################

uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
uic: File generated with too old version of Qt Designer (3.3)
/usr/bin/uic-qt4 theliform.ui -o .ui/ui_theliform.h
uic: File generated with too old version of Qt Designer (3.3)
File 'theliform.ui' is not valid
make: *** [.ui/ui_theliform.h] Помилка 1



###################################################################
#
# Something went wrong!
# No 'theli' executable could be found in /home/oleg/gui-2.5.3 .
# Check the output above for errors.
#
###################################################################
#
#
oleg@oleg:~/gui-2.5.3$

Re: Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Sonntag 7. Oktober 2012, 18:57
von moos
Hi Oleg,
qt4 seems to be installed and theli is developed in qt3. theli setup requires qt3. I don't know if you can remove your qt4 but you should try to.
If not, you must be sure to let theli setup scripts call uic in older version.

Re: Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Montag 8. Oktober 2012, 00:25
von mischa
moos hat geschrieben:Hi Oleg,
qt4 seems to be installed and theli is developed in qt3. theli setup requires qt3. I don't know if you can remove your qt4 but you should try to.
If not, you must be sure to let theli setup scripts call uic in older version.


simple. redirect the links for 'uic' and 'qmake' in /usr/bin to their qt3 versions.
of course that requires that qt3-dev is installed, but i assume that is the case.

mischa

Re: Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Sonntag 28. Oktober 2012, 15:34
von woho
Hi Oleg and Mischa,

I had the same problem. Since I'm using that computer for Qt4 development also, I left /usr/bin/qmake as is, but replaced the qmake call in Theli's gui/install.sh by an explicit qmake-qt3:
Code: Alles auswählen
cd gui-2.6.0
sed -i -e "s/qmake/qmake-qt3/g" install.sh
./install.sh

I don't know if that's distro-specific, but on Kubuntu 12.04 Qt3 and Qt4 tools do coexist quite nicely:
Code: Alles auswählen
woho@kristall:~$ ll /usr/bin/qmake*
lrwxrwxrwx 1 root root      23 Jul 25 14:53 /usr/bin/qmake -> /etc/alternatives/qmake*
-rwxr-xr-x 1 root root 1897392 Dec  3  2011 /usr/bin/qmake-qt3*
-rwxr-xr-x 1 root root 3477000 Jul 15 06:17 /usr/bin/qmake-qt4*

Mischa, could you include the change to install.sh in the next Theli Gui release? Or are there other environments that would break with that change?

Thanks,
Wolfgang

Re: Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Sonntag 28. Oktober 2012, 15:40
von mischa
woho hat geschrieben:Mischa, could you include the change to install.sh in the next Theli Gui release? Or are there other environments that would break with that change?


sure. i can test for the presence of qmake-qt3 and use it if it is available.

mischa

Re: Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Sonntag 28. Oktober 2012, 16:09
von woho
Cool, thanks :)

Re: Trouble with installation on Ubuntu 12.10

BeitragVerfasst: Donnerstag 3. Januar 2013, 15:30
von Stefan
Hi, wollte mich hier zu Wort melden und die Lösung so wie die Installation für mich funktionier hat auch für andere zur Verfügung stellen.
Im Prinzip steht hier im Thread schon einiges, aber nochmal zusammenfassend::

libqt3 wird mit 12.10 nicht ausgeliefert, also muss man sich selbst behelfen. Dazu einfach unter "Software Sources" (einfach suchen, oder im deutschen das Äquvalent dazu) eine zusätzliche Quelle eintragen mit der Zeile:

deb http://de.archive.ubuntu.com/ubuntu precise main

danach sollte das qt3 Paket gefunden werden da dieses mit Precise noch ausgeliefert wurde. Die Zeile

sudo apt-get install gfortran csh g++ libqt3-mt-dev gawk gettext wget

aus der Installationsanleitung sollte damit keine Probleme machen. Nun muss man aber noch qt3 auswählen falls man schon qt4 installier hat. Man überprüft das mit

qmake -v
(man muss vielleicht erst qmake installieren mit sudo apt-get install qmake)

Falls man nicht v3.x.x hat einfach

sudo update-altneratives --config qmake

und man wählt sich die 3er Version aus. Danach sollte alles einwandfrei kompilieren. :)

lg
Stefan