Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458630 - emerge dev-python/PyQt4 fails with "Failed to determine the layout of your Qt installation"
Summary: emerge dev-python/PyQt4 fails with "Failed to determine the layout of your Qt...
Status: RESOLVED DUPLICATE of bug 437214
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-21 20:01 UTC by *
Modified: 2013-02-26 21:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.27 KB, text/plain)
2013-02-21 20:01 UTC, *
Details
environment (environment,196.46 KB, text/plain)
2013-02-21 20:03 UTC, *
Details

Note You need to log in before you can comment on or make changes to this bug.
Description * 2013-02-21 20:01:49 UTC
Created attachment 339628 [details]
build.log

As described, the emerge of dev-python/PyQt4 fails with:
Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

I'd really like to get PyQt4 working- the main reason I installed Gentoo Prefix.  The dependencies installed successfully, just not PyQt4:

Calculating dependencies  ... done!
[ebuild  N    *] dev-python/sip-4.14.2:0/9::gentoo  USE="-debug -doc" 729 kB
[ebuild  N     ] x11-libs/qt-core-4.8.4-r4:4::gentoo  USE="aqua exceptions glib ssl -c++0x -debug -iconv -icu -pch -qt3support" 231,048 kB
[ebuild  N     ] x11-libs/qt-script-4.8.4:4::gentoo  USE="aqua exceptions -c++0x -debug -iconv (-jit) -pch" 0 kB
[ebuild  N    *] dev-python/PyQt4-4.9.4-r1::gentoo  USE="-X -assistant -dbus -debug -declarative -doc -examples -kde -multimedia -opengl -phonon -sql -svg -webkit -xmlpatterns" 9,572 kB

Thanks for any help!
Comment 1 * 2013-02-21 20:03:42 UTC
Created attachment 339630 [details]
environment
Comment 2 * 2013-02-25 05:14:17 UTC
I got a little farther by debugging the configure.py. It was looking for a qtdirs which didn't exist:
(Pdb) print exe_file
'qtdirs.app/Contents/MacOS/qtdirs'

I edited the case for darwin so it just looks for qtdirs. Then tarred and gzipped the distfile and created an overlay. But the install still fails at the last step when linking:

x86_64-apple-darwin12-g++ -Wl,-dead_strip_dylibs -bundle -undefined dynamic_look
up -o QtCore.bundle <bunch of .o files> -F/Volumes/Backup/Gentoo/var/tmp/portage/dev-python/PyQt4-4.9.6-r2/work/PyQt-x11-gpl-4.9.6-python3_3/qpy/QtCore -L/Volumes/Backup/Gentoo/var/tmp/portage/dev-python/PyQt4-4.9.6-r2/work/PyQt-x11-gpl-4.9.6-python3_3/qpy/QtCore -F/opt/gentoo/usr/lib/qt4 -L/opt/gentoo/usr/lib/qt4 -lqpycore -lQtCore
ld: library not found for -lQtCore
collect2: ld returned 1 exit status
make[1]: *** [QtCore.bundle] Error 1

And I'm stuck there. Spent all day on this :(

I get the same error if I explicitly provide the path to the QtCore:

... -l/opt/gentoo/usr/lib/qt4/QtCore.framework/Versions/4/QtCore
ld: library not found for -l/opt/gentoo/usr/lib/qt4/QtCore.framework/Versions/4/QtCore
collect2: ld returned 1 exit status
make: *** [QtCore.bundle] Error 1

If I leave out the -lQtCore it links, but I'm not sure how to modify the code to do that, and I'm not sure the resulting bundle would be useable.
Comment 3 * 2013-02-25 07:09:14 UTC
A little more progress. I might be totally mistaken, but it seems it should be using -framework QtCore instead of -lQtCore. Also there is a redundant -F for qpycore and a redundant -L for QtCore. Maybe the problem lies with sip.
Comment 4 Fabian Groffen gentoo-dev 2013-02-26 21:31:45 UTC

*** This bug has been marked as a duplicate of bug 437214 ***