09-11-2009, 10:33 AM | #1 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
Offer to assist with Snow Leopard
Hey, I'm brand new to the eBook scene, my first day with a PRS-600 and I'm already banging my head against the wall because of all the problems Snow Leopard is causing with eBook Library and Calibre.
The good news is that I'm a developer with 20+ years of experience and although I don't know Python, I'm fairly comfortable with Macs. Is it possible for me to get the source and take a look at the problems Calibre is having? Superficially it seems like the problem is with the GUI rather than the underlying Calibre tools - maybe I can help? |
09-11-2009, 10:40 AM | #2 |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
If you go to:
http://calibre.kovidgoyal.net/wiki/Development it tells you what you need to do to set up an development envionment and get the source Of course it is possible the OSX instructions are no longer quite correct for Snow Leopard but they should provide a good starting point. |
Advert | |
|
09-11-2009, 10:45 AM | #3 |
Connoisseur
Posts: 54
Karma: 54
Join Date: Dec 2007
Device: Cybook 3
|
I suspect that, if you force Qt to compile in 32-bit, things will run a lot smoother. One of the things that changed in Snow Leopard is that the default compiles are 64-bit. Adding -m32 to the compilation and link options fixed all the issues I was having with building our Qt based apps.
|
09-11-2009, 10:59 AM | #4 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure, I'll be happy to have help, since I dont have a machine capable of running Snow Leopard its impossible for me to debug this. The first step is to compile all the various dependencies. I've attached the build scripts I use along with a .profile to setup needed environment variables. These build (almost) all the required calibre dependencies.
After you're done with that ask and I'll help you get calibre running from source. |
09-11-2009, 11:00 AM | #5 | |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
Advert | |
|
09-11-2009, 12:58 PM | #6 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
okay - I'll try to take a look over the weekend.
|
09-12-2009, 02:53 PM | #7 |
Wizard
Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
|
*keeps fingers crossed*
|
09-12-2009, 08:03 PM | #8 |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
this makes me happy.
|
09-13-2009, 05:12 PM | #9 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
Status update:
The problem isn't with Calibre, it is with a 3rd party graphic library that Calibre uses (which Kovid already knew). Unfortunately, the company that created the library has pulled the source code off their website, and the newest binary versions produce the message "Warning: Support for this operating system is preliminary" when you try to use it with Snow Leopard. I've sent messages to the company that produces the library - both via email and on their forums. Hopefully I'll get some feedback soon. |
09-14-2009, 06:27 AM | #10 |
Wizzard
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
Is the issue with either Qt or PyQT, as there appear to be recent snapshots of both (Qt 4.6.0-tp1 & PyQt 4.6-snapshot-20090912).
Which versions are you trying & are you building as 32bit or 64bit? (While I've been developing for a while, lately it's been just Java! It's been a while since I used Unix/gcc & I'm new to Macs, so trying to get up to speed! As such, some of the questions may not make sense together!) |
09-14-2009, 08:04 AM | #11 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
PyQT won't build in snow leopard because the aforementioned #warnings and because of link errors that are because the current binary of QT is 32 bit but Python in Snow Leopard is 64 bit.
As I mentioned above, I haven't tried to rebuild QT itself because TrollTech has pulled the source for the Mac version - but I just found it, at ftp://ftp.qt.nokia.com/qt/source/ I have work today, and class tonight, but I'll try to get it built soon. Last edited by mwheinz; 09-14-2009 at 08:13 AM. |
09-14-2009, 11:22 AM | #12 |
Wizzard
Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
|
09-14-2009, 11:31 AM | #13 | |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
Quote:
The only real fear is the constant repetition of the warning that QT isn't really ready for Snow Leopard. The next step is to resolve all the additional dependencies that aren't mentioned on the Mac development page. It looks like Kovid uses fink to manage extra software, I use MacPorts, but sof far it hasn't been a problem. We'll see. Last edited by mwheinz; 09-14-2009 at 11:35 AM. |
|
09-14-2009, 12:53 PM | #14 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I actually don't use either fink or macports. I have my own custom build scripts, which I attached to an earlier post.
|
09-14-2009, 01:28 PM | #15 |
award-winning bozo
Posts: 258
Karma: 172703
Join Date: Sep 2009
Location: Philadelphia
Device: Kobo Libra 2
|
I assumed you were using fink in addition to the custom scripts because of the way you use /sw as your root directory for software development - I thought that was a fink thing.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
0.6.36 crashes in Snow Leopard | WarumIch | Calibre | 19 | 01-27-2010 03:33 AM |
Snow Leopard + Calibre 0.6 = CRASH! :( | sea_los | Calibre | 217 | 10-31-2009 05:13 AM |
Snow Leopard problem? | bobnelsonfr | Calibre | 4 | 09-21-2009 02:21 PM |
Snow Leopard Reports In | fbrII | Calibre | 5 | 08-31-2009 11:00 AM |