sip-build: There are no bindings that can be built

Belz Ulrich ulbemu at mnet-online.de
Sun May 29 13:37:05 BST 2022


Thanks. Indeed. After fixing some path issues, now hopefully the right 
tools are used.

It still did not work with the installed sip 6.6.1 from PyPI, which 
leads to: sip-build: '13.2' is not a supported ABI version

After installing sip from the repo, finally, 'The project has been 
built.' So far, so good.

Now, the top level directory, however, does not contain a make file, so 
make fails. Running make in the build directory, fails with a linker error:

PS C:\Installationen\PyQt6-6.3.0> cd build
PS C:\Installationen\PyQt6-6.3.0\build> make
cd designer\ && ( if not exist Makefile 
D:\Installationen\Qt\6.3.0\mingw_64\bin\qmake.exe -o Makefile 
C:\Installationen\PyQt6-6.3.0\build\designer\designer.pro ) && 
D:/Installationen/Qt/Tools/mingw1120_64/bin/make -f Makefile
make[1]: Entering directory 'C:/Installationen/PyQt6-6.3.0/build/designer'
D:/Installationen/Qt/Tools/mingw1120_64/bin/make -f Makefile.Release
make[2]: Entering directory 'C:/Installationen/PyQt6-6.3.0/build/designer'
g++ -c -fno-keep-inline-dllexport -O2 -Wall -Wextra -Wextra -fexceptions 
-mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 
-DPYTHON_LIB=\"python3\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DESIGNER_LIB 
-DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB 
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB 
-DQDESIGNER_EXPORT_WIDGETS -I. -I../../../Python310/Include 
-I../../designer -ID:/Installationen/Qt/6.3.0/mingw_64/include 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtDesigner 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtUiPlugin 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtOpenGLWidgets 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtWidgets 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtOpenGL 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtGui 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtXml 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtCore -Irelease 
-I/include -ID:/Installationen/Qt/6.3.0/mingw_64/mkspecs/win32-g++ -o 
release\pluginloader.o ..\..\designer\pluginloader.cpp
g++ -fno-keep-inline-dllexport -O2 -Wall -Wextra -Wextra -dM -E -o 
release\moc_predefs.h 
D:\Installationen\Qt\6.3.0\mingw_64\mkspecs\features\data\dummy.cpp
D:\Installationen\Qt\6.3.0\mingw_64\bin\moc.exe -DUNICODE -D_UNICODE 
-DWIN32 -DMINGW_HAS_SECURE_API=1 -DPYTHON_LIB=\"python3\" -DQT_NO_DEBUG 
-DQT_PLUGIN -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB 
-DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB 
-DQDESIGNER_EXPORT_WIDGETS --include 
C:/Installationen/PyQt6-6.3.0/build/designer/release/moc_predefs.h 
-ID:/Installationen/Qt/6.3.0/mingw_64/mkspecs/win32-g++ 
-IC:/Installationen/PyQt6-6.3.0/build/designer 
-IC:/Installationen/Python310/Include 
-IC:/Installationen/PyQt6-6.3.0/designer 
-ID:/Installationen/Qt/6.3.0/mingw_64/include 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtDesigner 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtUiPlugin 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtOpenGLWidgets 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtWidgets 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtOpenGL 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtGui 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtXml 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtCore 
-ID:/Installationen/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++ 
-ID:/Installationen/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32 
-ID:/Installationen/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/backward 
-ID:/Installationen/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include 
-ID:/Installationen/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include-fixed 
-ID:/Installationen/Qt/Tools/mingw1120_64/x86_64-w64-mingw32/include 
..\..\designer\pluginloader.h -o release\moc_pluginloader.cpp
g++ -c -fno-keep-inline-dllexport -O2 -Wall -Wextra -Wextra -fexceptions 
-mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 
-DPYTHON_LIB=\"python3\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DESIGNER_LIB 
-DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB 
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB 
-DQDESIGNER_EXPORT_WIDGETS -I. -I../../../Python310/Include 
-I../../designer -ID:/Installationen/Qt/6.3.0/mingw_64/include 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtDesigner 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtUiPlugin 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtOpenGLWidgets 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtWidgets 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtOpenGL 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtGui 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtXml 
-ID:/Installationen/Qt/6.3.0/mingw_64/include/QtCore -Irelease 
-I/include -ID:/Installationen/Qt/6.3.0/mingw_64/mkspecs/win32-g++ -o 
release\moc_pluginloader.o release\moc_pluginloader.cpp
g++ -Wl,-s -shared -Wl,-subsystem,windows -mthreads 
-Wl,--out-implib,release\libpyqt6.a -o release\pyqt6.dll 
release/pluginloader.o release/moc_pluginloader.o 
-LC:\Installationen\Python310\libs -lpython3 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6Designer.a 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6OpenGLWidgets.a 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6Widgets.a 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6OpenGL.a 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6Gui.a 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6Xml.a 
D:\Installationen\Qt\6.3.0\mingw_64\lib\libQt6Core.a
D:/Installationen/Qt/Tools/mingw1120_64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
release/pluginloader.o:pluginloader.c:(.text+0x149): undefined reference 
to `__imp_PyUnicode_FromKindAndData'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [Makefile.Release:69: release/pyqt6.dll] Error 1
make[2]: Leaving directory 'C:/Installationen/PyQt6-6.3.0/build/designer'
make[1]: *** [Makefile:45: release] Error 2
make[1]: Leaving directory 'C:/Installationen/PyQt6-6.3.0/build/designer'
make: *** [Makefile:81: sub-designer-make_first-ordered] Error 2
PS C:\Installationen\PyQt6-6.3.0\build>

What is missing?

Best regards,
Uli


Am 27.05.2022 um 23:56 schrieb Florian Bruhin:
> Running with --verbose should tell you more.
>
> Florian
>
> On 27 May 2022 23:28:41 CEST, Belz Ulrich <ulbemu at mnet-online.de> wrote:
>
>     Hello,
>
>     Following the documentation, I am trying to build PyQt6 from source (to enable qml debug):
>
>     PS C:\PyQt6-6.3.0> sip-build --no-make --qml-debug --confirm-license
>     Querying qmake about your Qt installation...
>     This is the GPL version of PyQt 6.3.0 (licensed under the GNU General Public License) for Python 3.10.4 on win32.
>     Found the license file 'pyqt-gpl.sip'.
>     Checking to see if the QtCore bindings can be built...
>     Checking to see if the QtNetwork bindings can be built...
>     Checking to see if the QtGui bindings can be built...
>     Checking to see if the QtQml bindings can be built...
>     Checking to see if the QtWidgets bindings can be built...
>     Checking to see if the QtDBus bindings can be built...
>     The QtDesigner bindings are disabled with a static Qt installation...
>     Checking to see if the QtHelp bindings can be built...
>     ...
>     Checking to see if the QAxContainer bindings can be built...
>     sip-build: There are no bindings that can be built
>     PS C:\PyQt6-6.3.0> make
>     make: *** No targets specified and no makefile found.  Stop.
>     PS C:\PyQt6-6.3.0>
>
>     What's wrong?
>
>     Best regards,
>     Uli
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220529/50398183/attachment.htm>


More information about the PyQt mailing list