[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: sip-build: There are no bindings that can be built
From:       Belz Ulrich <ulbemu () mnet-online ! de>
Date:       2022-05-29 12:37:05
Message-ID: 08dfc148-7939-c0e7-d364-4b55005b78a6 () mnet-online ! de
[Download RAW message or body]

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@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
> 


[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Thanks. Indeed. After fixing some path issues, now hopefully the
    right tools are used. <br>
    <br>
    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<br>
    <br>
    After installing sip from the repo, finally, 'The project has been
    built.' So far, so good.<br>
    <br>
    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:<br>
    <br>
    PS C:\Installationen\PyQt6-6.3.0&gt; cd build<br>
    PS C:\Installationen\PyQt6-6.3.0\build&gt; make<br>
    cd designer\ &amp;&amp; ( 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 )
    &amp;&amp; D:/Installationen/Qt/Tools/mingw1120_64/bin/make -f
    Makefile<br>
    make[1]: Entering directory
    'C:/Installationen/PyQt6-6.3.0/build/designer'<br>
    D:/Installationen/Qt/Tools/mingw1120_64/bin/make -f Makefile.Release<br>
    make[2]: Entering directory
    'C:/Installationen/PyQt6-6.3.0/build/designer'<br>
    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<br>
    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<br>
    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<br>
    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<br>
    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<br>
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'<br>
    collect2.exe: error: ld returned 1 exit status<br>
    make[2]: *** [Makefile.Release:69: release/pyqt6.dll] Error 1<br>
    make[2]: Leaving directory
    'C:/Installationen/PyQt6-6.3.0/build/designer'<br>
    make[1]: *** [Makefile:45: release] Error 2<br>
    make[1]: Leaving directory
    'C:/Installationen/PyQt6-6.3.0/build/designer'<br>
    make: *** [Makefile:81: sub-designer-make_first-ordered] Error 2<br>
    PS C:\Installationen\PyQt6-6.3.0\build&gt;<br>
    <br>
    What is missing?<br>
    <br>
    Best regards,<br>
    Uli<br>
     <br>
    <br>
    <div class="moz-cite-prefix">Am 27.05.2022 um 23:56 schrieb Florian
      Bruhin:<br>
    </div>
    <blockquote type="cite"
      cite="mid:98E41B10-DABC-4349-9F9B-0A5805673657@the-compiler.org">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Running with --verbose should tell you more.<br>
      <br>
      Florian <br>
      <br>
      <div class="gmail_quote">On 27 May 2022 23:28:41 CEST, Belz Ulrich
        <a class="moz-txt-link-rfc2396E"
          href="mailto:ulbemu@mnet-online.de">&lt;ulbemu@mnet-online.de&gt;</a>
        wrote:
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <pre dir="auto" class="k9mail">Hello,

Following the documentation, I am trying to build PyQt6 from source (to enable qml \
debug):

PS C:\PyQt6-6.3.0&gt; 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&gt; make
make: *** No targets specified and no makefile found.  Stop.
PS C:\PyQt6-6.3.0&gt;

What's wrong?

Best regards,
Uli
</pre>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic