
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (60)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (8492)
-
lavc/cbrt_tablegen : speed up tablegen
11 janvier 2016, par Ganesh Ajjanagaddelavc/cbrt_tablegen : speed up tablegen
This exploits an approach based on the sieve of Eratosthenes, a popular
method for generating prime numbers.Tables are identical to previous ones.
Tested with FATE with/without —enable-hardcoded-tables.
Sample benchmark (Haswell, GNU/Linux+gcc) :
prev :
7860100 decicycles in cbrt_tableinit, 1 runs, 0 skips
7777490 decicycles in cbrt_tableinit, 2 runs, 0 skips
[...]
7582339 decicycles in cbrt_tableinit, 256 runs, 0 skips
7563556 decicycles in cbrt_tableinit, 512 runs, 0 skipsnew :
2099480 decicycles in cbrt_tableinit, 1 runs, 0 skips
2044470 decicycles in cbrt_tableinit, 2 runs, 0 skips
[...]
1796544 decicycles in cbrt_tableinit, 256 runs, 0 skips
1791631 decicycles in cbrt_tableinit, 512 runs, 0 skipsBoth small and large run count given as this is called once so small run
count may give a better picture, small numbers are fairly consistent,
and there is a consistent downward trend from small to large runs,
at which point it stabilizes to a new value.Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com> -
How to add Qt to an existing C program and compile ?
26 juin 2015, par El SampsaI have a small Qt program I have compiled with qmake and make. When I launch make, I get the following commands for compilation :
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I/usr/lib/x86_64-linux-gnu -I/usr/include/SDL -I. -o simpleqt.o simpleqt.cpp
(.. lets call that (**)) and
g++ -m64 -Wl,-O1 -o qt simpleqt.o -L/usr/lib/x86_64-linux-gnu -lSDL -lX11 -lQtGui -lQtCore -lpthread
.. and the program is compiled without problems.
On the other hand, I have the ffmpeg library which has the "ffplay" program. I want to put some Qt things into ffplay. In the ffmpeg config files I tell to the make process (using "common.mak") that it should be verbose and when issuing "make ffplay", it gives me the following monster :
gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -I/home/sampsa/ffmpeg/build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/freetype2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -Wno-maybe-uninitialized -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -MMD -MF ffplay.d -MT ffplay.o -c -o ffplay.o ffplay.c
(lets call that monster (++)).
So far, so good, I have two commands, one (**) for compiling Qt programs and another one (++) for another project (in this case, ffmpeg’s ffplay)
How do I combine these two ?
I have tried merging the flags in (**) into command (++). It compiles OK, but the moment I am adding
#include <qtgui>
</qtgui>into "ffplay.c", all hell breaks loose and the compiler tells me (among many other things) :
In file included from /usr/include/qt4/QtCore/qobjectdefs.h:45:0,
from /usr/include/qt4/QtCore/qobject.h:47,
from /usr/include/qt4/QtCore/qabstracteventdispatcher.h:45,
from /usr/include/qt4/QtCore/QtCore:3,
from /usr/include/qt4/QtGui/QtGui:3,
from ffplay2.c:61 :
/usr/include/qt4/QtCore/qnamespace.h:51:1 : warning : return type defaults to ‘int’ [enabled by default]
QT_MODULE(Core)
^
/usr/include/qt4/QtCore/qnamespace.h:51:1 : warning : function declaration isn’t a prototype [-Wstrict-prototypes]
/usr/include/qt4/QtCore/qnamespace.h : In function ‘QT_MODULE’ :
/usr/include/qt4/QtCore/qnamespace.h:54:1 : error : unknown type name ‘namespace’
namespace
^
...
...If I combine flags in (**) to (++) and change the compiler from "gcc" to "g++", I get all kinds of errors, this time related to the "ffplay.c" source code.
What is going on ?
-
%configure - unknown option —build
18 janvier 2016, par Naftuli Tzvi KayI’m trying to build and package FFMPEG for Fedora 23 with my own compile options and everything.
Unfortunately, I’m trying to use the
%configure
directive and it isn’t working :Unknown option "--build=x86_64-redhat-linux-gnu".
See ./configure --help for available options.If I try to see what the
%configure
clause does, here’s what I see :CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules}" ; export FFLAGS ;
FCFLAGS="${FCFLAGS:--O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules}" ; export FCFLAGS ;
LDFLAGS="${LDFLAGS:--Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld}"; export LDFLAGS;
[ "1" = 1 ] && for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ; do
[ -f /usr/lib/rpm/redhat/$(basename $i) ] && /usr/bin/rm -f $i && /usr/bin/cp -fv /usr/lib/rpm/redhat/$(basename $i) $i ;
done ;
[ "1" = 1 ] && [ x != "x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld" ] &&
for i in $(find . -name ltmain.sh) ; do
/usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' $i
done ;
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu \
--program-prefix= \
--disable-dependency-tracking \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib64 \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/infoSince
%configure
tries to set the--build
parameter and FFMPEG doesn’t like that, it fails.However, I really want to get the
CFLAGS
andLDFLAGS
and all of the hardening options that come provided with the distribution without baking these into my SPEC file.Is there a way to override the
%configure
task to omit the--build
parameter and include everything else ?