Puggan Se
Puggan Se

Reputation: 5846

build a qt 4.6 from a qt 4.8

I have a project in qt-creator.
that computer have Qt: 4.8.2

one of the computers i want to run the application on have Qt: 4.6.2

I can see that qt-creator have an option under the project for QtVersions, but i only got one option there "Qt 4.8.1 (System)"

Id like to have Qt 4.6.x as an option there too, how do i add/install that?

Target computer:

kde4-config --version
Qt: 4.6.2
KDE Development Platform: 4.4.2 (KDE 4.4.2)
kde4-config: 1.0

uname -a
Linux fw-01 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux

Build computer:

kde4-config --version
Qt: 4.8.2
KDE Development Platform: 4.8.5 (4.8.5)
kde4-config: 1.0

uname -a
Linux rito 3.3.8-gentoo #3 SMP Thu Sep 13 10:11:22 CEST 2012 i686 AMD Athlon(tm) II X2 245 Processor AuthenticAMD GNU/Linux

Upvotes: 0

Views: 970

Answers (3)

Thadeux
Thadeux

Reputation: 144

In Qt Creator, try tools -> options -> Qt Versions (or Build/run, then qt versions, or some other abomination depending on what qt creator version you have).

Should see a list of Qt versions it knows about. Click add to reference your 4.6 qmake manually. That should get creator to pick it up.

Upvotes: -1

Puggan Se
Puggan Se

Reputation: 5846

My workaround,

  • installing kubuntu 10.04 in a vitrualbox
  • copy the project to the virtualbox
  • compile it using qt-creator inside virtualbox

The binary made in the virtualbox works fine in both 4.6 and 4.8 envirement

Upvotes: 1

cmannett85
cmannett85

Reputation: 22346

As the SDK doesn't support the old versions anymore, you will have to compile the libraries from source. The archive FTP site has the version you want.

Though I should point out that as long as you are linking dynamically and your code base doesn't use features post-v4.6.2 - then it will work as expected. If you are, then compiling using v4.6.2 headers isn't going to change anything - you will still have to upgrade the other computer or remove the newer Qt features from your application.

Upvotes: 1

Related Questions