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

*nix specific usage questions
velsd
Blank Cone
Blank Cone
Posts: 15
Joined: 23 Jan 2009 14:27

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

Postby velsd » 02 Jul 2009 15:42

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15336
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 02 Jul 2009 16:59

Can you provide the result of these two?

./vlc-config --ldflags plugin libavcodec_plugin.la
./vlc-config -libs plugin libavcodec_plugin.la
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

velsd
Blank Cone
Blank Cone
Posts: 15
Joined: 23 Jan 2009 14:27

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

Postby velsd » 03 Jul 2009 22:09

# ./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

Rémi Denis-Courmont
Developer
Developer
Posts: 15336
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 04 Jul 2009 11:39

Looks like libtool does not support your LDFLAGS syntax.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

velsd
Blank Cone
Blank Cone
Posts: 15
Joined: 23 Jan 2009 14:27

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

Postby velsd » 04 Jul 2009 22:56

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>
...


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 37 guests