Rockbox Development > Starting Development and Compiling

undefined reference in libmad?

(1/1)

fofoca:
Hi, I'm trying to compile rb for Sansa Clip+ for the first time in a couple of years. I'm using saratoga's Ubuntu VirtualBox setup and the 3.12 source from github. I get the following error:

--- Code: ---...
LD mpegplayer.rock
CC rocklib_aux.c
<snip>/rockbox/build/lib/rbcodec/codecs/libmad-mpeg.a(frame.o):(.rodata+0x140): undefined reference to `mad_layer_III'
collect2: ld returned 1 exit status
make: *** [<snip>/rockbox/build/apps/plugins/mpegplayer/mpegplayer.rock] Error 1
make: *** Waiting for unfinished jobs....

--- End code ---
None of the previous steps reported a problem, so I'm at a loss...  :'(


bluebrother:
The Rockbox code is not hosted on github. If someone mirrors it there it's fine but nothing we can support. Use git.rockbox.org.

fofoca:
Sorry, my thoughtless typo. I did use git.rockbox.org.

fofoca:
OK, fixed it. Apparently something died during the compilation and one of the object files had a length of 0. Deleted it, reran the make, it worked.

Navigation

[0] Message Index

Go to full version