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!
Created attachment 339630 [details] environment
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.
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.
*** This bug has been marked as a duplicate of bug 437214 ***