tag:blogger.com,1999:blog-1254328298726568959.post8508036296928602536..comments2023-10-06T14:30:30.957+03:00Comments on Erkan Özgür Yılmaz: How to Compile PyQt4 for Python 2.6 AMD64 (64 bit) on Windows x64Erkan Özgür Yılmazhttp://www.blogger.com/profile/07789950055679595429noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-1254328298726568959.post-89473800124751761042010-04-02T00:16:38.817+03:002010-04-02T00:16:38.817+03:00and sorry Doug, I've no idea about the problem...and sorry Doug, I've no idea about the problems occurring while compiling the newest versions of Qt, next week maybe...Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-6920443707386530552010-04-02T00:14:41.674+03:002010-04-02T00:14:41.674+03:00sorry guys, especially ryant and john, I missed yo...sorry guys, especially ryant and john, I missed your comments.<br /><br />Ryant, it should be about a missing flag, I don't remember the exact flag, but there was a flag telling the compiler about the target architecture, it should be that, on the other hand the cmd prompt from the express edition should already set these kind of things via environment variables, so I don't have a clear idea about your problem. Try googling the "LNK1112" error...<br /><br />John, I mentioned that in my post, it is because your system couldn't find the Qt dll's, which are placed in the original qt directory ( C:\Qt\4.x.x\qt\bin\etc. just don't remember exactly). You should add the path that contains those dlls to the system path, or you should copy them to somewhere python searches already, like the c:\pythonx.x\lib\site-packages\PyQt4 folder<br /><br />I hope it is not too late to answer your questions, and hope it will be helpful.<br /><br />Next week, if I'm going to have time, I'll give it a try to compile the latest PyQt4 build for the latest Qt.Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-6816799165212139222010-02-25T04:18:37.078+02:002010-02-25T04:18:37.078+02:00Hello Ozgur, thanks for this blog post. I am tryi...Hello Ozgur, thanks for this blog post. I am trying to compile sip for python 2.5. The compile works fine, but I'm still getting DLL errors when im trying to import in python 2.5. I know I am using 64 bit python, and have tried both vs2005 and vs2008 64-but compilers, only to get the same DLL error when importing SIP. Any clue?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-43390809559232822212010-02-21T08:41:01.825+02:002010-02-21T08:41:01.825+02:00I am also attempting to build PyQt for 64bit. I am...I am also attempting to build PyQt for 64bit. I am using Visual Studio 2008 Express however so I downloaded Windows SDK for Windows Server 2008 and .NET Framework 3.5 - Version 6.1<br /><br />This gives me a CMD Shell that says its x64 however when I attempt to nmake sip I get errors.<br /><br />First I run the configure.py which works, next I run nmake which fails:<br /><br />LNK1112: module machine type 'x64' conflicts with target machine type 'X86'<br /><br />Any ideas?Unknownhttps://www.blogger.com/profile/01402184818368205621noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-68831213045730666572010-02-18T18:34:00.397+02:002010-02-18T18:34:00.397+02:00Hello Ozgur, thanks for the tutorial.
I got a quic...Hello Ozgur, thanks for the tutorial.<br />I got a quick question, when trying to do the c:\Python26\python configure.py -w (for the PyQt), i get the following error:<br />"C:\Python26\sip" -k -o -x VendorID -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_4_1 -x Py_v3 -g -a QAxContainer.api -c QAxContainer -b QAxContainer\QAxContainer.sbf -I c:\PyQt-win-commercial-4.7\sip c:\PyQt-win-commercial-4.7/sip/QAxContainer/QAxContainermod.sip<br />sip: QVariantMap is undefined<br />Error: Unable to create the C++ code.<br /><br />Help please :)Doug's Bloghttps://www.blogger.com/profile/15039984918023537199noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-60235240815618685572010-02-18T18:33:42.443+02:002010-02-18T18:33:42.443+02:00This comment has been removed by the author.Doug's Bloghttps://www.blogger.com/profile/15039984918023537199noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-70893260044091104482010-01-09T23:52:01.753+02:002010-01-09T23:52:01.753+02:00Looks like I do have a lot of path problems. What ...Looks like I do have a lot of path problems. What config files are used for the proper paths for everything(SIP, Qt, and PyQt)?<br />Does the PyQt.nsi remap all the paths when I create a binary installer package?<br /><br />Thanks,<br /><br />VUnknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-66339637034793050822010-01-09T12:45:29.119+02:002010-01-09T12:45:29.119+02:00Ok.. sounds good! Yeah, I noticed there was a lot ...Ok.. sounds good! Yeah, I noticed there was a lot of errors. I also got some incorrect paths for the qt dll's. <br /><br />Thanks again!<br /><br />VUnknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-91704191760413411422010-01-09T11:51:47.768+02:002010-01-09T11:51:47.768+02:00yeah you can manually copy them, let me warn you t...yeah you can manually copy them, let me warn you that the nsi script will give you alot of errors, try to edit the script with a text editor that shows line numbers. So you can just delete the lines that give errors (mostly about phonon)Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-28387195270666816232010-01-09T09:48:47.049+02:002010-01-09T09:48:47.049+02:00Hello,
Ok... I finally got it all compiled!
When...Hello,<br /><br />Ok... I finally got it all compiled!<br /><br />When I run the NSIS on PyQt.nsi<br />it stops with this error:<br />File: "C:\Python25\Lib\site-packages\PyQt4\sip.exe" -> no files found.<br /><br />The sip.exe file is located in C:\sip-4.9.3\sipgen. Was this supposed to be installed in \Python25\Lib\site-packages\PyQt4\ or should I manually copy it?<br /><br />Thanks,<br /><br />VUnknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-3629295395511205722010-01-06T23:45:15.123+02:002010-01-06T23:45:15.123+02:00Ah ha! This is interesting!
I will give that a try...Ah ha! This is interesting!<br />I will give that a try!<br /><br />Thanks for your help!<br /><br />VUnknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-70740125513333489082010-01-06T22:49:16.270+02:002010-01-06T22:49:16.270+02:00http://www-01.ibm.com/support/docview.wss?uid=swg2...http://www-01.ibm.com/support/docview.wss?uid=swg21325326<br /><br />apparently you need to re-install your MSVC 2005Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-56384008892639170592010-01-06T22:08:38.098+02:002010-01-06T22:08:38.098+02:00The errors I received are from msvc 2005.
I'm...The errors I received are from msvc 2005. <br />I'm at a loss with what it could be. <br />Below are all the sources I used. <br /><br /><br /><br />Microsoft Visual 2005 x64 Command Prompt<br />Python 2.5.2 64 bit<br /><br />PyQt-win-gpl-4.6.2 compiled with errors<br />sip-4.9.3 - compiled ok<br />Qt 4.6.0 - compiled okUnknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-2888028448047020902010-01-06T21:46:57.249+02:002010-01-06T21:46:57.249+02:00allright, because python 2.6 is compiled with MSVC...allright, because python 2.6 is compiled with MSVC 2008, to have binary compatibility you need to use 2008 for python 2.6 and 2005 for python 2.5... may be this is the cause of your problemsErkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-87749367867115980102010-01-05T23:01:59.460+02:002010-01-05T23:01:59.460+02:00Correction! I'm running it from Visual Studio ...Correction! I'm running it from Visual Studio <b>2005</b> x64 Win64 Command Prompt.Unknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-16441027778389909362010-01-05T23:00:34.357+02:002010-01-05T23:00:34.357+02:00I'm running it from the Visual Studio 2008 x64...I'm running it from the Visual Studio 2008 x64 Win64 Command Prompt.Unknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-86535184120340693522010-01-05T21:42:04.632+02:002010-01-05T21:42:04.632+02:00No, I haven't...
are you running the nmake fr...No, I haven't...<br /><br />are you running the nmake from the standart command prompt or are you using the Visual Studio 2008 x64 Win64 Command Prompt ?Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-17939027997480954042010-01-05T11:35:31.280+02:002010-01-05T11:35:31.280+02:00Thanks Ozgur! I think I'm almost there! :)
I t...Thanks Ozgur! I think I'm almost there! :)<br />I tried to build PyQt and got some new errors. <br /><br />Have you seen this error before?<br /><a href="http://www.python-forum.org/pythonforum/viewtopic.php?f=18&t=16384&p=74887#p74887" rel="nofollow">PyQt errors</a>Unknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-55168382706056683102010-01-05T11:08:16.235+02:002010-01-05T11:08:16.235+02:00congrats :)
just ignore the errors...congrats :)<br />just ignore the errors...Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-24812718916141848392010-01-05T11:04:12.734+02:002010-01-05T11:04:12.734+02:00Hello,
I successfully compiled QT 4.6.0 against p...Hello,<br /><br />I successfully compiled QT 4.6.0 against python 2.5.2. <br />When I ran the nmake install, I kept seeing "Cannot perform a cyclic copy" and Can overwrite over itself messages. Not sure if this is common or not. <br /><br /><a href="http://www.python-forum.org/pythonforum/viewtopic.php?f=18&t=16384&p=74886#p74886" rel="nofollow">Link error 2</a>Unknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-41158564257545976472010-01-05T06:41:59.264+02:002010-01-05T06:41:59.264+02:00In the latest qt version, there are two sets of th...In the latest qt version, there are two sets of those tmp files that need deleting. Not sure the path to the second set off the top of my head, but if you search the qt folder for those tmp file names you should find them.Adamhttps://www.blogger.com/profile/06440570280787543684noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-65491361286528006922010-01-05T06:10:53.364+02:002010-01-05T06:10:53.364+02:00Hello Ozgur,
I deleted the mocinclude.tmp file in...Hello Ozgur,<br /><br />I deleted the mocinclude.tmp file in both directories and got the exact same error. <br />I noticed during the nmake process, it spawend new mocinclude.tmp files in the same directories. <br />I did however find another location with the mocinclude.tmp file. Do think the compiler is sourcing from this directory as well? <br />C:\Qt\4.6.0\qt\src\script\tmp\moc\debug_shared<br /><br />Thanks again for help!Unknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-10813708714422295812010-01-04T22:49:10.706+02:002010-01-04T22:49:10.706+02:00Oh I see. I think I did delete that but the tmp fi...Oh I see. I think I did delete that but the tmp files are still there. <br />I will run it again. Do you have to run the configure step again, or should I reinstall Qt and start from scratch?<br /><br /><br />Thanks,<br /><br />VUnknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-12657541653558510002010-01-04T15:49:42.484+02:002010-01-04T15:49:42.484+02:00I think you skipped one step:
delete the two tmp ...I think you skipped one step:<br /><br />delete the two tmp files: (they were causing problems in the middle of the compile process, very annoying to start again)<br />C:\Qt\4.5.2\qt\src\3rdparty\webkit\WebCore\tmp\moc\{debug,release}_shared/mocinclude.tmp)Erkan Özgür Yılmazhttps://www.blogger.com/profile/07789950055679595429noreply@blogger.comtag:blogger.com,1999:blog-1254328298726568959.post-21250224490634841032010-01-04T04:59:30.633+02:002010-01-04T04:59:30.633+02:00Hello Ozgur,
I provided a link below to the error...Hello Ozgur,<br /><br />I provided a link below to the errors I recieved. Thanks for taking a look!<br /><br />V<br /><br /><br /><a href="http://www.python-forum.org/pythonforum/viewtopic.php?f=18&t=16384" rel="nofollow">Link to errors</a>Unknownhttps://www.blogger.com/profile/11363604893300671234noreply@blogger.com