
Recherche avancée
Autres articles (66)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (6574)
-
Unable to link against FFmpeg libaries
28 octobre 2015, par CodyI tried to build this, but always got link-time error.
#include <libavutil></libavutil>log.h>
int main(int argc, char *argv[])
{
::av_log_set_flags(AV_LOG_SKIP_REPEATED);
return 0;
}My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was...
$ ./configure --prefix=/usr/local --disable-static --enable-shared \
> --extra-ldflags='-Wl,-rpath=/usr/local/lib'The link-error is as follows.
$ g++ foo.cpp -D__STDC_CONSTANT_MACROS -Wall \
> -Wl,-rpath=/usr/local/lib \
> $(pkg-config --cflags --libs libavutil)
/tmp/ccKzgEFb.o: In function `main':
foo.cpp:(.text+0x17): undefined reference to `av_log_set_flags(int)'
collect2: error: ld returned 1 exit statuswhere the output of
pkg-config
is...$ pkg-config --cflags --libs libavutil
-I/usr/local/include -L/usr/local/lib -lavutilThe
objdump
shows that the shared object libavutil.so does haveav_log_set_flogs
inside.$ objdump --dynamic-syms /usr/local/lib/libavutil.so | grep 'av_log_set_flags'
000260f0 g DF .text 0000000a LIBAVUTIL_54 av_log_set_flagsPlease note that the
g++
command used to build the above application had a linker option-Wl,-rpath=/usr/local/lib
, though it still doesn’t work. Also, I’ve tried to monitor withinotifywait
if the other version provided by the distro were called. They were not, and the one being opened during execution ofg++
was /usr/local/lib/libavutil.so.Summary :
-
/usr/local/lib/libavutil.so does have the symbol.
-
-rpath
was used to force to link against the shared library. -
Why link-time error ? T_T
Any suggestion or information would be highly appreciated ! Thanks !
REEDIT :
ffplay
works fine andldd
shows it use /usr/local/lib/libavutil.so. So, the libraries seems not broken, and the problem becomes how to build my own codes to use the libraries. -
-
Unable to link against FFmpeg libaries
2 mars 2023, par CodyI tried to build this, but always got link-time error.



#include <libavutil></libavutil>log.h> 
int main(int argc, char *argv[])
{
 ::av_log_set_flags(AV_LOG_SKIP_REPEATED);
 return 0;
}




My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was...



$ ./configure --prefix=/usr/local --disable-static --enable-shared \
> --extra-ldflags='-Wl,-rpath=/usr/local/lib'




The link-error is as follows.



$ g++ foo.cpp -D__STDC_CONSTANT_MACROS -Wall \
> -Wl,-rpath=/usr/local/lib \
> $(pkg-config --cflags --libs libavutil)
/tmp/ccKzgEFb.o: In function `main':
foo.cpp:(.text+0x17): undefined reference to `av_log_set_flags(int)'
collect2: error: ld returned 1 exit status




where the output of
pkg-config
is...


$ pkg-config --cflags --libs libavutil
-I/usr/local/include -L/usr/local/lib -lavutil




The
objdump
shows that the shared object libavutil.so does haveav_log_set_flogs
inside.


$ objdump --dynamic-syms /usr/local/lib/libavutil.so | grep 'av_log_set_flags'
000260f0 g DF .text 0000000a LIBAVUTIL_54 av_log_set_flags




Please note that the
g++
command used to build the above application had a linker option-Wl,-rpath=/usr/local/lib
, though it still doesn't work. Also, I've tried to monitor withinotifywait
if the other version provided by the distro were called. They were not, and the one being opened during execution ofg++
was /usr/local/lib/libavutil.so.


Summary :



- 

-
/usr/local/lib/libavutil.so does have the symbol.
-
-rpath
was used to force to link against the shared library. -
Why link-time error ? T_T









Any suggestion or information would be highly appreciated ! Thanks !



REEDIT :
ffplay
works fine andldd
shows it use /usr/local/lib/libavutil.so. So, the libraries seems not broken, and the problem becomes how to build my own codes to use the libraries.

-
-
Revision 17782 : update windows link flags
18 janvier 2011, par j — Logupdate windows link flags