Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (52)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10583)

  • build x264 failed on apple M1, No working C compiler found

    29 novembre 2021, par louxiu
      

    1. Apple M1, clang
    2. 


    


    Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


    


      

    1. x264 version x264-snapshot-20191217-2245

      


    2. 


    3. configure

      


    4. 


    


     ./configure --prefix=/tmp/  --enable-static


    


      

    1. config.log
    2. 


    


    checking for -Werror=unknown-warning-option... yes
checking for -mdynamic-no-pic... yes
x264 configure script
Command line options: "--prefix=/tmp/" "--enable-static"

checking whether gcc works... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c  -Wall -I. -I$(SRCPATH) -mdynamic-no-pic -arch armv7  -Werror=unknown-warning-option    -lm -arch armv7 -o conftest
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/lib/darwin/libclang_rt.osx.a, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/lib/darwin/libclang_rt.osx.a (5 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libm.tbd, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libm.tbd (3 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd (3 slices)
ld: dynamic main executables must link with libSystem.dylib for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
DIED: No working C compiler found.


    


  • How to resolve FFmpeg undefined symbols error when using libavformat in Dolphin

    24 septembre 2021, par Meh.

    MOVED FROM : https://superuser.com/questions/1676856/how-to-build-ffmpeg-with-apple-symbols?noredirect=1#comment2572799_1676856

    


    I'm trying to build FFmpeg 3.2.4 with OpenSSL >= 2.0.7 (3.0.0) from source so I can use it's binaries to build Dolphin-Emu.

    


    I just do this : ./configure --enable-gnutls and when I build with make -j5 (-j5 speeds up the process) then make install. When I use it in compiling Dolphin , I get an error somewhat like this :

    


    Undefined symbols for architecture x86_64:
  "_kCVImageBufferColorPrimaries_ITU_R_709_2", referenced from:
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
  "_kVDADecoderConfiguration_SourceFormat", referenced from:
  "_kCVImageBufferTransferFunction_ITU_R_2020", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
  "_kVDADecoderConfiguration_avcCData", referenced from:
  "_CMBlockBufferCopyDataBytes", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
      _vtenc_frame in libavcodec.a(videotoolboxenc.o)
  "_kCVImageBufferYCbCrMatrixKey", referenced from:
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
      _vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
  "_SSLSetCertificate", referenced from:
      _tls_open in libavformat.a(tls_securetransport.o)
  "_CMTimeMake", referenced from:
      _vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
  "_kCVPixelBufferWidthKey", referenced from:
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
  "_VDADecoderCreate", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
  "_kVTProfileLevel_H264_High_4_2", referenced from:
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
  "_kCVPixelBufferIOSurfacePropertiesKey", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
  "_kVTProfileLevel_H264_Baseline_1_3", referenced from:
      _vtenc_init in libavcodec.a(videotoolboxenc.o)
(example)


    


    These _kV(blahblahblah) symbols are provided by Apple... under <coremedia></coremedia>CoreMedia.h> so my mac should DEFINITELY have this. OpenSSL version is 3.0.0 as there's an error about _SSLSetCertificate not existing.

    &#xA;

    Does anyone have any ideas why this is throwing undefined symbols for existing symbols ? (My FFmpeg is compiled by clang whenever I use make, and I use gnutls(installed by brew) which should rely on openssl3.0)

    &#xA;

    Xcode version : 11.3.1 (Only has macos 10.15 SDK)

    &#xA;

    Linker command to link Dolphin and FFmpeg w/ OpenSSL binaries/libs

    &#xA;

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c&#x2B;&#x2B; -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/lib -Wl,-dead_strip,-dead_strip_dylibs CMakeFiles/dolphin-nogui.dir/Platform.cpp.o CMakeFiles/dolphin-nogui.dir/PlatformHeadless.cpp.o CMakeFiles/dolphin-nogui.dir/MainNoGUI.cpp.o -o ../../../Binaries/dolphin-emu-nogui  ../Core/libcore.a ../UICommon/libuicommon.a ../../../Externals/cpp-optparse/libcpp-optparse.a ../VideoBackends/Null/libvideonull.a ../VideoBackends/OGL/libvideoogl.a ../VideoBackends/Software/libvideosoftware.a ../VideoBackends/Vulkan/libvideovulkan.a ../VideoCommon/libvideocommon.a ../Core/libcore.a ../VideoBackends/Null/libvideonull.a ../VideoBackends/OGL/libvideoogl.a ../VideoBackends/Software/libvideosoftware.a ../VideoBackends/Vulkan/libvideovulkan.a ../VideoCommon/libvideocommon.a ../AudioCommon/libaudiocommon.a /usr/local/lib/libpulse.dylib ../../../Externals/soundtouch/libSoundTouch.a ../../../Externals/FreeSurround/libFreeSurround.a ../../../Externals/cubeb/libcubeb.a -framework AudioUnit -framework CoreAudio -framework CoreServices ../DiscIO/libdiscio.a /usr/lib/libbz2.dylib ../../../Externals/liblzma/liblzma.a ../../../Externals/zstd/libzstd.a ../InputCommon/libinputcommon.a -framework Carbon -framework ForceFeedback /usr/local/lib/libSDL2.dylib -framework Cocoa ../../../Externals/SFML/libsfml-network.a ../../../Externals/SFML/libsfml-system.a ../../../Externals/LZO/liblzo2.a -framework CoreServices -framework IOBluetooth ../../../Externals/mGBA/mgba/libmgba.a -framework Foundation -lm ../../../Externals/hidapi/libhidapi.a ../../../Externals/glslang/libglslang.a ../../../Externals/xxhash/libxxhash.a ../../../Externals/imgui/libimgui.a /usr/local/lib/libavformat.a /usr/local/lib/libavcodec.a /usr/local/lib/libswscale.a /usr/local/lib/libavutil.a ../Common/libcommon.a ../../../Externals/enet/libenet.a ../../../Externals/mbedtls/library/libmbedtls.a ../../../Externals/mbedtls/library/libmbedx509.a ../../../Externals/mbedtls/library/libmbedcrypto.a /usr/lib/libcurl.dylib /usr/lib/libiconv.dylib ../../../Externals/libpng/libpng.a -framework AppKit ../../../Externals/miniupnpc/libminiupnpc.a ../../../Externals/pugixml/libpugixml.a ../../../Externals/fmt/libfmt.a ../../../Externals/Bochs_disasm/libbdisasm.a ../../../Externals/libusb/libusb.a -framework CoreFoundation -framework IOKit /usr/lib/libobjc.dylib ../../../Externals/minizip/libminizip.a /usr/lib/libz.dylib ../../../Externals/discord-rpc/src/libdiscord-rpc.a -lpthread -framework AppKit &#xA;

    &#xA;

  • How to add a dependency for a package ?

    25 septembre 2021, par Meh.

    I just built and installed FFmpeg (./configure --disable-asm).
    &#xA;And I need to use libavformat in my C++ project.

    &#xA;

    I use FindFFmpeg.cmake, and when I build, I get a bunch of undefined symbol errors so I have to find libraries :

    &#xA;

        find_package(FFmpeg COMPONENTS avcodec avformat avutil swresample swscale)&#xA;    find_library(COREMEDIA_LIBRARY CoreMedia)&#xA;    find_library(VIDEOTOOLBOX_LIBRARY VideoToolbox)&#xA;    find_library(COREVIDEO_LIBRARY CoreVideo)&#xA;    find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)&#xA;    find_library(SECURITY_LIBRARY Security)&#xA;&#xA;## In another file:&#xA;&#xA;  target_link_libraries(videocommon PRIVATE&#xA;    FFmpeg::avcodec&#xA;    FFmpeg::avformat&#xA;    FFmpeg::avutil&#xA;    FFmpeg::swscale&#xA;    FFmpeg::swresample&#xA;    ${COREMEDIA_LIBRARY}&#xA;    ${VIDEOTOOLBOX_LIBRARY}&#xA;    ${COREVIDEO_LIBRARY}&#xA;    ${AUDIOTOOLBOX_LIBRARY}&#xA;    ${SECURITY_LIBRARY}&#xA;  )&#xA;&#xA;

    &#xA;

    However, I still get errors from libavformat.a(tls_securetransport.o) :

    &#xA;

      "_SSLRead", referenced from:&#xA;      _tls_read in libavformat.a(tls_securetransport.o)&#xA;  "_SSLCreateContext", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLSetCertificate", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLSetIOFuncs", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLSetSessionOption", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLSetPeerDomainName", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SecIdentityCreate", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SecTrustEvaluate", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SecTrustSetAnchorCertificates", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLClose", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;      _tls_close in libavformat.a(tls_securetransport.o)&#xA;  "_SSLHandshake", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLSetConnection", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;  "_SSLCopyPeerTrust", referenced from:&#xA;      _tls_open in libavformat.a(tls_securetransport.o)&#xA;

    &#xA;

    This is the #include part from the file in question tls_securetransport.c :

    &#xA;

    #include &#xA;&#xA;#include "avformat.h"&#xA;#include "avio_internal.h"&#xA;#include "internal.h"&#xA;#include "network.h"&#xA;#include "os_support.h"&#xA;#include "url.h"&#xA;#include "tls.h"&#xA;#include "libavcodec/internal.h"&#xA;#include "libavutil/avstring.h"&#xA;#include "libavutil/opt.h"&#xA;#include "libavutil/parseutils.h"&#xA;&#xA;#include <security></security>Security.h>&#xA;#include <security></security>SecureTransport.h>&#xA;#include <corefoundation></corefoundation>CoreFoundation.h>&#xA;

    &#xA;

    Why is this happening ?

    &#xA;

    I also get the same result if I were to build with OpenSSL or LibreSSL. What is causing the problem ? My project or incorrectly building FFmpeg ?

    &#xA;

    If I were to use LibreSSL :

    &#xA;

    #cmakelists.txt:&#xA;find_package(LibreSSL)&#xA;&#xA;#linker&#xA;  target_link_libraries(videocommon PRIVATE&#xA;    FFmpeg::avcodec&#xA;    FFmpeg::avformat&#xA;    FFmpeg::avutil&#xA;    FFmpeg::swscale&#xA;    FFmpeg::swresample&#xA;    ${LIBRESSL_LIBRARIES} &#xA;    ${COREMEDIA_LIBRARY}&#xA;    ${VIDEOTOOLBOX_LIBRARY}&#xA;    ${COREVIDEO_LIBRARY}&#xA;    ${AUDIOTOOLBOX_LIBRARY}&#xA;  )&#xA;&#xA;#full error&#xA;Undefined symbols for architecture x86_64:&#xA;  "_tls_config_error", referenced from:&#xA;      _ff_tls_open in libavformat.a(tls_libtls.o)&#xA;  "_tls_config_insecure_noverifytime", referenced from:&#xA;      _ff_tls_open in libavformat.a(tls_libtls.o)&#xA;  "_tls_accept_cbs", referenced from:&#xA;      _ff_tls_open in libavformat.a(tls_libtls.o)&#xA;  "_tls_connect_cbs", referenced from:&#xA;      _ff_tls_open in libavformat.a(tls_libtls.o)&#xA;

    &#xA;