[vlc-devel] BeOS build
Stephan Assmus
stippi at yellowbites.com
Fri Sep 27 16:47:27 CEST 2002
Hi,
building on BeOS does not go smooth yet. I have tested with both the
current CVS version and the version from Samuel. In that version, when
I replace the file "s16tofloat32swab.c" with the new one from CVS, the
compile goes past this point. But the compiler (gcc 2.95) crashes on
the file "libmp4.c" like this:
gcc -DHAVE_CONFIG_H -I. -I. -I. -DSYS_BEOS -O3 -ffast-math -funroll-
loops -mcpu=pentiumpro -fomit-frame-pointer -I./include -
D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT
-D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR=\"/usr/local/share/locale\" -
DDATA_PATH=\"/usr/local/share/vlc\" -DPLUGIN_PATH=\"/usr/local/lib/vlc\
" -DHAVE_RELEASE -D__VLC__ -D__BUILTIN__ -DMODULE_NAME=mp4 -
DMODULE_NAME_IS_mp4 -Wall -Winline -Wno-multichar -Wno-ctor-dtor-
privacy -Woverloaded-virtual -pipe -c -o modules/demux/mp4/
modules_demux_mp4_libmp4_a-libmp4.o `test -f 'modules/demux/mp4/
libmp4.c' || echo './'`modules/demux/mp4/libmp4.c
lowering the optimization level does not work, but stripping all the
other stuff as well does:
gcc -DHAVE_CONFIG_H -I. -I. -I. -DSYS_BEOS -O1 -I./include -
D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT
-D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR=\"/usr/local/share/locale\" -
DDATA_PATH=\"/usr/local/share/vlc\" -DPLUGIN_PATH=\"/usr/local/lib/vlc\
" -DHAVE_RELEASE -D__VLC__ -D__BUILTIN__ -DMODULE_NAME=mp4 -
DMODULE_NAME_IS_mp4 -Wall -Winline -Wno-multichar -Wno-ctor-dtor-
privacy -Woverloaded-virtual -pipe -c -o modules/demux/mp4/
modules_demux_mp4_libmp4_a-libmp4.o `test -f 'modules/demux/mp4/
libmp4.c' || echo './'`modules/demux/mp4/libmp4.c
Then the compiling finishes - but vlc does not link:
$ make
/bin/make all-recursive
..
make[2]: Entering directory `/Arbeiten/stippi/vlc_zeug/vlc-0.5.0-cvs-
am'
gcc modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o
modules/codec/a52old/modules_codec_a52old_liba52old_a-decoder.o modules
/codec/a52old/modules_codec_a52old_liba52old_a-parse.o modules/codec/
a52old/modules_codec_a52old_liba52old_a-exponent.o modules/codec/a52old
/modules_codec_a52old_liba52old_a-bit_allocate.o modules/codec/a52old/
modules_codec_a52old_liba52old_a-mantissa.o modules/codec/a52old/
modules_codec_a52old_liba52old_a-rematrix.o modules/codec/a52old/
modules_codec_a52old_liba52old_a-imdct.o -o modules/codec/a52old/
liba52old_plugin.so -shared -nostart -fPIC -shared
gcc: unrecognized option `-shared'
gcc: unrecognized option `-shared'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o: In
function `vlc_entry__a52old':
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x192): undefined reference to `config_Duplicate'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o: In
function `RunDecoder':
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x229): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x22f): undefined reference to `DecoderError'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x264): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x26a): undefined reference to `DecoderError'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x2b7): undefined reference to `BitstreamNextDataPacket'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x332): undefined reference to `BitstreamNextDataPacket'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x3ab): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x3be): undefined reference to `aout_InputDelete'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x3e4): undefined reference to `aout_DateInit'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x3f9): undefined reference to `__aout_InputNew'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x42c): undefined reference to `NextPTS'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x448): undefined reference to `aout_DateGet'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x46a): undefined reference to `aout_DateSet'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x477): undefined reference to `aout_DateGet'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x4a0): undefined reference to `aout_BufferNew'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x4c4): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x4e6): undefined reference to `aout_DateGet'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x4fb): undefined reference to `aout_DateIncrement'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x52d): undefined reference to `aout_BufferDelete'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x546): undefined reference to `aout_BufferPlay'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x57a): undefined reference to `DecoderError'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o: In
function `InitThread':
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x5b8): undefined reference to `__vlc_object_create'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x5da): undefined reference to `__module_Need'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x607): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x616): undefined reference to `__vlc_object_destroy'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x63b): undefined reference to `__vlc_object_create'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x659): undefined reference to `__module_Need'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x87f): undefined reference to `InitBitstream'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x8a7): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x8b6): undefined reference to `__vlc_object_destroy'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x8d3): undefined reference to `__module_Unneed'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x8e2): undefined reference to `__vlc_object_destroy'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o: In
function `EndThread':
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0x924): undefined reference to `aout_InputDelete'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0xa4b): undefined reference to `__module_Unneed'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0xa5a): undefined reference to `__vlc_object_destroy'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0xa7a): undefined reference to `__module_Unneed'
modules/codec/a52old/modules_codec_a52old_liba52old_a-a52old.o(.text+
0xa89): undefined reference to `__vlc_object_destroy'
modules/codec/a52old/modules_codec_a52old_liba52old_a-decoder.o: In
function `decode_frame':
modules/codec/a52old/modules_codec_a52old_liba52old_a-decoder.o(.text+
0x1a7): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o: In
function `sync_frame':
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0xd2): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x13e): undefined reference to `UnalignedShowBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x1b2): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x224): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x2c4): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x374): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o: In
function `parse_bsi':
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x4a4): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x564): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x609): more undefined references to `UnalignedGetBits' follow
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o: In
function `parse_auxdata':
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x5732): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x57a2): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x5812): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x5887): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x58e8): undefined reference to `UnalignedRemoveBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-parse.o(.text+
0x5952): more undefined references to `UnalignedRemoveBits' follow
modules/codec/a52old/modules_codec_a52old_liba52old_a-exponent.o: In
function `exponent_unpack':
modules/codec/a52old/modules_codec_a52old_liba52old_a-exponent.o(.text+
0x42b): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-exponent.o(.text+
0x94b): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-exponent.o(.text+
0xc4b): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o: In
function `mantissa_unpack':
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x27a): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x3c4): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x4d9): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x5ea): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x6f4): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x723): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x823): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0xa87): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0xbd4): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0xce9): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0xdfa): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0xf04): more undefined references to `UnalignedGetBits' follow
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o: In
function `mantissa_unpack':
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0xf33): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x1033): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x15e7): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x1734): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x1849): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x195a): undefined reference to `UnalignedGetBits'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x1a64): more undefined references to `UnalignedGetBits' follow
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o: In
function `mantissa_unpack':
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x1a93): undefined reference to `__msg_Generic'
modules/codec/a52old/modules_codec_a52old_liba52old_a-mantissa.o(.text+
0x1b93): undefined reference to `UnalignedGetBits'
collect2: ld returned 1 exit status
make[2]: *** [modules/codec/a52old/liba52old_plugin.so] Error 1
make[2]: Leaving directory `/Arbeiten/stippi/vlc_zeug/vlc-0.5.0-cvs-am'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Arbeiten/stippi/vlc_zeug/vlc-0.5.0-cvs-am'
make: *** [all] Error 2
I don't know how to fix this. Samuel?
The version from CVS insists on beos_specific.c, but it should be
beos_specific.cpp, and when I rename that to .c, it insists on .cpp
again... :-}
Regards,
-Stephan
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list