03-14-2009, 04:13 AM | #1 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Calibre Windows Development
I'm trying to set up a development environment for Calibre in Windows XP. I'm currently stuck on step 7 (Qt).
The link on the wiki sent me to page requiring a username and password. When I checked the download section, all the Windows related files were .exe and I have no idea which one to install now... Help please? Thanks! |
03-14-2009, 05:05 AM | #2 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
It appears that trolltech have changed the layout of their web site. You need the source package - I have updated the link to point to the ZIP file that needs downloading.
This is now for version 4.5 of Qt, and the last time I tried it was with v4.4, so I do not know if their are any changes needed to the instructions as a consequence. |
Advert | |
|
03-14-2009, 03:32 PM | #3 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
there are various issues with Qt 4.5 (notably with the ebook-viewer, but the main calibre GUI should work fine)
|
03-14-2009, 05:40 PM | #4 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Okay. Thanks for the heads up.
Just needed it for testing the server.py portion anyway. |
03-14-2009, 10:25 PM | #5 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If all you want to do is play with a single module, you dont need the full development environment, just use the following command
Code:
calibre-debug --update-module calibre.library.server,server.py |
Advert | |
|
03-15-2009, 02:42 AM | #6 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Thanks for the tip! I'm definitely going this route.
It's my second try (from scratch) on setting up a development environment and so far, still no luck. On both tries, it complained "pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing" but a check of the directories showed QtXML4.dll, etc exist. Finally tried using a binary of PyQt4 and that seemed to install fine so I edited the PyQtconfig.py to point to the directories I'm using. When I tried to setup Calibre, though, got the error "cannot import name msvc9compiler". Oh well... It's really cool the debug option will let you change modules on the fly. Thanks again, kovid! |
03-15-2009, 04:05 AM | #7 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Part of the reason one tends to need to build Qt from source is that Calibre now assumes any C components are built using Visual C++ 2008 (which uses msvc10). Many of the binary installs will not make this assumption.
I built myself a Windows development environment some months ago, and quite a few issues came up which resulted in updates to the wiki article. I did it using VMWare to avoid polluting my normal production PC with lots of development tools. Over the next few days I will try setting up a Windows development environment from scratch again and update the instructions with anything that comes up. |
03-15-2009, 04:16 AM | #8 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
itimpi!
|
07-12-2009, 11:04 PM | #9 |
Zealot
Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
I was having the same problem, with the error message "pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing" coming up when I tried to build PyQt, even though QtXml.dll existed. I fixed it by adding -e QtXml to the "python configure.py..." line for PyQt.
|
07-12-2009, 11:09 PM | #10 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre itself doesn't require the XML module, which is why it's missing from the instructions
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestions for Calibre development | scottklarr | Calibre | 4 | 06-22-2010 12:03 PM |
Calibre development | macellan | Calibre | 3 | 05-21-2010 06:36 PM |
JE100/JE200 Windows CE Emulator (for development) | rfog | Alternative Devices | 1 | 03-09-2010 03:21 PM |
calibre VMWare development environment | kovidgoyal | Calibre | 30 | 12-30-2009 12:43 PM |
calibre Portable 0.6.23 Development Test 1 | Dopedangel | Calibre | 5 | 11-30-2009 10:29 AM |