Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt on Linux - version conflict?

Tags:

c++

linux

qt

Trying to move a Qt 4.6.3 project from Windows to Debian Linux (Etch). I've installed Qt by downloading the latest version, then running configure, then make install as root. Yet when I run qmake_qt4 on my project's pri file, here's what I get:

uic: File generated with too old version of Qt Designer

Running uic -v returns 4.2.1. How come? Wasn't make install supposed to put the latest Qt on the system?

like image 384
Seva Alekseyev Avatar asked Jan 29 '26 10:01

Seva Alekseyev


1 Answers

By default, Qt installs to /usr/local/Trolltech/Qt-4.6.3 and doesn't add it's bin folder to your PATH variable. Also, it's just named qmake.

Either call /usr/local/Trolltech/Qt-4.6.3/bin/qmake using the complete path or add the /usr/local/Trolltech/Qt-4.6.3/bin/ path to your PATH variable and ensure that it is listed there before any other path that may have a qmake. Best thing to do is to uninstall the the debian qt version if you don't need it elsewhere.

like image 185
bjoern.bauer Avatar answered Jan 31 '26 22:01

bjoern.bauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!