FS#34217 - [cmake] cmake-gui freezes when upon configure click

Attached to Project: Arch Linux
Opened by Danny George (dangets) - Friday, 08 March 2013, 14:09 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 17 May 2013, 19:00 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
cmake-gui freezes when I click the configure button for the second time.
On the terminal it's printing many error messages (possibly related to qt upgrade?)

Cannot create accessible interface for object: QHeaderView(0x2a9a890)
Cannot create accessible interface for object: QCMakeCacheView(0x2a543b0, name = "CacheValues")
Cannot create accessible interface for object: QCMakeCacheView(0x2a543b0, name = "CacheValues")
Cannot create accessible interface for object: QCMakeCacheView(0x2a543b0, name = "CacheValues")
Cannot create accessible interface for object: QComboBoxListView(0x2a6b1d0)
Cannot create accessible interface for object: QComboBoxListView(0x2a6b1d0)

I have to kill the process manually.
I've tried this with two separate build directories with same issue

I am able to use ccmake successfully.

Additional info:
cmake 2.8.10.2-5
qt4 4.8.4-13
qt5-base 5.0.1-6
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 17 May 2013, 19:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  cmake 2.8.11-1
Comment by Pablo Lluch (pelluch) - Friday, 08 March 2013, 23:54 GMT
I get the same errors under the same configuration. After attempting to force cmake to use qt4 (setting the --qt-qmake=/usr/bin/qmake-qt4 flag in PKGBUILD), the same error occurs. The only way it worked for me was by

1. Removing qt5
2. Installing cmake, forcing it to use qt4 and changing the dependency
3. Reinstalling 5

I did not try the same by reinstalling qt4 because too many packages had it as a dependency, but this does suggest a confusion when using multiples versions of qt, even when only one qmake is specified for the build.
Comment by Andrea Scarpino (BaSh) - Saturday, 09 March 2013, 18:10 GMT
  • Field changed: Category (Packages: Extra → Upstream Bugs)
  • Field changed: Severity (Low → Medium)
Comment by Igor (igvalor) - Wednesday, 20 March 2013, 11:08 GMT
Solved! Managed to build cmake from ABS against qt5. In addition to the above patch proposed here by BaSh you also need <see attachment>
Comment by Bart Janssens (bart_janssens) - Thursday, 21 March 2013, 19:45 GMT
Not sure why the second patch is needed, it builds fine here without it?
Comment by Igor (igvalor) - Friday, 22 March 2013, 08:38 GMT
Well, first if you don't patch the cmake source with qt5-2.patch, the build process will complaint that it can't find QWidget, QApplication, QEvent, etc.
And of course you have to add qt5-2.patch and its md5sum into PKGBUILD, otherwise you're unable to build cmake from ABS.
I also tried to add something like -I/usr/include/qt5/QtCore et al to CFLAGS and CXXFLAGS in build() in the PKGBUILD and without applying qt5-2.patch tried to build cmake - it didn't work.
So here I posted what really worked for me. I successfully built cmake-gui that does its job as it must (thanks to the first's patch authors!). Hope it will help others.

Loading...