[flac-dev] Compiling FLAC for tremor and StrongARM

Adam Luter luterac at auburn.edu
Sun Oct 12 21:10:24 PDT 2003



Hi,

  I'm developing squash (shameless plug:
http://freshmeat.net/projects/squash/ ), and I've just added FLAC
support.  I'm going to hold off on OggFLAC support until the high level
interface is in place.

  However, my question concerns compiling libFLAC for the strongarm.
First I noticed that I could not use the files compiled by tremor, which
I have already working.  I suppose that may make sense, depending what
tremor encompasses.  In order to get it to mostly compile I had to
install libogg.  I do not know if it is compiled successfully but it
didn't return any errors during compile.

  I used this to compile both libogg and libFLAC (which is what I
normally use as a first try for other libraries):

./configure --build=i686-linux-gnu --host=arm-linux
--prefix=/usr/local/i686-linux-gnu --enable-static --disable-shared

(and make and make install)

  Anyway I get libogg without a hitch, as I mentioned; but when I get to
the end of the compilation of libFLAC I get this error with ld:

Making all in flac
make[3]: Entering directory `/xtr/home/gryn/squash/flac-1.1.0/src/flac'
/bin/sh ../../libtool --mode=link arm-linux-gcc  -I../.. -I./include
-I../../include -O3 -DNDEBUG -fomit-frame-pointer -funroll-loops
-finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__ -g -O2
-I/usr/local/i686-linux-gnu/include   -o flac  analyze.o decode.o
encode.o main.o utils.o vorbiscomment.o
../../src/libOggFLAC/libOggFLAC.la ../../src/share/grabbag/libgrabbag.la
../../src/share/gain_analysis/libgain_analysis.la
../../src/share/getopt/libgetopt.a ../../src/share/utf8/libutf8.la
../../src/libFLAC/libFLAC.la -L/usr/local/i686-linux-gnu/lib -logg -lm
arm-linux-gcc -I../.. -I./include -I../../include -O3 -DNDEBUG
-fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline
-DFLaC__INLINE=__inline__ -g -O2 -I/usr/local/i686-linux-gnu/include -o
flac analyze.o decode.o encode.o main.o utils.o vorbiscomment.o
../../src/libOggFLAC/.libs/libOggFLAC.a -L/usr/local/i686-linux-gnu/lib
/xtr/home/gryn/squash/flac-1.1.0/src/libFLAC/.libs/libFLAC.a
../../src/share/grabbag/.libs/libgrabbag.a
../../src/share/gain_analysis/.libs/libgain_analysis.a
../../src/share/getopt/libgetopt.a ../../src/share/utf8/.libs/libutf8.a
../../src/libFLAC/.libs/libFLAC.a /usr/local/i686-linux-gnu/lib/libogg.a
-lm
/usr/lib/gcc-lib/arm-linux/3.2.3/../../../../arm-linux/bin/ld: warning:
unknown architecture of input file
`/usr/local/i686-linux-gnu/lib/libogg.a(framing.o)' is incompatible with
arm output
/usr/lib/gcc-lib/arm-linux/3.2.3/../../../../arm-linux/bin/ld:
/usr/local/i686-linux-gnu/lib/libogg.a(framing.o)(.text+0xa8a):
R_ARM_PC24 relocation against SEC_MERGE section
collect2: ld returned 1 exit status

  So, I'm not sure which library I don't have the options correct for.
Or maybe both.  I also tried --with-gnu-ld, but that didn't seem to help
(in fact this is the past from the --with-gnu-ld run, but the error
message appears to be similar or the same).

  BTW, I'm compiling for the strongarm because squash also runs on the
empeg car jukebox.

  Thanks, any help is appreciated.

Sine Cera,
  Adam Luter
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to
'flac-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Flac-dev mailing list