View Single Post
Old 11-05-2011, 05:23 PM   #1
fab672000
Junior Member
fab672000 has learned how to read e-booksfab672000 has learned how to read e-booksfab672000 has learned how to read e-booksfab672000 has learned how to read e-booksfab672000 has learned how to read e-booksfab672000 has learned how to read e-booksfab672000 has learned how to read e-booksfab672000 has learned how to read e-books
 
Posts: 9
Karma: 998
Join Date: Nov 2011
Device: kobo
Building Calibre on OSX Lion?

Hi, I read the calibre documentation, has setup a bzr branch of calibre, has set the CALIBRE_DEVELOP_FROM env var to point the source as described in the documentation & checked the env variables are defined. I also installed QT4.7 and checked that my python libs are in the python path (2.6).

I then tried to run python setup.py build (resp. install)
even in sudo modes, all would fail.
I could build separately the c related code libs.

Does the build work in Lion / SL 64 bit mode ?
TIA,
Fab

Below the trace:
==========

*
* Running build
*


####### Building extension speedup #######
Linking speedup


gcc /Users/fab/devl/calibre/calibre/build/objects/speedup/speedup.o -o /Users/fab/devl/calibre/calibre/src/calibre/plugins/speedup.so -Wall -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -bundle -undefined dynamic_lookup


ld: library not found for -lbundle1.o
collect2: ld returned 1 exit status
ld: library not found for -lbundle1.o
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/g_/prj7fpf55zqfsncg1xkl_cj00000gp/T//cc8qHnDD.out (No such file or directory)
Error while executing: gcc /Users/fab/devl/calibre/calibre/build/objects/speedup/speedup.o -o /Users/fab/devl/calibre/calibre/src/calibre/plugins/speedup.so -Wall -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -bundle -undefined dynamic_lookup

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 "/Users/fab/devl/calibre/calibre/setup/__init__.py", line 163, in run_all
self.run_cmd(self, opts)
File "/Users/fab/devl/calibre/calibre/setup/__init__.py", line 159, in run_cmd
cmd.run(opts)
File "/Users/fab/devl/calibre/calibre/setup/extensions.py", line 298, in run
self.build(ext, dest)
File "/Users/fab/devl/calibre/calibre/setup/extensions.py", line 353, in build
self.check_call(cmd)
File "/Users/fab/devl/calibre/calibre/setup/extensions.py", line 373, in check_call
subprocess.check_call(*args, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 504, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gcc', '/Users/fab/devl/calibre/calibre/build/objects/speedup/speedup.o', '-o', '/Users/fab/devl/calibre/calibre/src/calibre/plugins/speedup.so', '-Wall', '-arch', 'i386', '-arch', 'x86_64', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk', '-bundle', '-undefined', 'dynamic_lookup']' returned non-zero exit status 1
[f

Last edited by fab672000; 11-05-2011 at 07:45 PM.
fab672000 is offline   Reply With Quote