Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Introduce Yourself

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2009, 12:34 AM   #1
shivas
Member
shivas began at the beginning.
 
Posts: 10
Karma: 14
Join Date: Dec 2009
Device: none
Post Regarding Calibre source code compiling

Hi every one,

I am new to this forum, i have some assignment to do.
That is i got the calibre source code with me, i have to compile it and
create a EXE file. for this i have installed py2exe, pyqt4, pyqwt, python2.6
visual studio 2008 and also bazar to download the source file.

I tried to compile the source code cmd is "python setup.py py2exe"
but i am getting the error.

Error details:
C:\calibre>python setup.py py2exe
Traceback (most recent call last):
File "setup.py", line 13, in <module>
import setup.commands as commands
File "C:\calibre\setup\commands.py", line 28, in <module>
from setup.translations import POT, GetTranslations, Translations, ISO639
File "C:\calibre\setup\translations.py", line 14, in <module>
from setup.build_environment import pyqt
File "C:\calibre\setup\build_environment.py", line 109, in <module>
popplerqt4_inc_dirs = poppler_inc_dirs + [poppler_inc_dirs[1]+r'\qt4']
IndexError: list index out of range

Please let me know am i doing correctly or not, if the process is correct
then please let me know why i am getting this error.

Thank you
shivas is offline   Reply With Quote
Old 12-23-2009, 12:57 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Compiling calibre from source on windows is hard, you will have to hack the build system specifically the files setup/build_environment.py and setup/extensions.py
kovidgoyal is offline   Reply With Quote
Advert
Old 12-23-2009, 01:23 AM   #3
shivas
Member
shivas began at the beginning.
 
Posts: 10
Karma: 14
Join Date: Dec 2009
Device: none
Post Regarding calibre source code compiling

Thank you very much for the quick reply.

So which is the best environment you suggest to compile without modifiying the source code.

Thank you
shivas is offline   Reply With Quote
Old 12-23-2009, 02:24 AM   #4
shivas
Member
shivas began at the beginning.
 
Posts: 10
Karma: 14
Join Date: Dec 2009
Device: none
Post Does poppler required to compile soruce code

Hi,

Please let me know does poppler required to compile the calibre source code in windows, if so please me know how to install poppler on windows.

would appreciate any help.


Thank you
shivas is offline   Reply With Quote
Old 12-23-2009, 09:52 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,926
Karma: 22669820
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Easiest is in linux.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM
Source Code Reading Jamp Workshop 3 07-16-2009 03:20 PM
Cannot download 2.0.2 and 2.0.1 source code rfog Kindle Developer's Corner 6 05-22-2009 09:34 AM
Source code available AlfonsVH HanLin eBook 3 01-03-2009 02:30 PM
source code?? joblack iRex 1 11-01-2006 12:16 PM


All times are GMT -4. The time now is 06:04 PM.


MobileRead.com is a privately owned, operated and funded community.