RL has been intruding on nerdly fun a lot. But today I had a little time and think I have pyqtdeploy pretty close to success. Maybe.
In the last post I whinged (Great old British word; "whinging" is like whining but more pathetic.) that "now I get to figure out how to clone a mercurial repository, sigh," and that was stupid. I just had to go to the repository and actually look at it, and there was a "zip" link and down came the distribution with its setup.py and all. Easy. So I have the latest pyqtdeploy and apply it to what I think is a correct Cobro.pdy file and tell it to "Build" and "QMake" and "Make".
The first bit, where it "freezes" each Python module needed by the app, goes quickly. The QMake step seems to work. Then it starts on the Make. The first four commands, compiling four pyqtdeploy modules (pyqtdeploy_main, pyqtdeploy_start, pdytools_module, qrc_pyqtdeploy) run fine.
Next up is the command that I think will put it all together and assemble the MacOS app bundle. It fails. In trying to see why, I copied it into BBEdit and changed all space-dash into newline-tab-dash. Here it is.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -stdlib=libc++ -mmacosx-version-min=10.7 -Wl,-rpath,/Developer/5.4/clang_64/lib -o Cobro.app/Contents/MacOS/Cobro pyqtdeploy_main.o pyqtdeploy_start.o pdytools_module.o qrc_pyqtdeploy.o -F/Developer/5.4/clang_64/lib -lsqlite3 -lbz2 -L/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5 -lQt -lQtCore -lQtGui -lQtNetwork -lQtWidgets -lQtPrintSupport -lQtWebEngineWidgets -lQtSvg -lQtTest -lreadline -llibz -llzma -lssl -ltermcap -L/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages -lsip -L/Library/Frameworks/Python.framework/Versions/3.4 -lPython -lcrypto -framework SystemConfiguration -framework CoreFoundation -framework QtWebEngineWidgets -framework QtWebEngine -framework QtQuick -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework QtQml -framework QtNetwork -framework QtWidgets -framework QtPrintSupport -framework QtSvg -framework QtTest -framework Security -framework ApplicationServices -framework OpenGL -framework AGL /Users/dcortesi/Desktop/scratch/deploy is now the current directory make failed. ld: library not found for -lQt
I have no idea what it wants. The QMake file (Cobro.pro) contains the line
LIBS += -L/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5 -lQt -lQtCore -lQtGui -lQtNetwork -lQtWidgets -lQtPrintSupport -lQtWebEngineWidgets -lQtSvg -lQtTest
I don't speak Make, let alone QMake, but that sure looks as if it's trying to say, "for Qt, look in this path" which is correct, that's where there is a Qt.so file. So I don't know. But if this step can be made to succeed, I think I'll have an app. That's exciting.
No comments:
Post a Comment