How to not compile QtNfc?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

How to not compile QtNfc?

Cody Scott-2
I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32 bit.

I have installed Qt with the msvs2015 component. And I have installed Visual Studio 2015.

In the Developer Command Prompt for VS2015 I created a virtualenv and installed sip.

To install sip I ran

"C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
python configure.py
nmake
nmake install

For PyQt5 I did

python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
nmake

But it failed on QtNfc.dll
So I tried to disable QtNfc with by renaming
C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\QtNfc-disable\
https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html

But now I am getting an error

NMAKE : fatal error U1073: don't know how to make 'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h

So I know that wasn't the correct include folder.

How do you disable QtNfc? or how do I figure out why it won't compile?


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Phil Thompson-5
On 13 Mar 2018, at 9:48 pm, Cody Scott <[hidden email]> wrote:

>
> I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32 bit.
>
> I have installed Qt with the msvs2015 component. And I have installed Visual Studio 2015.
>
> In the Developer Command Prompt for VS2015 I created a virtualenv and installed sip.
>
> To install sip I ran
>
> "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
> python configure.py
> nmake
> nmake install
>
> For PyQt5 I did
>
> python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
> nmake
>
> But it failed on QtNfc.dll
> So I tried to disable QtNfc with by renaming
> C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\QtNfc-disable\
> https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html
>
> But now I am getting an error
>
> NMAKE : fatal error U1073: don't know how to make 'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h
>
> So I know that wasn't the correct include folder.
>
> How do you disable QtNfc? or how do I figure out why it won't compile?

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#cmdoption-configure-py-disable

I've never been able to work out the problem with QtNfc.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Cody Scott-2
Thanks Phil, I was able to build and install PyQt5!


On Tue, Mar 13, 2018 at 5:58 PM, Phil Thompson <[hidden email]> wrote:
On 13 Mar 2018, at 9:48 pm, Cody Scott <[hidden email]> wrote:
>
> I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32 bit.
>
> I have installed Qt with the msvs2015 component. And I have installed Visual Studio 2015.
>
> In the Developer Command Prompt for VS2015 I created a virtualenv and installed sip.
>
> To install sip I ran
>
> "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
> python configure.py
> nmake
> nmake install
>
> For PyQt5 I did
>
> python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
> nmake
>
> But it failed on QtNfc.dll
> So I tried to disable QtNfc with by renaming
> C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\QtNfc-disable\
> https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html
>
> But now I am getting an error
>
> NMAKE : fatal error U1073: don't know how to make 'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h
>
> So I know that wasn't the correct include folder.
>
> How do you disable QtNfc? or how do I figure out why it won't compile?

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#cmdoption-configure-py-disable

I've never been able to work out the problem with QtNfc.

Phil


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Cody Scott-2
Okay I was mistaken because `import PyQt5` worked but `from PyQt5 import QtQml` and others do not work.

ImportError: DLL load failed; The specified module could not be found.

In the venv\Lib\site-packages\PyQt5\ directory there is .pyd files but no .dll files.


On Wed, Mar 14, 2018 at 9:04 AM, Cody Scott <[hidden email]> wrote:
Thanks Phil, I was able to build and install PyQt5!


On Tue, Mar 13, 2018 at 5:58 PM, Phil Thompson <[hidden email]> wrote:
On 13 Mar 2018, at 9:48 pm, Cody Scott <[hidden email]> wrote:
>
> I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32 bit.
>
> I have installed Qt with the msvs2015 component. And I have installed Visual Studio 2015.
>
> In the Developer Command Prompt for VS2015 I created a virtualenv and installed sip.
>
> To install sip I ran
>
> "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
> python configure.py
> nmake
> nmake install
>
> For PyQt5 I did
>
> python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
> nmake
>
> But it failed on QtNfc.dll
> So I tried to disable QtNfc with by renaming
> C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\QtNfc-disable\
> https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html
>
> But now I am getting an error
>
> NMAKE : fatal error U1073: don't know how to make 'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h
>
> So I know that wasn't the correct include folder.
>
> How do you disable QtNfc? or how do I figure out why it won't compile?

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#cmdoption-configure-py-disable

I've never been able to work out the problem with QtNfc.

Phil



_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Phil Thompson-5
.pyd files are DLLs.

Phil

On 14/03/2018 15:00, Cody Scott wrote:

> Okay I was mistaken because `import PyQt5` worked but `from PyQt5
> import
> QtQml` and others do not work.
>
> ImportError: DLL load failed; The specified module could not be found.
>
> In the venv\Lib\site-packages\PyQt5\ directory there is .pyd files but
> no
> .dll files.
>
>
> On Wed, Mar 14, 2018 at 9:04 AM, Cody Scott <[hidden email]> wrote:
>
>> Thanks Phil, I was able to build and install PyQt5!
>>
>>
>> On Tue, Mar 13, 2018 at 5:58 PM, Phil Thompson <
>> [hidden email]> wrote:
>>
>>> On 13 Mar 2018, at 9:48 pm, Cody Scott <[hidden email]> wrote:
>>> >
>>> > I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32
>>> bit.
>>> >
>>> > I have installed Qt with the msvs2015 component. And I have installed
>>> Visual Studio 2015.
>>> >
>>> > In the Developer Command Prompt for VS2015 I created a virtualenv and
>>> installed sip.
>>> >
>>> > To install sip I ran
>>> >
>>> > "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
>>> > python configure.py
>>> > nmake
>>> > nmake install
>>> >
>>> > For PyQt5 I did
>>> >
>>> > python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
>>> > nmake
>>> >
>>> > But it failed on QtNfc.dll
>>> > So I tried to disable QtNfc with by renaming
>>> > C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\
>>> QtNfc-disable\
>>> > https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html
>>> >
>>> > But now I am getting an error
>>> >
>>> > NMAKE : fatal error U1073: don't know how to make
>>> 'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h
>>> >
>>> > So I know that wasn't the correct include folder.
>>> >
>>> > How do you disable QtNfc? or how do I figure out why it won't compile?
>>>
>>> http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#cmd
>>> option-configure-py-disable
>>>
>>> I've never been able to work out the problem with QtNfc.
>>>
>>> Phil
>>
>>
>>

_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Cody Scott-2
Is there supposed to be a Qt\ directory in site-packages\PyQt\ like in the wheels?

PyQt5\Qt\ contains .dll files.

In my site-packages\PyQt5\ there is only a uic\ directory.

I cannot do

from PyQt5 import QtQml or others.

from PyQt5 import Qt does work though.



On Wed, Mar 14, 2018 at 2:56 PM, Phil Thompson <[hidden email]> wrote:
.pyd files are DLLs.

Phil


On 14/03/2018 15:00, Cody Scott wrote:
Okay I was mistaken because `import PyQt5` worked but `from PyQt5 import
QtQml` and others do not work.

ImportError: DLL load failed; The specified module could not be found.

In the venv\Lib\site-packages\PyQt5\ directory there is .pyd files but no
.dll files.


On Wed, Mar 14, 2018 at 9:04 AM, Cody Scott <[hidden email]> wrote:

Thanks Phil, I was able to build and install PyQt5!


On Tue, Mar 13, 2018 at 5:58 PM, Phil Thompson <
[hidden email]> wrote:

On 13 Mar 2018, at 9:48 pm, Cody Scott <[hidden email]> wrote:
>
> I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32
bit.
>
> I have installed Qt with the msvs2015 component. And I have installed
Visual Studio 2015.
>
> In the Developer Command Prompt for VS2015 I created a virtualenv and
installed sip.
>
> To install sip I ran
>
> "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
> python configure.py
> nmake
> nmake install
>
> For PyQt5 I did
>
> python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
> nmake
>
> But it failed on QtNfc.dll
> So I tried to disable QtNfc with by renaming
> C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\
QtNfc-disable\
> https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html
>
> But now I am getting an error
>
> NMAKE : fatal error U1073: don't know how to make
'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h
>
> So I know that wasn't the correct include folder.
>
> How do you disable QtNfc? or how do I figure out why it won't compile?

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#cmd
option-configure-py-disable

I've never been able to work out the problem with QtNfc.

Phil






_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Cody Scott-2
I think it is normal for the .DLL files to not be in site-packages\PyQt5\. Is this correct?

I need to add C:\Qt\5.10.1\msvc105\bin to PATH environment variable for it to work. Should the Qt installer have done this?

> set PATH=%PATH%; C:\Qt\5.10.1\msvc105\bin


On Wed, Mar 14, 2018 at 5:32 PM, Cody Scott <[hidden email]> wrote:
Is there supposed to be a Qt\ directory in site-packages\PyQt\ like in the wheels?

PyQt5\Qt\ contains .dll files.

In my site-packages\PyQt5\ there is only a uic\ directory.

I cannot do

from PyQt5 import QtQml or others.

from PyQt5 import Qt does work though.



On Wed, Mar 14, 2018 at 2:56 PM, Phil Thompson <[hidden email]> wrote:
.pyd files are DLLs.

Phil


On 14/03/2018 15:00, Cody Scott wrote:
Okay I was mistaken because `import PyQt5` worked but `from PyQt5 import
QtQml` and others do not work.

ImportError: DLL load failed; The specified module could not be found.

In the venv\Lib\site-packages\PyQt5\ directory there is .pyd files but no
.dll files.


On Wed, Mar 14, 2018 at 9:04 AM, Cody Scott <[hidden email]> wrote:

Thanks Phil, I was able to build and install PyQt5!


On Tue, Mar 13, 2018 at 5:58 PM, Phil Thompson <
[hidden email]> wrote:

On 13 Mar 2018, at 9:48 pm, Cody Scott <[hidden email]> wrote:
>
> I'm trying to compile the latest PyQt5 for Python3.4 on Windows 7 32
bit.
>
> I have installed Qt with the msvs2015 component. And I have installed
Visual Studio 2015.
>
> In the Developer Command Prompt for VS2015 I created a virtualenv and
installed sip.
>
> To install sip I ran
>
> "C:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
> python configure.py
> nmake
> nmake install
>
> For PyQt5 I did
>
> python configure.py --qmake="C:\Qt\5.10.1\msvc2015\bin\qmake.exe"
> nmake
>
> But it failed on QtNfc.dll
> So I tried to disable QtNfc with by renaming
> C:\Qt\5.10.1\msvc2015\include\QtNfc\ to C:\Qt\5.10.1\msvc2015\include\
QtNfc-disable\
> https://riverbankcomputing.com/pipermail/pyqt/2015-August/036222.html
>
> But now I am getting an error
>
> NMAKE : fatal error U1073: don't know how to make
'C:\Qt\5.10.1\msvc2015\include\QtNfc\qndefmessage.h
>
> So I know that wasn't the correct include folder.
>
> How do you disable QtNfc? or how do I figure out why it won't compile?

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html#cmd
option-configure-py-disable

I've never been able to work out the problem with QtNfc.

Phil







_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Phil Thompson-5
On 15 Mar 2018, at 4:02 pm, Cody Scott <[hidden email]> wrote:
>
> I think it is normal for the .DLL files to not be in site-packages\PyQt5\. Is this correct?

Which DLL files? The PyQt wheels include a Qt installation which is in site-packages\PyQt5\Qt. When you build PyQt5 from source then it uses your existing Qt installation.

> I need to add C:\Qt\5.10.1\msvc105\bin to PATH environment variable for it to work. Should the Qt installer have done this?

IMHO, no.

> > set PATH=%PATH%; C:\Qt\5.10.1\msvc105\bin

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Cody Scott-2
Just to clarify are you surprised that I need to add this to the PATH environment variable?

C:\Qt\5.10.1\msvc105\bin

Can you add a sentence to the building PyQt5 from source page. "If you are on Windows you will need to add the directory of qmake to the PATH environment variable"?


On Sat, Mar 17, 2018 at 10:22 AM, Phil Thompson <[hidden email]> wrote:
On 15 Mar 2018, at 4:02 pm, Cody Scott <[hidden email]> wrote:
>
> I think it is normal for the .DLL files to not be in site-packages\PyQt5\. Is this correct?

Which DLL files? The PyQt wheels include a Qt installation which is in site-packages\PyQt5\Qt. When you build PyQt5 from source then it uses your existing Qt installation.

> I need to add C:\Qt\5.10.1\msvc105\bin to PATH environment variable for it to work. Should the Qt installer have done this?

IMHO, no.

> > set PATH=%PATH%; C:\Qt\5.10.1\msvc105\bin

Phil


_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: How to not compile QtNfc?

Phil Thompson-5
On 19 Mar 2018, at 1:16 pm, Cody Scott <[hidden email]> wrote:
>
> Just to clarify are you surprised that I need to add this to the PATH environment variable?
>
> C:\Qt\5.10.1\msvc105\bin

No.

> Can you add a sentence to the building PyQt5 from source page. "If you are on Windows you will need to add the directory of qmake to the PATH environment variable"?

It's nothing to do with qmake, it's the directory containing the Qt DLLs (which, at the moment anyway, is the same directory).

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt