
Recherche avancée
Autres articles (62)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
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 -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (12156)
-
Complie FFMpeg with Xcode5 preview's clang
2 août 2013, par YeungWith release of IOS7 beta, I would like to try compiling ffmpeg for ios7.
There is a lots answer like this. It use the
llvm-gcc
as compiler.However, seem like Xcode 5 would not include
llvm-gcc
. Then I have no choice but to useclang
to compile.I use the following to config :
export IOS_SDK="/Applications/Xcode5-DP4.app/Contents/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"
./configure $CONFIG_DISABLE_FLAG $CONFIG_ENABLE_FLAG \
--arch=arm \
--target-os=darwin \
--cc=/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang \
--as='gas-preprocessor.pl /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' \
--ar=/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar \
--sysroot=$IOS_SDK \
--cpu=cortex-a8 \
--extra-cflags="-arch armv7 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot ${IOS_SDK} -I${IOS_SDK}/usr/include" \
--extra-ldflags="-arch armv7 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot ${IOS_SDK} -L${IOS_SDK}/usr/lib" \
--enable-picclang
would probably not take CFLAGS other than-arch -isysroot -I
into account, but let it be.I seems it can complie but I encounter this. Actually, I don't understand the answer in this question. Using the external assembler ? Yes, the toolchains do have a assembler stated it is GNU version 1.38. Using
--as=/Application/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as
, it even cannot pass the check as test. It fall back to use'gas-preprocessor.pl $CC'
Here is the config log to cannot pass :
check_asm armv6t2 "movt r0, #0"
check_as
BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
1 void foo(void){ __asm__ volatile("movt r0, #0"); }
END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don't understand '-' flag!
check_asm armvfp "fadds s0, s0, s0"
check_as
BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
1 void foo(void){ __asm__ volatile("fadds s0, s0, s0"); }
END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don't understand '-' flag!
check_asm neon "vadd.i16 q0, q0, q0"
check_as
BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
1 void foo(void){ __asm__ volatile("vadd.i16 q0, q0, q0"); }
END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don't understand '-' flag!
check_asm vfpv3 "vmov.f32 s0, #1.0"
check_as
BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
1 void foo(void){ __asm__ volatile("vmov.f32 s0, #1.0"); }
END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don't understand '-' flag!
check_asm asm_mod_y "vmul.i32 d0, d0, %y0" :: "x"(0)
check_as
BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
1 void foo(void){ __asm__ volatile("vmul.i32 d0, d0, %y0" :: "x"(0)); }
END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don't understand '-' flag!
check_asm gnu_as ".macro m n
\n:.int 0
.endm
m x"Yep, with config
--disable-asm
would complie but it probably not a option. -
How to specify a non default type when calling a FFmpeg library using ctypes
1er août 2013, par Jim RambergI am calling an FFMPEG library called avformat_alloc_context() that returns a pointer to type AVFormatContext. The structure AVFormatContext is defined in the avformat library.
Obviously ; this is not one ctypes default types and results in an error when I try to pass a reference to it to another ffmpeg library further down in my code.
Is there a way to add in the the classes defined inside of the library ? I read through what documentation I could find online and was not able to find a good answer to this question.
-
FFMPEG build on eclipse - 2 structs of the same name overlapping on a build
30 juillet 2013, par ApolloKingI am currently working on the libav api provided by FFMPEG, and I have successfully compiled and installed FFMPEG onto my OS (Via ./configure, make, make install) Now I want to run it on Eclipse, so I imported the latest ffmpeg build and tried to build it (with ./configure).
I built ffmpeg, but there are two structs overlapping one another. ffmpeg.h contains a struct outputstream while another file in the libavfolder called smoothstreamingenc.h contains another struct of the same name : outputstream.
The question is, what must be done to resolve this without messing up the ffmpeg build ?