Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2010, 01:24 PM   #1
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Error Building on Ubuntu from latest Bazaar Source

Hi Kovid,

Haven't updated for a while. When I tried to (after installing some missing python stuff) I get:

Quote:
me@ronin-server:~/calibre$ python setup.py install

*
* Running build
*


####### Building extension chmlib #######
gcc -O3 -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -pthread -I/usr/include/python2.6 -DSWIG_COBJECT_TYPES -c /home/me/calibre/src/calibre/utils/chm/swig_chm.c -o /home/me/calibre/build/objects/chmlib/swig_chm.o
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:681:21: error: chm_lib.h: No such file or directory
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:706: warning: 'struct chmUnitInfo' declared inside parameter list
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:706: warning: its scope is only this definition or declaration, which is probably not what you want
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:706: warning: 'struct chmFile' declared inside parameter list
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_start_set':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:769: error: 'LONGUINT64' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:769: error: (Each undeclared identifier is reported only once
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:769: error: for each function it appears in.)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:769: error: expected ';' before 'arg2'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:775: error: 'arg2' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:775: error: expected ';' before 'PyLong_AsUnsignedLongLong'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:777: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_start_get':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:789: error: 'LONGUINT64' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:789: error: expected ';' before 'result'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:794: error: 'result' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:794: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_length_set':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:806: error: 'LONGUINT64' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:806: error: expected ';' before 'arg2'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:812: error: 'arg2' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:812: error: expected ';' before 'PyLong_AsUnsignedLongLong'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:814: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_length_get':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:826: error: 'LONGUINT64' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:826: error: expected ';' before 'result'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:831: error: 'result' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:831: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_space_set':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:848: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_space_get':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:865: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_path_set':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:883: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:884: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chmUnitInfo_path_get':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:901: error: dereferencing pointer to incomplete type
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_new_chmUnitInfo':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:915: error: invalid application of 'sizeof' to incomplete type 'struct chmUnitInfo'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_open':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:953: warning: implicit declaration of function 'chm_open'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_close':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:969: warning: implicit declaration of function 'chm_close'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_set_param':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:987: warning: implicit declaration of function 'chm_set_param'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_resolve_object':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1002: error: invalid application of 'sizeof' to incomplete type 'struct chmUnitInfo'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1010: warning: implicit declaration of function 'chm_resolve_object'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_retrieve_object':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1043: error: 'LONGUINT64' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1043: error: expected ';' before 'arg4'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1044: error: 'LONGINT64' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1044: error: expected ';' before 'arg5'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1045: error: expected ';' before 'result'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1056: error: 'arg4' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1056: error: expected ';' before 'PyLong_AsUnsignedLongLong'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1058: error: 'arg5' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1058: error: expected ';' before 'PyLong_AsLongLong'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1069: error: 'result' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1069: error: expected ';' before 'chm_retrieve_object'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1074: warning: pointer targets in passing argument 1 of 'PyString_FromStringAndSize' differ in signedness
/usr/include/python2.6/stringobject.h:62: note: expected 'const char *' but argument is of type 'unsigned char *'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_enumerate':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1092: error: 'CHM_ENUMERATOR' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1092: error: expected ';' before 'arg3'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1103: error: 'arg3' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1108: warning: implicit declaration of function 'chm_enumerate'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c: In function '_wrap_chm_enumerate_dir':
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1122: error: 'CHM_ENUMERATOR' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1122: error: expected ';' before 'arg4'
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1133: error: 'arg4' undeclared (first use in this function)
/home/me/calibre/src/calibre/utils/chm/swig_chm.c:1138: warning: implicit declaration of function 'chm_enumerate_dir'
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/home/me/calibre/setup/__init__.py", line 159, in run_all
self.run_cmd(self, opts)
File "/home/me/calibre/setup/__init__.py", line 152, in run_cmd
self.run_cmd(scmd, opts)
File "/home/me/calibre/setup/__init__.py", line 155, in run_cmd
cmd.run(opts)
File "/home/me/calibre/setup/extensions.py", line 264, in run
self.build(ext, dest)
File "/home/me/calibre/setup/extensions.py", line 305, in build
subprocess.check_call(cmd)
File "/usr/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '-O3', '-Wall', '-DNDEBUG', '-fno-strict-aliasing', '-pipe', '-fPIC', '-pthread', '-I/usr/include/python2.6', '-DSWIG_COBJECT_TYPES', '-c', '/home/me/calibre/src/calibre/utils/chm/swig_chm.c', '-o', '/home/me/calibre/build/objects/chmlib/swig_chm.o']' returned non-zero exit status 1
me@ronin-server:~/calibre$
RoninTech is offline   Reply With Quote
Old 03-07-2010, 01:38 PM   #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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you need chmlib
kovidgoyal is offline   Reply With Quote
Advert
Old 03-07-2010, 02:01 PM   #3
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Thanks K. For anyone else that builds on Ubuntu from src you'll need to do a:

sudo apt-get install libchm-dev

That will give you the necessary chm header files.
RoninTech is offline   Reply With Quote
Old 04-09-2010, 05:46 PM   #4
migmruiz
Junior Member
migmruiz began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2010
Device: Sony PRS-600
it would be nice if the installer given us the proper message as it does many other times

[]'s
migmruiz is offline   Reply With Quote
Old 04-09-2010, 06:08 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Hey Kovid
Your fix for a normal Ubuntu update worked perfectly
theducks is online now   Reply With Quote
Advert
Old 04-09-2010, 10:01 PM   #6
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Glad to hear it
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing latest Calibre in Ubuntu 10.04 maitrayei Calibre 4 09-10-2010 02:48 AM
Building Calibre from source al35 Calibre 3 03-24-2010 02:22 PM
latest version for Ubuntu Lago Calibre 7 01-15-2010 01:54 PM
Problem building openinkpot on Ubuntu 9.04 nseger OpenInkpot 3 08-23-2009 04:51 AM
Issues building Madshelf on Ubuntu migge OpenInkpot 1 08-22-2009 07:59 PM


All times are GMT -4. The time now is 06:38 AM.


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