compile MAD on snowleopard
[email protected] Tue, 4 Jan 2011 11:26:32 +0100
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Message-ID | <f57f4d75ab9fb550e565dd9cd3d05d08.squirrel@icem-mail.folkwang-hochschule.de> |
Hi everybody,
I would like to include MAD in an xcode project and I used the very simpl=
e
minimad.c file.
I also included the headers from the project trunk. But then I get an err=
or:
"_mad_decoder_finish", referenced from:
_main in main.o
during the linking.
So I realized that I have to build the mad-lib first (right?)
and I started the ./configure from console which went well but the make
throws another error:
(sed -e '1s|.*|/*|' -e '1b' -e '$s|.*| */|' -e '$b' \
-e 's/^.*/ *&/' ./COPYRIGHT; echo; \
echo "# ifdef __cplusplus"; \
echo 'extern "C" {'; \
echo "# endif"; echo; \
if [ ".-DFPM_INTEL" !=3D "." ]; then \
echo ".-DFPM_INTEL" | sed -e 's|^\.-D|# define |'; echo; \
fi; \
sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \
config.h; echo; \
sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \
config.h; echo; \
sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \
config.h; echo; \
for header in version.h fixed.h bit.h timer.h stream.h frame.h synth.h
decoder.h; do \
echo; \
sed -n -f ./mad.h.sed ./$header; \
done; echo; \
echo "# ifdef __cplusplus"; \
echo '}'; \
echo "# endif") >mad.h
make all-recursive
if /bin/sh ./libtool --mode=3Dcompile gcc -DHAVE_CONFIG_H -I. -I. -I.
-DFPM_INTEL -DASO_ZEROCHECK -Wall -march=3Di486 -g -O -fforce-mem
-fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks
-fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce
-MT version.lo -MD -MP -MF ".deps/version.Tpo" -c -o version.lo version.c=
;
\
then mv -f ".deps/version.Tpo" ".deps/version.Plo"; else rm -f
".deps/version.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall
-march=3Di486 -g -O -fforce-mem -fforce-addr -fthread-jumps
-fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove
-fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF
.deps/version.Tpo -c version.c -fno-common -DPIC -o .libs/version.o
cc1: warning: -f[no-]force-mem is nop and option will be removed in 4.3
version.c:1: error: CPU you selected does not support x86-64 instruction =
set
version.c:1: error: CPU you selected does not support x86-64 instruction =
set
make[2]: *** [version.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
This looks like the wrong architecture.. but I am not so familiar with th=
e
options in 'make'.
Can anybody confirm the first case and does anyone have an idea for the
make-problem?
Thanks a lot in advance!
Best
Johannes