[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[fluid-dev] Universal binary of libfluidsynth
From: |
Nathaniel Gray |
Subject: |
[fluid-dev] Universal binary of libfluidsynth |
Date: |
Thu, 7 Jun 2007 15:10:26 -0700 |
One more thing,
I just wanted to report that I was able to build a universal binary
of libfluidsynth on OS X with a bit of work. I configured with the
line:
env CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -
arch ppc" \
LDFLAGS="-arch i386 -arch ppc" ./configure --disable-dependency-
tracking \
--disable-alsa-support --disable-oss-support --disable-jack-support \
--without-readline --disable-ladcca --disable-lash
But I also needed to fix the endianness macro in src/config.h, since
it needs to detect endianness at compile time, not configure time:
/* Define to 1 if your processor stores words with the most
significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#ifdef __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
#else
# undef WORDS_BIGENDIAN
#endif
For some reason the ldflags don't get through properly (the -arch
flags, specifically), so I did:
make # This fails
cd src
# Rebuild libfluidsynth.1.1.1.dylib as universal binary library
gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -
o .libs/libfluidsynth.1.1.1.dylib .libs/libfluidsynth_la-
fluid_coreaudio.o .libs/libfluidsynth_la-fluid_adriver.o .libs/
libfluidsynth_la-fluid_chan.o .libs/libfluidsynth_la-
fluid_chorus.o .libs/libfluidsynth_la-fluid_cmd.o .libs/
libfluidsynth_la-fluid_conv.o .libs/libfluidsynth_la-
fluid_defsfont.o .libs/libfluidsynth_la-fluid_event.o .libs/
libfluidsynth_la-fluid_gen.o .libs/libfluidsynth_la-
fluid_hash.o .libs/libfluidsynth_la-fluid_io.o .libs/libfluidsynth_la-
fluid_ladspa.o .libs/libfluidsynth_la-fluid_list.o .libs/
libfluidsynth_la-fluid_mdriver.o .libs/libfluidsynth_la-
fluid_midi.o .libs/libfluidsynth_la-fluid_midi_router.o .libs/
libfluidsynth_la-fluid_midishare.o .libs/libfluidsynth_la-
fluid_mod.o .libs/libfluidsynth_la-fluid_ramsfont.o .libs/
libfluidsynth_la-fluid_rev.o .libs/libfluidsynth_la-
fluid_seqbind.o .libs/libfluidsynth_la-fluid_seq.o .libs/
libfluidsynth_la-fluid_settings.o .libs/libfluidsynth_la-
fluid_synth.o .libs/libfluidsynth_la-fluid_sys.o .libs/
libfluidsynth_la-fluid_tuning.o .libs/libfluidsynth_la-
fluid_voice.o .libs/libfluidsynth_la-fluid_aufile.o -lm -lpthread -
Wl,-framework -Wl,CoreAudio -install_name /usr/local/lib/
libfluidsynth.1.dylib -Wl,-compatibility_version -Wl,3 -Wl,-
current_version -Wl,3.1 -arch i386 -arch ppc
cd ..
make
And that did the trick. I'm no autoconf expert so I can't tell you
how to solve these problems, but I sure would be happy if you did. ;^)
Cheers,
-n8
--
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [fluid-dev] Universal binary of libfluidsynth,
Nathaniel Gray <=