Registered Member
|
It's /usr/bin/qmake, and after setting QTDIR, PATH, PKG_CONFIG_PATH and CMAKE_PREFIX_PATH it's /opt/qt46/usr/bin/qmake
NOTE: I made a slight mistake in that Arch Forum thread, since my qt 4.6 root directory is at /opt/qt46/usr (That's a result of a small error I made while installing, and in order to obtain the info you requested I exported QTDIR as it should be, so /opt/qt46/usr) Of course, the compiling process fail to find qt 4.6 even though I set QTDIR as /opt/qt46/usr.
|
Administrator
|
Have you set LD_LIBRARY_PATH? It needs to be set to $QTDIR/lib:$LD_LIBRARY_PATH.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I think I did, but I was not sure, so I redid this:
As you can see, still fails. |
Registered Member
|
Just so You make sure everything is allright:
I believe that's how it should work, but it apparently doesn't. PS.: I also tried that this qt I have might be some sort of 'non-working', but I tried launching a few execs from /opt/qt46/usr/bin, and linguist and qtconfig work just fine. Of course qtconfig says "This program is using qt version 4.6.0". |
Administrator
|
That is very weird. Is there any change if you call QMake by its fully qualified path? ie. /opt/qt46/usr/bin/qmake
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Still doesn't work.
|
Registered Member
|
PS.: I don't see any need to set LD_LIBRARY_PATH like this:
because in normal state, when a normal Konsole is called, LD_LIBARY_PATH is just blank.
I reckon using the colon while setting the environment variable is only needed when you want to append the new value to the previous ones, no? (And not overwrite them) PPS.: How about completely replacing the $PATH (instead of adding it to current /usr/bin and so) and simply symlinking the required binaries (like make, sh) from /usr/bin to /opt/qt46/usr/bin ? |
Registered Member
|
I also tried like this, still fail.
|
Registered Member
|
WOW! IT WORKED! It looks like all the previous times when it failed it was simply because of:
1) Typos 2) Repeating the compile process over and over again in the same Terminal session, which caused things like:
Ok, so step by step what I did:
I did have parts like "/usr/include/QtNetwork -I/usr/include/QtGui" in the compiling output, and I just thought it failed once again, but I decided to let it compile anyway to see the "About Qt" dialog in Arora after it compiled. To my astonishment, after I ran it with "./arora" and clicked the "About Qt" dialog, it said "This program uses Qt version 4.6.0" Success! UPDATE I've no idea what's going on, I must be delusional... I rebooted my PC, did
UPDATE 2 Looks like the reporting of Arora whether it uses 4.6.0 or 4.5.3 depends on the environment variables. The second I set all the variables to /opt/qt46/usr in Konsole and launched Arora, it told me it's 4.6.0. Now I don't understand any of this. So is it 4.5.3 ot 4.6.0? |
Administrator
|
Qt has something called binary compatibility, which means that Qt 4.2 applications will still run with Qt 4.6 libraries. By exporting LD_LIBRARY_PATH you are telling the application loader ( ld.so ) to look there first then in the paths specified to find the needed libraries for Arora to function.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
So, you mean it is only using qt 4.6, and wasn't compiled with 4.6? I didn't know it made a difference.
|
Administrator
|
That is certainly what it seems is happening. Although without seeing the output of the compiler it isn't possible to tell.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
As you can see, in my previous post I said:
So looks like still wasn't compiled using 4.6.0 I honestly have no idea what is happening. If You don't have any as well, I think I'll simply wait for Februrary (until KDE 4.4 w/qt 4.6 comes) |
Administrator
|
It doesn't make much of a difference if a different version was used for compiling anyway, the important part is the version it is currently running with.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]