En fait, j'avais essayé d'utiliser le script build.sh mais la commande
sh build.sh
m'affichait:
build.sh: 14: build.sh: Syntax error: "(" unexpected
Je viens de comprender qu'il faut que je fasse:
./build.sh linux
Peut-être que c'était expliqué dans la doc, je dois l'avouer j'ai pas encore lu wiki entièrement^^
Donc j'ai lancé le script build.sh and j'ai choisis l'option 1, ça compile la SFML puis arrivé à sfeMovie, ça me sort:
[ 96%] [ 96%] [ 96%] [ 96%] Building CXX object CMakeFiles/sfeMovie.dir/src/Movie.cpp.o
Building CXX object CMakeFiles/sfeMovie.dir/src/Movie_audio.cpp.o
Building CXX object CMakeFiles/sfeMovie.dir/src/utils.cpp.o
Building CXX object CMakeFiles/sfeMovie.dir/src/Movie_video.cpp.o
[ 97%] Building CXX object CMakeFiles/sfeMovie.dir/src/Condition.cpp.o
/home/sonkun/Desktop/Yalir-sfeMovie-9352d20/src/Movie_audio.cpp: In member function ‘void sfe::Movie_audio::decodeFrontFrame(sf::SoundStream::Chunk&)’:
/home/sonkun/Desktop/Yalir-sfeMovie-9352d20/src/Movie_audio.cpp:237:10: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /home/sonkun/Desktop/Yalir-sfeMovie-9352d20/deps/headers/libavcodec/avcodec.h:4245) [-Wdeprecated-declarations]
/home/sonkun/Desktop/Yalir-sfeMovie-9352d20/src/Movie_audio.cpp:239:35: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /home/sonkun/Desktop/Yalir-sfeMovie-9352d20/deps/headers/libavcodec/avcodec.h:4245) [-Wdeprecated-declarations]
[ 98%] Building CXX object CMakeFiles/sfeMovie.dir/src/Unix/ConditionImpl.cpp.o
Linking CXX shared library libsfeMovie.so
/usr/bin/ld: /home/sonkun/Desktop/Yalir-sfeMovie-9352d20/deps/ffmpeg-build/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_aac_demuxer' can not be used when making a shared object; recompile with -fPIC
/home/sonkun/Desktop/Yalir-sfeMovie-9352d20/deps/ffmpeg-build/libavformat.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libsfeMovie.so.1.0.0] Error 1
make[1]: *** [CMakeFiles/sfeMovie.dir/all] Error 2
make: *** [all] Error 2
*** an error occured, aborting.
Je devine que c'est parce que mon OS est du 64bits. J'essairais sur un os 32bits demain.