« Compiler versions for Maya 2017 | Main | Setting up Maya Hardware 2.0 using MEl/Python »

September 13, 2016

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Christian Akesson

Hi there,

We are trying to build PySide2 for Python 2.7 in Win 10. We managed to compile to a wheel where you would have to have Qt installed on the system. We would like to compile to where Qt does not need to be installed on the system to use PySide2.

Would we follow the same steps outlined above, but instead of using mayapy, we would use the python 2.7 executable?

It's hard to find info on this as it stands right now, so any information on this would be very helpful. There must be many studios, that want to build a PySide2 installer that does not require Qt to be installed.

Thanks for putting solid information out there,
Christian Akesson | Senior Technical Artist | Daybreak Games

Martin Karlsson

I have to say that for someone that is not familiar with compiling Qt the bundled instructions in "howToBuildQtOnWindows_m2017.txt" are severely lacking.

What is the "icu53_1" reference?
What is "your normal options" for configure.exe?
The general tone of the instructions makes me feel like they were written for people who does this stuff on a frequent basis.

I would really appreciate a better set of instructions.

Martin Karlsson

Instructions says "See https://doc-snapshots.qt.io/qt5-5.4/windows-building.html for Qt building notes" but that page is a 404.

Martin Karlsson

Getting below warnings- can someone please help clarify:

C:\qt\qt-adsk-5.6.1\qtbase\src\network\access\qnetworkaccessdebugpipebackend_p.h(0): Note: No relevant classes found. No output generated.
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
C:\qt\qt-adsk-5.6.1\qtbase\src\network\access\qnetworkaccessdebugpipebackend_p.h(0): Note: No relevant classes found. No output generated.
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
cl : Command line warning D9002 : ignoring unknown option '-arch:SSE2'
Checking for ntddmodm... no
Checking for jasper... no
Checking for libmng... no
Checking for libtiff... no
Checking for libwebp... no
Checking for language... no
Checking for socketcan... no
Checking for socketcan_fd... no
Project WARNING: Cannot compile the module with your compiler, missing C++11 language features.

Martin Karlsson

After a full day of tinkering I got a Qt build done; however, when I try to compile PySide2 it seems like the build is bad.

Get errors about missing dll files in the "...qt-build-561\qtbase\bin\..." directory and the below error [note the messed up filepath "C:/qt/qt-build-561/qtbase/C:/qt/qt-adsk-5.6.1/qtbase//mkspecs/win32-msvc2012"]:

[Start error]

CMake Error at C:/qt/qt-build-561/qtbase/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
The imported target "Qt5::Core" references the file

"C:/qt/qt-build-561/qtbase/C:/qt/qt-adsk-5.6.1/qtbase//mkspecs/win32-msvc2012"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"C:/qt/qt-build-561/qtbase/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

but not all the files it references.

[End error]

Chengxi Li

Hi,

I was in training last week. I'll look at this issue this week.

Yours,
Li

Chengxi Li

Hi Christian,

Using python 2.7 should be OK. But we recommend to use Python built with VS2012 to avoid any potential runtime issues. That's the reason why I am using mayapy.

I think you can't build PySide without a QT environment. But once it is built, you can copy the binary outputs to other computers you need.

Yours,
Li

The comments to this entry are closed.

The Authors
Cyrille Fauvel Lanh Hong Cheng Xi Li

SyntaxHighlighter