MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   [Old Thread] build issues (https://www.mobileread.com/forums/showthread.php?t=54843)

troymc 08-27-2009 08:19 PM

[Old Thread] build issues
 
Has anyone else had problems building the current tarball? (0.6.8)

It errors out trying to link against calibre_poppler.so. It's looking for the library in src/calibre/plugins. But the libraries are being dropped down into src/calibre/plugins/calibre/plugins.

If I move the files up into place, & re-issue the build, it completes successfully.


Troy

kovidgoyal 08-27-2009 08:24 PM

Works for me. In fact I just built 0.6.9 :)

troymc 08-27-2009 09:28 PM

hmmm....maybe I need to build 0.6.9?!?!? yes?!

:thumbsup:


Troy

troymc 08-27-2009 09:58 PM

hmm....same issue with 0.6.9 -- I must be doing something silly..

And I must correct myself, it's not linking, it's trying to copy that file somewhere.

I removed everything under /opt/calibre & cut-n-pasted the build instructions from the website. Here's the error message from 'python setup.py build'
Code:

creating build/lib.linux-i686-2.6/calibre/plugins
error: can't copy 'src/calibre/plugins/calibre_poppler.so': doesn't exist or not a regular file

definitely not there:
Code:

/opt/calibre/calibre-0.6.9$ ls -l src/calibre/plugins
total 632
drwxr-xr-x 3 root root  4096 2009-08-27 19:47 calibre
-rwxr-xr-x 1 root root 637477 2009-08-27 19:47 pictureflow.so

but it is way down here:
Code:

/opt/calibre/calibre-0.6.9$ ls -lR src/calibre/plugins
src/calibre/plugins:
total 632
drwxr-xr-x 3 root root  4096 2009-08-27 19:47 calibre
-rwxr-xr-x 1 root root 637477 2009-08-27 19:47 pictureflow.so

src/calibre/plugins/calibre:
total 4
drwxr-xr-x 2 root root 4096 2009-08-27 19:47 plugins

src/calibre/plugins/calibre/plugins:
total 396
-rwxr-xr-x 1 root root 226191 2009-08-27 19:47 calibre_poppler.so
-rwxr-xr-x 1 root root  17980 2009-08-27 19:47 cPalmdoc.so
-rwxr-xr-x 1 root root  31646 2009-08-27 19:47 fontconfig.so
-rwxr-xr-x 1 root root  89222 2009-08-27 19:47 lzx.so
-rwxr-xr-x 1 root root  24481 2009-08-27 19:47 msdes.so

and, of course, if I copy everything from src/calibre/plugins/calibre/plugins up to src/calibre/plugins then run the build again, it works.

Troy

kovidgoyal 08-27-2009 11:00 PM

What are the exact build commands you're using?

troymc 08-28-2009 12:21 AM

I'm literally cut-n-pasting from the website instructions. (except for the first 2 of course)

$ cd /opt/calibre
$ rm -fR *
$ wget -O- http://calibre.kovidgoyal.net/downlo...e-0.6.9.tar.gz | tar xvz
$ cd calibre*
$ python setup.py build && sudo python setup.py install

The 'python setup.py build' command is the one that fails. Then I manually
copy those files into place & re-run that last command line and it completes successfully, and then I run the final 'sudo calibre_postinstall'. (is that last step even needed anymore? it appears to do the same, or similar stuff as the last part of the install command.)

Not sure it matters, but this is on Ubuntu Karmic.


Troy

kovidgoyal 08-28-2009 12:24 AM

Does ti work if you change the last line to

python setup.py build_ext && python setup.py build && sudo python setup.py install

troymc 08-28-2009 01:18 AM

1 Attachment(s)
Nope


Code:

/opt/calibre/calibre-0.6.10$ python setup.py build_ext && python setup.py build && sudo python setup.py install
Setup calibre version: 0.6.10
WARNING: PoDoFo not found on your system. Various PDF related functionality will not work. Use the PODOFO_INC_DIR and PODOFO_LIB_DIR environment variables.
running build_ext
Setup calibre version: 0.6.10
WARNING: PoDoFo not found on your system. Various PDF related functionality will not work. Use the PODOFO_INC_DIR and PODOFO_LIB_DIR environment variables.
running build
running resources
Resources are up to date
running translations
Translations up to date
running gui
Images are up to date
running build_ext
running build_py
error: can't copy 'src/calibre/plugins/calibre_poppler.so': doesn't exist or not a regular file


EDIT: I've attached a txt file showing a complete fresh rebuild.


Troy

kovidgoyal 08-28-2009 01:29 AM

Hmm I'm out of ideas, guess you'll just have to copy it manually :)

troymc 08-28-2009 01:45 AM

That's cool. It hasn't slowed me down any, and if no one else is complaining it's not worth burning cycles on.

I've upgraded 5 systems to 0.6.10 tonite, including my server running 6 calibre-server instances -- everything's running just fine! That's a mix of jaunty, karmic & gentoo.


:thanks:


Troy

midnightmagic 04-12-2011 11:59 PM

Answer appears to be (for Ubuntu 10.04)
 
Quote:

Originally Posted by kovidgoyal (Post 571067)
Hmm I'm out of ideas, guess you'll just have to copy it manually :)

It looks like setup/build_environment.py detects it at *INC/podofo.h instead of *INC/podofo/podofo.h which is where podofo.h and its own include files expect to find itself.

Subsequent to this, calibre/src/calibre/utils/podofo/podofo.cpp must be reset to #include <podofo/podofo.h>. After this, it'll all Just Work. (*INC and *LIB dirs must be of course set to the podofo install directory/include and directory/lib before it will, but after that, it's gold.)

DoctorOhh 04-13-2011 12:24 AM

Welcome to Mobileread. :)

Please do not reopen a thread that is 19 months old. This thread was discussing a version of calibre about 80 versions removed from the current version.

It would be best to open a new thread with your tidbit of wisdom.

midnightmagic 04-15-2011 02:09 AM

Meh. Same issue. 80 versions later; this is the current solution as of the latest stable release.

DoctorOhh 04-15-2011 02:26 AM

Quote:

Originally Posted by midnightmagic (Post 1493509)
Meh. Same issue. 80 versions later; this is the current solution as of the latest stable release.

I'm curious and ignorant at the same time. It looked like your solution was different from the OP, but I'll take your word for it.

What is "the latest stable release?"


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

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.