[PyQt] PyQtDeploy Sysroot issues

Barry Scott barry at barrys-emacs.org
Tue Apr 10 20:39:33 BST 2018


> On 10 Apr 2018, at 14:41, Kevin Kelly <kevin.kelly at sydaptic.com> wrote:
> 
>>> Maybe you forgot to setup the environment?
> 
>> So, the same as your original problem, not using the correct command shell.
> 
> You would think so but I was using the MSVC command shell from the Visual Studio 2015.
> 
>>> Qt5WinExtras.lib(Qt5WinExtras.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
> 
>> As it says, you are trying to compile a 32-bit executable using 64-bit libraries. Again, are you using the correct command shell?
> 
> I hear what you're saying but I am using the "Developer Command Prompt for VS 2017" which I thought should work.  In VS2017 there are also some Native x86 and x64 command shells that I will try.

For what it is worth:

You can call the a BAT file to setup the ENV for you.

This is what I use for Python 3.5 with VC 2015 as an example.

set VC_VER=14.0
if %BUILD_ARCH% == Win32 call "C:\Program Files (x86)\Microsoft Visual Studio %VC_VER%\VC\vcvarsall.bat"
if %BUILD_ARCH% == Win64 call "C:\Program Files (x86)\Microsoft Visual Studio %VC_VER%\VC\bin\amd64\vcvars64.bat"

Not sure what the VC_VER is for VC 2017. I'm sure you can work that out.

Barry



> 
> Kevin 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list