Re: [Zope] Photo browsing products for Zope
Am 02.01.2003, 02:00 Uhr schrub Ed Leafe <ed@leafe.com>:
BTW, in the web page, they suggest testing for where the jpeglib is installed with the following command: ld -L/usr/local/lib -ljpeg -nostdlib
When I run that, I get this error: ld: warning: cannot find entry symbol _start; not setting start address
It seems obvious that your PIL is compiled without jpeg support. One last test to check this: try "ldd /path/to/your/_imaging.so". libjpeg.so.someversion should show up in the resulting list.
Could this be a clue as to what is wrong? I've tried re-compiling jpeglib a few times, and I always seem to get this error.
No, this is normal since you try to ld without a program so there's no entry point. Did you specify the location of your libjpeg when running ./configure (--with-jpeg=/path/to/your/libjpeg.so.someversion) in libImaging? Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
On Thursday, January 2, 2003, at 02:36 AM, Jo Meder wrote:
It seems obvious that your PIL is compiled without jpeg support. One last test to check this: try "ldd /path/to/your/_imaging.so". libjpeg.so.someversion should show up in the resulting list.
Here's the list returned: libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40038000) libz.so.1 => /usr/lib/libz.so.1 (0x40057000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) The file /usr/lib/libjpeg.so.62 does indeed exist (symlink to /usr/lib/libjpeg.so.62.0.0, which has a date of 2002-6-23 - IOW, not anything that was created by the IJG jpeg software I have been building.
Could this be a clue as to what is wrong? I've tried re-compiling jpeglib a few times, and I always seem to get this error.
No, this is normal since you try to ld without a program so there's no entry point.
Did you specify the location of your libjpeg when running ./configure (--with-jpeg=/path/to/your/libjpeg.so.someversion) in libImaging?
No. I followed the directions on the "Using PIL with Zope" page (http://www.zope.org/Members/regebro/PIL_zope). On that page, it says to configure libImaging as follows: ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib and then to change the Makefile to modify the following line: LIBS= -L/usr/lib -lz -L/usr/local/lib -ljpeg -lm I just tried rebuilding with your configure option, and the result was the same. Is is simply possible that the libjpeg.so.62 I have is simply bad or too old? If so, what are my options? ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://foxcentral.net
From: "Ed Leafe" <ed@leafe.com>
Did you specify the location of your libjpeg when running ./configure (--with-jpeg=/path/to/your/libjpeg.so.someversion) in libImaging?
No. I followed the directions on the "Using PIL with Zope" page
Which says the same thing.
On that page, it says to configure libImaging as follows: ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib
On Thursday, January 2, 2003, at 03:03 PM, Lennart Regebro wrote:
Did you specify the location of your libjpeg when running ./configure (--with-jpeg=/path/to/your/libjpeg.so.someversion) in libImaging?
No. I followed the directions on the "Using PIL with Zope" page
Which says the same thing.
On that page, it says to configure libImaging as follows: ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib
My mistake. I thought that Jo was suggesting to use the file name in addtion to the path, i.e.: ./configure --with-zlib=/usr/lib --with-jpeg=/usr/local/lib/libjpeg.so.62 Either way, with the file name or just the path, I get the same error. ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://foxcentral.net
Am 02.01.2003, 20:43 Uhr schrüb Ed Leafe <ed@leafe.com>:
Here's the list returned:
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40038000) libz.so.1 => /usr/lib/libz.so.1 (0x40057000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
The file /usr/lib/libjpeg.so.62 does indeed exist (symlink to /usr/lib/libjpeg.so.62.0.0
Exactly the same here. What does the file ImConfig.h (which is generated by configure) say about libjpeg? Near the end you should have a line with "#define HAVE_LIBJPEG 1" If it doesn't, try removing this file and the file "config.cache" and run configure again, then "make clean all" Jo. -- Internetmanufaktur Jo Meder ---------------------- Berlin, Germany http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33 Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45 10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97 Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt
On Friday, January 3, 2003, at 02:40 AM, Jo Meder wrote:
What does the file ImConfig.h (which is generated by configure) say about libjpeg? Near the end you should have a line with "#define HAVE_LIBJPEG 1"
If it doesn't, try removing this file and the file "config.cache" and run configure again, then "make clean all"
That did it!! I never would have found that on my own. Thanks! Now I can start playing with Photo/PhotoFolder... ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://foxcentral.net
participants (3)
-
Ed Leafe -
Jo Meder -
Lennart Regebro