![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-505
|
New Developer - Getting Started
I'm interested in looking into a sort of 'Sync' feature where books flagged to 'sync' with the device would be automatically sent to the device on the next connection similar to the way news is.
So I started looking into setting up a Windows development environment but am finding it very slow going. I have the source and followed the sets in the User guide to get the Hello World example working but I'm finding it difficult to figure out where to do things like define a new Sync column in the main interface. This is where a debugging environment would come in very handy. I found this thread https://www.mobileread.com/forums/showthread.php?t=62475 where 'user_none' mentions additional dependancies, so I know that it must be possible for others to setup their environment but is there more detailed instructions to help a new developer get started? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
By a debugging environment you mean running calibre code in a python debugger?
I've never done that with calibre code, even in linux. Python has excellent support for introspection, so I tend to just use print statements ![]() Read up on the pdb module (Python Debugger) you can use that within calibre. |
![]() |
![]() |
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh and if you want to do device syncing the first step is to implement a local metadata cache on the devices to keep track of the books.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I have also successfully used Eclipse as an IDE, with the PyDev extensions to give interactive debugging.
|
![]() |
![]() |
![]() |
#5 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
ssbkt, if you want to tackle this speak up. I was planning on starting this on the weekend. But if you would like to do it be my guest.
|
![]() |
![]() |
![]() |
#6 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-505
|
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-505
|
Quote:
How are the various windows exe's created: calibre, calibredb, etc? |
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,195
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Building calibre from scratch on windows is not for the faint of heart, there's a windowsdevelopment page on the calibre wiki that outlines how to build various dependencies. If you can build them/pinch them from the calibre install folder, you can then compile calibre. The various executables are just thin wrappers (~500 lines of C code to initialize and launch the python interpreter).
|
![]() |
![]() |
![]() |
#9 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Calibre is primarily developed on Linux. As such Kovid has made it very easy to get going on Linux. I don't know about building on Windows but if it's anything like OS X there are some hard coded paths it expects.
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2009
Device: Sony PRS-505
|
Ok, if Linux is easier than I'll build up a VirtualBox image of Ubuntu and work on this.
|
![]() |
![]() |
![]() |
#11 | |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Here is a quick rundown of getting started. Code:
bzr pull lp:calibre python setup.py develop |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to get started . . . | GLL | Calibre | 3 | 04-29-2010 03:36 AM |
Getting Started | Pinecone | Calibre | 2 | 11-02-2009 01:14 AM |
Let's getting started ! ^^ | scaza | Introduce Yourself | 2 | 03-04-2009 12:25 PM |
Can u help me to get started? | jeremygold | Sony Reader | 2 | 01-02-2009 12:27 PM |
PRS-500 Developer needs help getting started | cmumford | Sony Reader Dev Corner | 12 | 12-22-2006 02:28 AM |