Hi Gurus
I have a need for qmake-qt4
zypper info qmake-qt4 draws a blank, I’ve been googling and it seems to be auto generated when qmake for both QT3 & QT4 are installed.
locate shows just one instance of qmake, BUT I have both QT3 libs and QT4 libs on the system.
Running qmqke and looking at the top of the makefile:-
#########################################################
Makefile for building: sdr-shell
Generated by qmake (1.07a) (Qt 3.3.8b) on: Wed Nov 10 11:13:46 2010
Project: sdr-shell.pro
Template: app
Command: $(QMAKE) -o Makefile sdr-shell.pro
#########################################################
that would indicate the the qmake I have installed is QT3
I could manually edit the Makefile, as I’ve had to do in the past when getting 32bit apps to compile on 64 bit. I’d prefer not to.
Can someone point me in the direction of its location please.
Thanks
Richard
rb004a0345 wrote:
>
> Hi Gurus
>
> I have a need for qmake-qt4
> zypper info qmake-qt4 draws a blank, I’ve been googling and it seems
> to be auto generated when qmake for both QT3 & QT4 are installed.
>
qmake is in libqt4-devel.
Whenever you search for a command where you do not know in which package it
is you can try the cnf command in a terminal
cnf qmake
shows you the package.
–
openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram
Thanks, but not the answer I needed
cnf is showing the wrong qmake.
Program ‘qmake’ is present in package ‘libqt4-devel’, which is installed on your system.
Absolute path to ‘qmake’ is ‘/usr/bin/qmake’. Please check your $PATH variable to see whether it contains the mentioned path.
If you look at the Makefile header I pasted , it clear that the qmake in usr/bin/qmake is QT3.
#########################################################
Makefile for building: sdr-shell
Generated by qmake (1.07a) (Qt 3.3.8b) on: Wed Nov 10 11:13:46 2010
Project: sdr-shell.pro
Template: app
Command: $(QMAKE) -o Makefile sdr-shell.pro
#########################################################
So where is the QT4 version ?
I’ll try uninstalling libqt4-devel and reinstalling
Done that now there are two qmakes !
/usr/bin/qmake
/usr/lib/qt3/bin/qmake
richard-g8jvm:/home/richard/Hamapps/sdr-shell-v4-93 # /usr/bin/qmake -v
QMake version 2.01a
Using Qt version 4.6.3 in /usr/lib64
richard-g8jvm:/home/richard/Hamapps/sdr-shell-v4-93 # /usr/lib/qt3/bin/qmake -v
Qmake version: 1.07a (Qt 3.3.8b)
Qmake is free software from Trolltech ASA.
That is asking for trouble
I’ll put a sym link for qmake-qt4 pointing at /usr/bin/qmake
Cheers
Richard
rb004a0345 wrote:
>
> If you look at the Makefile header I pasted , it clear that the qmake
> in usr/bin/qmake is QT3.
>
The qmake in /usr/bin should never never be qt3. The packages which install
the qt3 libs and development tools in opensuse in parallel to the qt4
libraries and development tools and place everything qt3 related into
special subdirectories like
/usr/lib/qt3/bin/qmake
and do not even create a symlink to /usr/bin (of course not because that
would not be compatible with the rest of the system which depends by default
on qt4).
So if your /usr/bin/qmake is qt3 you somehow screwed your installation.
Check where your /usr/bin/qmake comes from! It does not come from the
opensuse libqt4-devel (which places qmake in /usr/bin and of course the qt4
version) and it does not come from the opensuse qt3-devel.
–
openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram
rb004a0345 wrote:
>
> Thanks, but not the answer I needed
> cnf is showing the wrong qmake.
>
No,it shows the correct one and you proove that yourself a few lines below.
> I’ll try uninstalling libqt4-devel and reinstalling
>
> Done that now there are two qmakes !
> /usr/bin/qmake
> /usr/lib/qt3/bin/qmake
>
> richard-g8jvm:/home/richard/Hamapps/sdr-shell-v4-93 # /usr/bin/qmake -v
> QMake version 2.01a
> Using Qt version 4.6.3 in /usr/lib64
>
> richard-g8jvm:/home/richard/Hamapps/sdr-shell-v4-93 #
> /usr/lib/qt3/bin/qmake -v
> Qmake version: 1.07a (Qt 3.3.8b)
> Qmake is free software from Trolltech ASA.
>
Now after reinstalling the package it repaired your situation and the result
is correct. (It replaced the wrong qmake which comes from a place only you
can know).
> That is asking for trouble
>
Not at all because the correct version is available via $PATh and the
separate version is of course in a folder by default not visible in the
path.
–
openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram
I use YAST and searched on what rpm provides qmake
the result was qt-creator and codelite, I installed both. Niether say whether it QT3 or QT4
when I used qmake on the software I was compiling it built the Makefile for QT3, I put a sym link in for qmake-qt4 and it built the correct Makefile and compiled without any warnings.
I’ve looked at the code and I can’t see why it should want qmake-qt4 instead of qmake, but it does.
Using zypper se or wp qmake gave nothing
cnf gave libqt4-devel
rpm is saying lib64qt3-devel is not installed, so It didn’t come from there. The system area was formatted on install.
The only qt3 app I have installed is qsstv, I haven’t had to build any apps that need QT3 as most of the Ham apps I use have the binaries available, which means I don’t have to compile as I used when I used Mandriva and Fedora.
So I don’t know where it came from. There must be a broken dependency list on a package I’ve installed.
Cheers
Richard
rb004a0345 wrote:
>
> I use YAST and searched on what rpm provides qmake
> the result was qt-creator and codelite, I installed both. Niether say
> whether it QT3 or QT4
>
My suspect is that one of those is qt3 (I guess codelite after looking at it
but I do not really know which since I do not use them). Of course it is not
good if such a package installs an old executable into the default location.
But I am glad that at the end your qmake works now.
–
openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram
Hi
Rather than symlink (potential to break something else), use the export
command to set the qmake version at compile time. The makefile or
configure should tell you what to use.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.23-0.3-default
up 11 days 21:21, 3 users, load average: 0.01, 0.06, 0.06
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.12
Thanks Martin
Hi Malcolm, I suspect the guy who has made some major changes to the QT3 app to convert to QT4 may deliberately coded to look for qmake-qt4 else it would default to QT3 to build, He’s stating the install file to use qmake-qt4. At least he wasn’t using Ubuntu when he rewrote it,
thanks Both
Richard