Recherche avancée

Médias (91)

Autres articles (70)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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

Sur d’autres sites (11116)

  • clang++ : error : linker command failed with exit code 1 (use -v to see invocation) [duplicate]

    1er avril 2020, par Pradeep Simba

    When I build ndk with ffmpeg it occurs error.

    



    enter image description here

    



    Android.mk file

    



    LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES += ./include
LOCAL_MODULE     := native-lib
LOCAL_CFLAGS := -DSTDC_HEADERS -std=c99
LOCAL_CFLAGS := -Wno-pointer-sign
LOCAL_ARM_MODE := arm
APP_OPTIM := release
LOCAL_SRC_FILES  := \
./native-lib.cpp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)


    



    native-lib.cpp file

    



    #include &#xA;#include <string>&#xA;&#xA;extern "C"&#xA;{&#xA;#include "libavcodec/avcodec.h"&#xA;#include "libavformat/avformat.h"&#xA;#include "libavutil/opt.h"&#xA;}&#xA;&#xA;extern "C" JNIEXPORT jstring JNICALL&#xA;Java_com_example_m_MainActivity_stringFromJNI(&#xA;    JNIEnv* env,&#xA;    jobject /* this */) {&#xA;std::string hello = "Hello from C&#x2B;&#x2B;";&#xA;av_register_all();&#xA;return env->NewStringUTF(hello.c_str());&#xA;}&#xA;</string>

    &#xA;&#xA;

    When I build ndk this error occurs.

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    D:\Github\n>ndk-build&#xA;Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.&#xA;[arm64-v8a] Compile&#x2B;&#x2B;      : native-lib &lt;= native-lib.cpp&#xA;[arm64-v8a] SharedLibrary  : libnative-lib.so&#xA;./obj/local/arm64-v8a/objs/native-lib/./libmp3lame/native-lib.o: In function `Java_com_example_m_MainActivity_stringFromJNI&#x27;:&#xA;D:\Github\n/jni/./libmp3lame/native-lib.cpp:16: undefined reference to `av_register_all&#x27;&#xA;clang&#x2B;&#x2B;: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;make: *** [D:/install/sdk/ndk/21.0.6113669/build//../build/core/build-binary.mk:725: obj/local/arm64-v8a/libnative-lib.so] Error 1&#xA;&#xA;D:\Github\n>ndk-build -v&#xA;GNU Make 4.2.1&#xA;Built for x86_64-w64-mingw32&#xA;Copyright (C) 1988-2016 Free Software Foundation, Inc.&#xA;License GPLv3&#x2B;: GNU GPL version 3 or later /gnu.org/licenses/gpl.html>&#xA;This is free software: you are free to change and redistribute it.&#xA;There is NO WARRANTY, to the extent permitted by law.&#xA;&#xA;D:\Github\n>&#xA;

    &#xA;&#xA;

    why it comes like this native-lib.cpp:16: undefined reference av_register_all ?

    &#xA;&#xA;

    I added all the required libs in my jni folder . but, why this error and this native-lib.cpp:16 : undefined reference av_register_all comes ?

    &#xA;&#xA;

    How can I solve this ?

    &#xA;

  • avformat/utils : make av_url_split search for hashmark as well to separate hostname

    3 février 2020, par Marton Balint
    avformat/utils : make av_url_split search for hashmark as well to separate hostname
    

    RFC 3986 states that the generic syntax uses the slash ("/"), question mark
    (" ?"), and number sign ("#") characters to delimit components that are
    significant to the generic parser's hierarchical interpretation of an
    identifier.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavformat/tests/url.c
    • [DH] libavformat/utils.c
    • [DH] tests/ref/fate/url
  • Evolution #4102 : Ordre des inclures dans cache/charger_plugins_options.php

    8 juillet 2019, par cam.lafit -

    Salut

    Ma solution n’est pas bonne non plus. On peut selon l’ordre d’appel devoir encapsuler le code d’un fichier options. Donc la solution de @placido est plus pertiente. Le patch suivant ne casse pas le comportement par défaut de SPIP et permet de charger avant un bout d’options.

    Soit le pluginA ayant besoin de surcharger les options de pluginB, si on fait pluginA/pre_pluginB_options.php alors l’ordre de chargement devrait être :

    • pluginA/pre_pluginB_options.php
    • pluginB/pluginB_options.php
    • pluginA/pluginA_options.php
    1. <span class="CodeRay"><span class="line head"><span class="head">--- </span><span class="filename"><sans nom="nom"></sans></span></span>
    2. <span class="line head"><span class="head">+++ </span><span class="filename"><sans nom="nom"></sans></span></span>
    3. <span class="line change"><span class="change">@@</span> -821,7 +821,25 <span class="change">@@</span></span>
    4.      $boutons = array();
    5.      $onglets = array();
    6.      $sign = "";
    7. <span class="line delete"><span class="delete">-</span></span>
    8. <span class="line insert"><span class="insert">+</span>    </span>
    9. <span class="line insert"><span class="insert">+</span>    /* pre fonctions/options charger un fichier avant celui du plugin concerné */</span>
    10. <span class="line insert"><span class="insert">+</span>    foreach ($ordre as $p => &#38;$info) {        </span>
    11. <span class="line insert"><span class="insert">+</span>        foreach($ordre as $plugin_pre_charge => $info_plugin_pre_charge) {        </span>
    12. <span class="line insert"><span class="insert">+</span>            $dir_type = $plugin_valides[$plugin_pre_charge]['dir_type'];</span>
    13. <span class="line insert"><span class="insert">+</span>            $plug = $plugin_valides[$plugin_pre_charge]['dir'];</span>
    14. <span class="line insert"><span class="insert">+</span>            $dir = constant($dir_type);</span>
    15. <span class="line insert"><span class="insert">+</span>            $root_dir_type = str_replace('_DIR_', '_ROOT_', $dir_type);</span>
    16. <span class="line insert"><span class="insert">+</span>            if (isset($plugin_valides[$plugin_pre_charge])) {</span>
    17. <span class="line insert"><span class="insert">+</span>                foreach ($contenu as $charge => $v) {        </span>
    18. <span class="line insert"><span class="insert">+</span>                    if (is_readable("$dir$plug/" . ($file = "pre_".$info['prefix'] . "_" . $charge . ".php"))) {</span>
    19. <span class="line insert"><span class="insert">+</span>                        $_file = $root_dir_type . ".'$plug/$file'";</span>
    20. <span class="line insert"><span class="insert">+</span>                        $contenu[$charge] .= "include_once_check($_file);\n";</span>
    21. <span class="line insert"><span class="insert">+</span>                    }                        </span>
    22. <span class="line insert"><span class="insert">+</span>                }</span>
    23. <span class="line insert"><span class="insert">+</span>            }</span>
    24. <span class="line insert"><span class="insert">+</span>        }</span>
    25. <span class="line insert"><span class="insert">+</span>    }</span>
    26. <span class="line insert"><span class="insert">+</span>    </span>
    27.      foreach ($ordre as $p => $info) {
    28.          // $ordre peur contenir des plugins en attente et non valides pour ce hit
    29.          if (isset($plugin_valides[$p])) {
    30.  
    31. </span>

    Télécharger