Page 1 of 1

problem compiling vlc 093 - plugin error

Posted: 02 Oct 2008 06:45
by hedron
I can't seem to compile VLC no matter what options I use. I've searched and have found no answer. Basically it errors out with the error below. If it doesn't give me that error, it's some other plugin like avcodec(though recompiling ffmpeg fixed that, I think?) or a52, and I'd probably get others with different config options. I've tried disabling/enabling all options, some options and other options I don't remember. I've followed the instructions and I'm at a loss as to what I'm doing wrong. Any suggestions are welcome. Thanks.

My system is: Bluewhite64 12.1(same as slack except 64bit), kernel 2.6.26.5, gcc 4.3.2, abit ix38quadgt, e2180 pentium dual core, evga 7950gt, auzentech xmeridian sound card.

Code: Select all

#!/bin/sh $SRC/vlc-0.9.3/configure --enable-live555 \ --enable-a52 \ --enable-dc1394 \ --enable-swscale \ --enable-dv \ --enable-dvdread \ --enable-dvdnav \ --enable-cddax \ --enable-vcdx \ --enable-faad \ --enable-twolame \ --enable-real \ --enable-flac \ --enable-tremor \ --enable-theora \ --enable-dirac \ --enable-x264 \ --enable-caca \ --enable-esd \ --enable-pulse \ --enable-galaktos \ --enable-mozilla \ --enable-avcodec \ --enable-vorbis \ --enable-zvbi \ --enable-v4l2 \ --disable-telx \ --disable-imgresample \ --with-live555-tree=/usr/local/lib \ --with-qte=/usr/local/Trolltech/Qt-4.4.2 \ --with-tuning=core2

Code: Select all

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=tremor -DMODULE_NAME_IS_tremor -DMODULE_STRING=\"tremor\" -O3 -ffast-math -funroll-loops -mtune=core2 -fomit-frame-pointer -O3 -march=core2 -mtune=core2 -m64 -fPIC -pipe -fomit-frame-pointer -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libtremor_plugin_la-vorbis.lo -MD -MP -MF .deps/libtremor_plugin_la-vorbis.Tpo -c vorbis.c -fPIC -DPIC -o .libs/libtremor_plugin_la-vorbis.o vorbis.c:80: error: field 'vd' has incomplete type vorbis.c:82: error: expected specifier-qualifier-list before 'vorbis_block' vorbis.c: In function 'OpenDecoder': vorbis.c:245: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:246: error: 'decoder_sys_t' has no member named 'i_last_block_size' vorbis.c:249: error: 'decoder_sys_t' has no member named 'i_input_rate' vorbis.c: In function 'DecodeBlock': vorbis.c:306: error: 'decoder_sys_t' has no member named 'i_input_rate' vorbis.c: In function 'ProcessHeaders': vorbis.c:395: warning: implicit declaration of function 'vorbis_synthesis_headerin' vorbis.c:417: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:464: warning: implicit declaration of function 'vorbis_synthesis_init' vorbis.c:465: warning: implicit declaration of function 'vorbis_block_init' vorbis.c:465: error: 'decoder_sys_t' has no member named 'vb' vorbis.c:476: error: 'decoder_sys_t' has no member named 'pi_chan_table' vorbis.c: In function 'ProcessPacket': vorbis.c:493: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:495: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:498: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c: In function 'DecodePacket': vorbis.c:541: warning: implicit declaration of function 'vorbis_synthesis' vorbis.c:541: error: 'decoder_sys_t' has no member named 'vb' vorbis.c:545: warning: implicit declaration of function 'vorbis_synthesis_blockin' vorbis.c:545: error: 'decoder_sys_t' has no member named 'vb' vorbis.c:552: warning: implicit declaration of function 'vorbis_synthesis_pcmout' vorbis.c:565: error: 'decoder_sys_t' has no member named 'pi_chan_table' vorbis.c:572: warning: implicit declaration of function 'vorbis_synthesis_read' vorbis.c:575: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:576: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:577: error: 'decoder_sys_t' has no member named 'i_input_rate' vorbis.c: In function 'SendPacket': vorbis.c:595: warning: implicit declaration of function 'vorbis_packet_blocksize' vorbis.c:597: error: 'decoder_sys_t' has no member named 'i_last_block_size' vorbis.c:598: error: 'decoder_sys_t' has no member named 'i_last_block_size' vorbis.c:601: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:604: error: 'decoder_sys_t' has no member named 'end_date' vorbis.c:605: error: 'decoder_sys_t' has no member named 'i_input_rate' vorbis.c: In function 'CloseDecoder': vorbis.c:780: warning: implicit declaration of function 'vorbis_block_clear' vorbis.c:780: error: 'decoder_sys_t' has no member named 'vb' vorbis.c:781: warning: implicit declaration of function 'vorbis_dsp_clear' make[5]: *** [libtremor_plugin_la-vorbis.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DLIBTWOLAME_STATIC -DMODULE_NAME=twolame -DMODULE_NAME_IS_twolame -DMODULE_STRING=\"twolame\" -O3 -ffast-math -funroll-loops -mtune=core2 -fomit-frame-pointer -O3 -march=core2 -mtune=core2 -m64 -fPIC -pipe -fomit-frame-pointer -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libtwolame_plugin_la-twolame.lo -MD -MP -MF .deps/libtwolame_plugin_la-twolame.Tpo -c twolame.c -fPIC -DPIC -o .libs/libtwolame_plugin_la-twolame.o mv -f .deps/libdvbsub_plugin_la-dvbsub.Tpo .deps/libdvbsub_plugin_la-dvbsub.Plo mv -f .deps/libtwolame_plugin_la-twolame.Tpo .deps/libtwolame_plugin_la-twolame.Plo make[5]: Leaving directory `/home/arisch/apps/Source_Code/vlc-0.9.3/modules/codec' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/arisch/apps/Source_Code/vlc-0.9.3/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/arisch/apps/Source_Code/vlc-0.9.3/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/arisch/apps/Source_Code/vlc-0.9.3/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/arisch/apps/Source_Code/vlc-0.9.3' make: *** [all] Error 2

Re: problem compiling vlc 093 - plugin error

Posted: 02 Oct 2008 21:48
by RĂ©mi Denis-Courmont
Looks like too old (or too recent?) libvorbis

Re: problem compiling vlc 093 - plugin error

Posted: 03 Oct 2008 03:19
by hedron
I have libvorbis 1.2.0. Is that a problem? I would think the latest version would be best. I tried 1.1.2 and got the same error.

What are Tpo and Plo files? I noticed they just released a new theora and got some errors with state.Tpo/Plo. Maybe this has to do with the problem?

Re: problem compiling vlc 093 - plugin error

Posted: 04 Oct 2008 06:14
by hedron
I noticed it seems to look for libs in /usr/lib when I have most of these libraries in /usr/local/lib. Like this:

Code: Select all

libtool: link: cannot find the library `/usr/lib/libgpg-error.la' or unhandled argument `/usr/lib/libgpg-error.la' make[5]: *** [librtp_plugin.la] Error 1
I have /usr/local/lib and /usr/local/lib64 in ld.so.conf. I've tried export LD_CONFIG_PATH=/usr/local/lib but no go.

Re: problem compiling vlc 093 - plugin error

Posted: 05 Oct 2008 00:12
by xtophe
ld.so.conf and LD_CONFIG_PATH are for runtime not for compilation/linking time.

So you need to set correctly CFLAGS and LDFLAGS when you configure

Re: problem compiling vlc 093 - plugin error

Posted: 05 Oct 2008 05:36
by hedron
OK. So I set LDFLAGS like so:

Code: Select all

:~/apps/Source_Code/vlc-0.9.3$ echo $LDFLAGS -L/lib64 -L/lib -L/usr/lib -L/usr/lib64 -L/usr/local/lib -L/usr/local/lib64 -L/usr/local/kde/lib -L/usr/local/agg/lib -L/usr/local/Trolltech/Qt-4.4.2/lib
And it still looks in /usr/lib?? Like this:

Code: Select all

/usr/bin/sed: can't read /usr/lib/libogg.la: No such file or directory libtool: link: `/usr/lib/libogg.la' is not a valid libtool archive make[5]: *** [libtheora_plugin.la] Error 1
I also tried:

Code: Select all

:~/apps/Source_Code/vlc-0.9.3$ echo $LDFLAGS -L/usr/local/lib
If it was just one or two libraries I'd just link /usr/lib/*la to /usr/local, but it seems like it's the whole bunch. Maybe I broke something installing other software?

I noticed I had an old version of libtool(1.5.x) so I updated to libtool 2.2.6. But when I libtool --config I get this:

Code: Select all

# Compile-time system search path for libraries sys_lib_search_path_spec="/usr/local/lib/gcc/x86_64-pc-linux/4.3.2 /usr/local/lib64 /lib64 /usr/lib64"
Shouldn't I have /usr/local/lib or so in there? If so, where is libtools configure file?

Re: problem compiling vlc 093 - plugin error

Posted: 07 Oct 2008 06:43
by hedron
Ok, I got it. I had to edit a few la files as they were pointing to a location the library did not exist. Like so:

grep /usr/lib/libgpg-error.la /usr/lib/lib*.la

Then edited the la files to match where the library was.