Bugs item #3483426, was opened at 2012-02-02 18:51
Message generated for change (Settings changed) made by maynardj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3483426&group_id=16191
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: joyeru (joyeru)
Assigned to: Maynard Johnson (maynardj)
Summary: oprofile v0.9.7 still can't support qt4
Initial Comment:
I run configure as follow:
$ ./configure --enable-gui=qt4 --with-kernel-support --prefix=/opt/oprofile
and then when I run make, it claimed that there was no such executable file /usr/bin/uic-qt43:
/usr/bin/uic-qt43 -o oprof_start.base.h oprof_start.base.ui
/bin/bash: /usr/bin/uic-qt43:
I found there is not qt43, but qt4 instead:
$ whereis qt4
qt4: /usr/lib/qt4 /usr/lib64/qt4 /usr/include/qt4 /usr/share/qt4
I searched and couldn't find any info about qt43, so I considered it be a mistake and and modified configure as follow:
- 18120 UIC=$(pkg-config --variable=uic_location QtCore)3
+ 18120 UIC=$(pkg-config --variable=uic_location QtCore)
However, problem still there:
/usr/bin/uic-qt4 -o oprof_start.base.h oprof_start.base.ui
uic: Error in line 6, column 14 : Unexpected element name
It seemed the .ui file in folder "oprofile-0.9.7/gui/ui" couldn't be compiled to .h file by uic-qt4
What on earth is qt43? How to solve my problem?
Some info of my computer:
$ uname -rv
2.6.35-29-generic #51-Ubuntu SMP Fri Apr 15 17:12:35 UTC 2011
$ pkg-config --modversion QtCore
4.7.0
----------------------------------------------------------------------
Comment By: Maynard Johnson (maynardj)
Date: 2012-08-07 07:45
Message:
Thanks, xypron. Your fix works perfectly, so I commited it and pushed it
upstream.
----------------------------------------------------------------------
Comment By: xypron (xypron)
Date: 2012-07-29 08:14
Message:
In configure.in the following should work on RHEL and Debian/Ubuntu:
UIC=$(dirname $(pkg-config --variable=uic_location QtCore))/uic3
----------------------------------------------------------------------
Comment By: xypron (xypron)
Date: 2012-07-29 08:00
Message:
On Debian Wheezy
$ pkg-config --variable=uic_location QtCore
/usr/bin/uic-qt4
----------------------------------------------------------------------
Comment By: xypron (xypron)
Date: 2012-07-29 07:58
Message:
In Debian Wheezy there is no file /usr/bin/uic-qt43. The file needed is
called /usr/bin/uic3. The following helped me to run the install script:
sudo ln -s /usr/bin/uic3 /usr/bin/uic-qt43
In configure.ac the following line has to be corrected:
UIC=$(pkg-config --variable=uic_location QtCore)3
----------------------------------------------------------------------
Comment By: Maynard Johnson (maynardj)
Date: 2012-07-06 09:21
Message:
Sorry it took so long to address this bug report. On my RHEL 6.2 system,
the configure's "pkg-config --variable=uic_location QtCore" returns
/usr/lib64/qt4/bin/uic, which is a symbolic link to
/usr/lib64/qt4/bin/uic-qt4. By using the name of the symbolic link
(/usr/lib64/qt4/bin/uic) and appending the "3", I get
/usr/lib64/qt4/bin/uic3, which (as I understand it) provides the qt3
support we need, since the oprofile GUI has not been updated to the qt4
model.
So, in short, I can't reproduce your problem. Can you inspect your
qt4-devel package and let me know what flavors of uic* it has? Apparently
on your system, ""pkg-config --variable=uic_location QtCore" returns '
/usr/lib64/qt4/bin/uic-qt4' and on my system returns
/usr/lib64/qt4/bin/uic. So why the difference?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=3483426&group_id=16191
|