photos

15/Apr/2010 PA
12/Apr/2009 Sunrise Circus
15/Mar/2009 Lego
08/Mar/2009 Moomba
13/Feb/2009 Car Smokey Sunset
26/Jan/2009 Fireworks
26/Oct/2008 Synchrotron
07/Jun/2008 Model Trains
06/Jun/2008 Wedding
04/Jun/2008 Central Coast Trip
more photos...

lavtools

03/Nov/2011 yuvvalues
03/Nov/2011 yuvrfps
03/Nov/2011 yuvdiff
03/Nov/2011 yuvaddetect
03/Nov/2011 yuv2jpeg
more lavtools...

Creativity

The TRIP is the mental projection of my digital self. Including all areas of digital work I have been involved with, including Music, video, photography...

All good web pages must have the collection of absolutely useless pictures. Designed for no purpose other than to consume kilobits. And hopefully show off some of my Photographic skills. Web design skills, and uses one php script to drive the whole index. Also see the Photography section of the Silicontrip Website.

The Creative section of the TRIP is my imagination trying to run free. I have a fascination with sexual, spiritual and meta physical abilities, and these stories show it.

Part of the images directory contains some of my digital artwork. These images have been created or enhanced by myself, with the help of the 1s and 0s machine.

album

23/Feb/2011 Trace
17/Jan/2010 Food
30/Oct/2009 Airbrush
18/Jun/2009 Focal
01/Jun/2009 Transport
01/Jun/2009 Misc
31/May/2009 Artwork
24/Apr/2009 AirbrushScales
18/Apr/2009 Probe
10/Jan/2009 Scanimation
more album...

blog

27/Jan/2012 ZFS for OSX
14/Dec/2011 Scripting Bridge
02/Dec/2011 Core Audio Units
01/Mar/2011 A useful bit of code
22/Dec/2010 Larger than 4G files on FAT for OSX
08/Dec/2009 Time machine on non HFS drives
21/Oct/2009 My Strengths
27/Aug/2009 Train Hitchiking
11/Jul/2009 A litre of onions
19/Jun/2009 FSCK for NTFS
18/Jun/2009 Automated Focal Deconstruction
12/Jun/2009 Perl code to write BMPs
07/Jun/2009 More Lego
01/Jun/2009 Latest Airbrushing
30/May/2009 Happy Birthday to me
24/May/2009 Comments Engine
09/May/2009 Skills Matrix
24/Apr/2009 Airbrush simulator
19/Apr/2009 Ben 10 Board game
29/Mar/2009 How fresh is your fresh food?
more blog...

BACK

12/Jun/2008

Building dynamic cross platform lib jpeg 6b on OSX

This is more for my benefit as there is probably no way I'll remember these instructions by myself...

Copy config.* from /usr/share/libtool
cp /usr/share/libtool/config.* .

Download ltconfig and ltmain.sh from fink.
curl -o ltconfig http://www.finkproject.org/files/ltconfig
curl -o ltmain.sh http://www.finkproject.org/files/ltmain.sh

configure
./configure --enable-shared --enable-static

Make with the following command
make CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" LDFLAGS="-Wl,-syslibroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"

Alternatively configure with the following command:
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --enable-shared

then make

I also had to hack libtool to include the LDFLAGS into the archive_cmd variable.

The Result:

bash-3.2$ file /usr/local/lib/libjpeg.a 
/usr/local/lib/libjpeg.a: Mach-O universal binary with 4 architectures
/usr/local/lib/libjpeg.a (for architecture ppc):	current ar archive random library
/usr/local/lib/libjpeg.a (for architecture ppc64):	current ar archive random library
/usr/local/lib/libjpeg.a (for architecture i386):	current ar archive random library
/usr/local/lib/libjpeg.a (for architecture x86_64):	current ar archive random library
bash-3.2$ file /usr/local/lib/libjpeg.dylib 
/usr/local/lib/libjpeg.dylib: Mach-O universal binary with 4 architectures
/usr/local/lib/libjpeg.dylib (for architecture ppc7400):	Mach-O dynamically linked shared library ppc
/usr/local/lib/libjpeg.dylib (for architecture ppc64):	Mach-O 64-bit dynamically linked shared library ppc64
/usr/local/lib/libjpeg.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/usr/local/lib/libjpeg.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64

WOOT!


Comments

Your name:

Your comments: