On 2012-07-14 21:39, Maurizio Berti wrote:
> Hello,
> I'm trying to compile linuxsampler on OS X 10.5.8, by command line
> rather than Xcode (I'm not used to it). So far I was able to build and
> install liblscp and libgig, but I had problems with linuxsampler.
> After a couple of issues (the last one being adding
> JACK_CFLAGS="-DHAVE_JACK_MIDI_GET_EVENT_COUNT" to get the compilation
> process going on) I'm stuck with an LD problem. Here you can see the
> latest output of make: http://pastebin.com/mxNs2gVR
> I asked on the #linuxsampler channel on freenode and they told me that
> maybe I'm missing the ldflags ("-framework Coreaudio" and so on) in
> the makefile for liblinuxsampler. I'm not an expert, so I really don't
> know how to fix this issue.
> FYI I'm using revision 2356.
> Can anybody help me with that?
>
> Thanks in advance,
> Maurizio
>

I just tried to do a build on OS X, and it worked fine. This is how I 
did it:

Environment: OS X 10.6.6, XCode 3.2.6, no extra open-source packages 
like fink or MacPorts installed.

My home dir is /Users/andreas. I built everything in /Users/andreas/build.


cd
mkdir build
cd build

# GNU libtool, needed in all builds
tar xf ~/libtool-2.4.2.tar
cd libtool-2.4.2
./configure --prefix=/Users/andreas/build --disable-static
make
make install

export PATH=/Users/andreas/build/bin:$PATH

# gettext, needed to build pkg-config
cd ..
tar xf ~/gettext-0.18.1.1.tar.gz
cd gettext-0.18.1.1
./configure --prefix=/Users/andreas/build --disable-static
make
make install

# pkg-config, needed to find libsndfile and libgig
cd ..
tar xf ~/pkg-config-0.27.tar.gz
cd pkg-config-0.27
CPPFLAGS=-I/Users/andreas/build/include 
LDFLAGS=-L/Users/andreas/build/lib ./configure 
--prefix=/Users/andreas/build --disable-static --with-internal-glib
make
make install

# create a aclocal wrapper so pkg.m4 is found by Makefile.cvs
cd ..
echo '/usr/bin/aclocal -I /Users/andreas/build/share/aclocal "$@"' > 
bin/aclocal
chmod +x bin/aclocal

# libsndfile
tar xf ../libsndfile-1.0.25.tar.gz
cd libsndfile-1.0.25
./configure --prefix=/Users/andreas/build --disable-static
make
make install

# libgig
cd ..
svn co https://svn.linuxsampler.org/svn/libgig/trunk libgig
cd libgig
make -f Makefile.cvs
./configure --prefix=/Users/andreas/build --disable-static
make
make install

# linuxsampler
cd ..
svn co https://svn.linuxsampler.org/svn/linuxsampler/trunk linuxsampler
cd linuxsampler
make -f Makefile.cvs
CXXFLAGS="-O2 -march=x86-64" ./configure --prefix=/Users/andreas/build 
--disable-static
make
make install


/Andreas

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to