Note that there are some explanatory texts on larger screens.

plurals
  1. POpip install PySide fails QtCore Framework check (OS X)
    primarykey
    data
    text
    <h2>The error</h2> <p>When I run <code>pip install PySide</code> – whether in a virtual environment or not – build fails with the following error:</p> <pre><code>... [lots of build info, including a few warnings but no errors, for shiboken] Linking CXX executable shiboken ld: framework not found QtCore clang: error: linker command failed with exit code 1 (use -v to see invocation) </code></pre> <p>Seeing as I have QtCore installed and the framework present (see below), I'm not sure why that should be.</p> <h2>Setup info</h2> <h3>Software versions</h3> <ul> <li>OS X 10.8.2</li> <li>Qt 4.8.4 from the developer distributed <a href="http://qt-project.org/downloads" rel="nofollow noreferrer">binaries</a></li> <li>Python 3.3 installed and working normally</li> <li>XCode 4.6</li> <li>Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.2.1</li> <li>Virtual environment generating using <code>pyvenv</code> (with and without <code>--no-site-packages</code>)</li> </ul> <h3>Other configurations attempted</h3> <ul> <li>Python 2.7 installed and working normally</li> <li>Virtual environment generated using <code>mkvirtualenv</code> (with and without <code>--no-site-packages</code>) <ul> <li><strong>virtualenv</strong> 1.8.4</li> <li><strong>mkvirtualenv</strong> 3.6</li> </ul></li> </ul> <h3>System configuration</h3> <p>I've confirmed that QtCore is in fact installed correctly: <code>ls /Library/Frameworks</code> shows a number of Frameworks, including <code>QtCore.Framework</code>.</p> <p>My path currently includes both <code>/Library/Frameworks/QtCore.framework</code> and <code>/Library/Frameworks/QtCore.Framework/Versions/4</code> – the former of which has a symbolic link to the component in the latter location. I've even tried it with <code>/Library/Frameworks</code>, though for obvious reasons I didn't expect that to help and it did not.</p> <h2>Other notes</h2> <p>I've tried the same thing with <code>easy_install</code> and by doing a pull from the Git repository and building manually using <code>setup.py</code>. As one would expect, they all return the same results.</p> <h3>Things I've already read</h3> <ul> <li><a href="https://pypi.python.org/pypi/PySide#installing-pyside-from-source-on-a-unix-system-ubuntu-12-04-lts" rel="nofollow noreferrer">PyPi Installation walkthrough</a></li> <li><a href="https://stackoverflow.com/questions/10065085/link-error-qtcore-framework-versions-4-qtcore-for-architecture-x86-64">Link error: QtCore.framework/Versions/4/QtCore for architecture x86_64 (Stack Overflow)</a> – but it seems the linker is already asking for the framework, based on the error message I'm receiving.</li> <li><a href="https://stackoverflow.com/questions/1024704/mac-os-x-trying-to-link-ld-against-a-framework">Mac OS X: trying to link (ld) against a framework (Stack Overflow)</a> – general info on linking against Frameworks; again, I seem to have this covered.</li> <li><a href="http://www.cmake.org/pipermail/cmake/2012-November/052688.html" rel="nofollow noreferrer">OSX deployment target confusion for 2.8.10 (CMake Mailing list)</a> – looks like a very similar error, but I don't have direct control of the <code>-isysroot</code> flag using <code>pip</code> (or <code>easy_install</code> or even <code>python setup.py</code>) for one and for another, installation structure seems to have changed substantially between OS X 10.6 and 10.8. For example, <code>/Developer</code> no longer has the <code>SDKs</code> directory in it at all.</li> <li><a href="http://public.kitware.com/Bug/bug_revision_view_page.php?rev_id=958" rel="nofollow noreferrer">CMake bug report 0013765</a> – this one looks <em>exactly</em> the same, but appears to have been patched, so I'm not sure why it would still be causing me a problem.</li> </ul> <h3>Preferences</h3> <p>I'm not using a package manager like Homebrew or MacPorts at this time, and I'd prefer not to, either, as I need to get as close as possible to a platform-agnostic installation procedure for this (we're looking at doing cross-platform development; I'll ultimately be targeting Windows applications primarily, but need to see if it's workable on my Mac development machine outside a VM).</p> <p>It needs to be able to work with a Python 3-style virtual environment (<code>pyvenv</code>) setup, as that's our preferred means of isolating our particular requirements.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload