Recherche avancée

Médias (0)

Mot : - Tags -/api

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (39)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (8633)

  • Revision 38603 : [Experimental] des Big_pipes dans Zpip : define(’_Z_BIGPIPE’,true) ; ...

    5 juin 2010, par cedric@… — Log

    [Experimental] des Big_pipes dans Zpip : define(’_Z_BIGPIPE’,true) ; http://www.facebook.com/notes/facebook-engineering/bigpipe-pipelining-web-pages-for-high-performance/389414033919

  • Revision 33863 : gerer des socialtags en les conditionnant au fait que le visiteur provient ...

    20 décembre 2009, par fil@… — Log

    gerer des socialtags en les conditionnant au fait que le visiteur provient du site en question (facebook) ; gerer un badge facebook
    la doc arrive sur spip-contrib

  • How to add Qt to an existing C program and compile ?

    26 juin 2015, par El Sampsa

    I 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 ?