User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b5) Gecko/20051006 Thunderbird/1.4.1 Mnenhy/0.7.2.0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
paul,
Paul J. Lucas wrote:
> Has anybody built a shared library of the jpeg-6b library for
> OS X? I tried adding --enable-shared as an argument to
> ./configure, but that tries to execute ./libtool that doesn't
> exist.
>
> I did find something online that suggested:
>
> cd jpeg-6b
> cp /usr/share/libtool/config.* .
> ./configure --enable-shared
>
> and that got further, but it:
>
> 1. Still built only libjpeg.a and libjpeg.dylib.
> 2. Built libjpeg.a wrong in that in did ar *.lo and not .o.
>
> Any help?
>
> - Paul
>
> P.S.: Yes, I need to build libjpeg from source since I've added
> custom altivec patches.
- --
not the 'prettiest', but this has worked for me:
wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
gnutar zxf /usr/ports/jpegsrc.v6b.tar.gz
cd /usr/ports/jpeg-6b
unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS LD_PREBIND LINGUAS LC_ALL LANG
setenv LDFLAGS "-ldl"
rm -rf /usr/local/lib/libjpeg*
cp /usr/local/share/libtool/ltmain.sh .
cp /usr/local/share/libtool/config.guess .
cp /usr/local/share/libtool/config.sub .
# USE THE LTCONFIG INCLUDED WITH THE FINK DISTRO ... WHY? IT WORKS ...
cp /sw/lib/fink/update/ltconfig .
mkdir -p /usr/local/bin/
mkdir -p /usr/local/man/man1/
mkdir -p /usr/local/include/
mkdir -p /usr/local/lib/
# make distclean
./configure \
- --prefix=/usr/local \
- --enable-shared --enable-static
make
make install
make install-lib
ls -ald /usr/local/lib/libjpeg*
-rwxr-xr-x 1 root wheel 132320 Oct 23 20:06 /usr/local/lib/libjpeg.62.0.0.dylib
lrwxr-xr-x 1 root wheel 20 Oct 23 20:06 /usr/local/lib/libjpeg.62.dylib ->
libjpeg.62.0.0.dylib
-rw-r--r-- 1 root wheel 174280 Oct 23 20:06 /usr/local/lib/libjpeg.a
lrwxr-xr-x 1 root wheel 20 Oct 23 20:06 /usr/local/lib/libjpeg.dylib -> libjpeg.62.0.0.dylib
-rwxr-xr-x 1 root wheel 808 Oct 23 20:06 /usr/local/lib/libjpeg.la
hth,
richard
/"\
\ / ASCII Ribbon Campaign
X against HTML email, vCards
/ \ & micro$oft attachments
[GPG] OpenMacNews at gmail dot com
fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
iEYEAREDAAYFAkOZE54ACgkQlffdvTZxCMa2rQCgxzfJMRu/nMSaXzY2P/5GTFZW
YU0An1lYt6upd3wLxWa7Jp4hgZHL7bok
=12Wf
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden
This email sent to email@hidden