
Recherche avancée
Autres articles (52)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications 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, parCertains 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, parPré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- 

- Apple M1, clang




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



- 

-
x264 version x264-snapshot-20191217-2245


-
configure








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



- 

- config.log




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
withOpenSSL >= 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 withmake -j5
(-j5 speeds up the process) thenmake 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.

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)

Xcode version : 11.3.1 (Only has macos 10.15 SDK)


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


/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -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 



-
How to add a dependency for a package ?
25 septembre 2021, par Meh.I just built and installed FFmpeg (
./configure --disable-asm
).

And I need to use libavformat in my C++ project.

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

find_package(FFmpeg COMPONENTS avcodec avformat avutil swresample swscale)
 find_library(COREMEDIA_LIBRARY CoreMedia)
 find_library(VIDEOTOOLBOX_LIBRARY VideoToolbox)
 find_library(COREVIDEO_LIBRARY CoreVideo)
 find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
 find_library(SECURITY_LIBRARY Security)

## In another file:

 target_link_libraries(videocommon PRIVATE
 FFmpeg::avcodec
 FFmpeg::avformat
 FFmpeg::avutil
 FFmpeg::swscale
 FFmpeg::swresample
 ${COREMEDIA_LIBRARY}
 ${VIDEOTOOLBOX_LIBRARY}
 ${COREVIDEO_LIBRARY}
 ${AUDIOTOOLBOX_LIBRARY}
 ${SECURITY_LIBRARY}
 )




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

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



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

#include 

#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include "url.h"
#include "tls.h"
#include "libavcodec/internal.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"

#include <security></security>Security.h>
#include <security></security>SecureTransport.h>
#include <corefoundation></corefoundation>CoreFoundation.h>



Why is this happening ?


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 ?


If I were to use LibreSSL :


#cmakelists.txt:
find_package(LibreSSL)

#linker
 target_link_libraries(videocommon PRIVATE
 FFmpeg::avcodec
 FFmpeg::avformat
 FFmpeg::avutil
 FFmpeg::swscale
 FFmpeg::swresample
 ${LIBRESSL_LIBRARIES} 
 ${COREMEDIA_LIBRARY}
 ${VIDEOTOOLBOX_LIBRARY}
 ${COREVIDEO_LIBRARY}
 ${AUDIOTOOLBOX_LIBRARY}
 )

#full error
Undefined symbols for architecture x86_64:
 "_tls_config_error", referenced from:
 _ff_tls_open in libavformat.a(tls_libtls.o)
 "_tls_config_insecure_noverifytime", referenced from:
 _ff_tls_open in libavformat.a(tls_libtls.o)
 "_tls_accept_cbs", referenced from:
 _ff_tls_open in libavformat.a(tls_libtls.o)
 "_tls_connect_cbs", referenced from:
 _ff_tls_open in libavformat.a(tls_libtls.o)