Spreads development environment

Johannes Baiter's Spreads and SpreadPi are the latest control systems and postprocessors for DIY scanning. http://spreads.readthedocs.org

Moderator: peterZ

Post Reply
gareth
Posts: 11
Joined: 18 Jul 2014, 07:56
Number of books owned: 0
Country: UK

Spreads development environment

Post by gareth »

Hi there,

I'm starting to set up a development environment based on some IRC conversations with jbaiter.

I've documented what is working so far on this branch here:

https://github.com/gareth8118/spreads/b ... lopers.rst

and I'll open a pull request when it's useable.

However, I'm getting a couple of different errors at this stage, slightly different between Ubuntu and Debian and I wonder if anyone (probably jbaiter :D ) can help me out. After I follow the steps above, on Ubuntu I get the following:

Code: Select all

spreadsenv$ spread configure
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libturbojpeg.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Please select a device driver from the following list:
  [0]: Keep current (None)
  [1]: gphoto2camera
  [2]: chdkcamera
  [3]: dummy
  [4]: None
In Debian I don't even get this far - i get an error that turbojpeg.h is not found (I'm typing this on the Ubuntu box so I'll update this post or reply with the actual transcript once I get back to that laptop).

Any help appreciated - I'd like to get to the stage where I can make concrete contributions to the code.

Cheers
Gareth
gareth
Posts: 11
Joined: 18 Jul 2014, 07:56
Number of books owned: 0
Country: UK

Re: Spreads development environment

Post by gareth »

Can't seem to edit the post so I'll just reply to my own post - the corresponding Debian failure looks like this

Code: Select all

local/lib/python2.7/site-packages/jpegtran/__pycache__/_cffi__xb366312fxf3ca0677.c:186:27: fatal error: turbojpeg.h: No such file or directory
compilation terminated.
User avatar
jbaiter
Posts: 98
Joined: 17 Jun 2013, 16:42
E-book readers owned: 2
Number of books owned: 0
Country: Germany
Location: Munich, Germany
Contact:

Re: Spreads development environment

Post by jbaiter »

On Ubuntu, you will have to install "turbojpeg-devel". See this GitHub issue for a longer discussion of the relocation error: https://github.com/jbaiter/jpegtran-cffi/issues/5

On Debian, "libjpeg8-dev" is enough, you will only get a line on stderr that it can't find turbojpeg.h, but that just means that it will fall back to the libjpeg8 implementation. I haven't found a way to disable that message yet, unfortunately.

And thanks a lot for working on the documentation!
spreads: Command-line workflow assistant
gareth
Posts: 11
Joined: 18 Jul 2014, 07:56
Number of books owned: 0
Country: UK

Re: Spreads development environment

Post by gareth »

jbaiter wrote:On Ubuntu, you will have to install "turbojpeg-devel". See this GitHub issue for a longer discussion of the relocation error: https://github.com/jbaiter/jpegtran-cffi/issues/5
For the sake of completeness:

I couldn't find turbojpeg-devel in the repos, but I could find libturbojpeg which you mentioned on the issue.

However, I found I still got the error - I had to

Code: Select all

sudo ldconfig
to get it to work; looks like the packaging of these libs has left a bit to be desired...

Cheers
Gareth
Post Reply