[PyQt] pyqtdeploy: library not found for -lQtCore

David Beck dbeck at ualberta.ca
Fri Feb 5 14:53:00 GMT 2016


I found this in the mailing list archives from last May. I’m having exactly the same problem on a Mac (OS 10.11) with a Homebrew installation of Qt/PyQt and Python 3.5.1. I infer that there’s a solution to the problem implicit here (?). Would someone be able to spell it out for a newbie?



>> [PyQt] pyqtdeploy: library not found for -lQtCore
>> I assume that -lQtCore is looking for a static library though? Shouldn’t it just link with the frameworks using -F?

>> > On May 2, 2015, at 1:50 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:

>> > > On 02/05/2015 8:20 am, Patrick Stinson wrote:

>> >> I can see the command line OK but I’m not aware of any static libs in >> the homebrew build of qt. I assume this means that pyqtdeploy is going >> to pack everything, even the qt code into one exe inside the bundle? > > No, the exe will try to dynamically load external Qt libraries.
>> > >> And is it even possible to build static qt libraries along with the
>> >> dynamic lib versions that will load from python source code in >> development?

>> > > Phil

>> > >>> On May 1, 2015, at 10:59 PM, Ilya Kulakov <kulakov.ilya at gmail.com> wrote: 

>> >>> Try `VERBOSE=1 make` and check whether all dirs are passed to invocations of clang. 

>> >>> Best Regards

>> >>> Ilya Kulakov

>> >>>> On 2 мая 2015 г., at 5:09, Patrick Stinson <patrickkidd at gmail.com> wrote:

>> >>>> I get this when running “make” in the project generated by pyqtdeploy.
>> >>>> —————————————————————————————
>> >>>> ld: library not found for -lQtCore
>> >>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> >>>> make: *** [PKMidiCron.app/Contents/MacOS/PKMidiCron] Error
>> >>>> —————————————————————————————
>> >>>> python3/qt/pyqt5 are installed using homebrew, and my piquet does not use static qt libs. Let me know what other info I can provide.
>> >>>> Thanks!

More information about the PyQt mailing list