Page 1 of 1

require no space between `-L' and `-lavcodec'

Posted: 02 Jul 2009 15:42
by velsd
hello all,

when compiling vlc-0.9.9a on linux with config options

./configure LDFLAGS='-L/opt/sound/lib -L/opt/video/lib' CPPFLAGS='-I/opt/sound/include -I/opt/video/include -I/opt/gnome/include' --enable-faad --enable-loader --enable-vorbis


I get the following error:

/bin/sh ../../../libtool --tag=CC --mode=link gcc -std=gnu99 `top_builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin.la` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -rpath '/usr/local/lib/vlc/codec' -avoid-version -module -no-undefined -export-symbol-regex ^vlc_entry -shrext .so `top_builddir="../../.." ../../../vlc-config --ldflags plugin libavcodec_plugin.la` -L/opt/sound/lib -L/opt/video/lib -o libavcodec_plugin.la libavcodec_plugin_la-avcodec.lo libavcodec_plugin_la-video.lo libavcodec_plugin_la-audio.lo libavcodec_plugin_la-deinterlace.lo libavcodec_plugin_la-encoder.lo `top_builddir="../../.." ../../../vlc-config -libs plugin libavcodec_plugin.la` ../../../src/libvlccore.la

libtool: link: require no space between `-L' and `-lavcodec'



can someone help explain?

thanks, Danny.

Re: require no space between `-L' and `-lavcodec'

Posted: 02 Jul 2009 16:59
by Rémi Denis-Courmont
Can you provide the result of these two?

./vlc-config --ldflags plugin libavcodec_plugin.la
./vlc-config -libs plugin libavcodec_plugin.la

Re: require no space between `-L' and `-lavcodec'

Posted: 03 Jul 2009 22:09
by velsd
# ./vlc-config --ldflags plugin libavcodec_plugin.la

# /vlc-config -libs plugin libavcodec_plugin.la
-lpthread /opt/sound/lib/ /opt/video/lib -L/opt/video/lib -L -lavcodec -lz -lbz2 -lfaac -lfaad -lmp3lame -lm -lxvidcore -ldl -lavutil -lm

Re: require no space between `-L' and `-lavcodec'

Posted: 04 Jul 2009 11:39
by Rémi Denis-Courmont
Looks like libtool does not support your LDFLAGS syntax.

Re: require no space between `-L' and `-lavcodec'

Posted: 04 Jul 2009 22:56
by velsd
ah... but this worked up until the version before this one, and I have always used this to compile vlc?

and

'./configure --help' does give

...
Some influential environment variables:
...
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
...