Bonjour,
J’essaie de compiler la dernière version de la sfml2 en utilisant les paramètre par défaut de cmake avec un makefile unix et j'ai des erreurs lors de la compilation du module audio.
[ 95%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundBufferRecorder.cpp.o
[ 96%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.o
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:199:48: error: use of undeclared identifier 'SF_FORMAT_OGG'
fileInfos.format = format | (format == SF_FORMAT_OGG ? SF_FORMAT_VORBIS : SF_FORMAT_PCM_16);
^
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:199:64: error: use of undeclared identifier 'SF_FORMAT_VORBIS'
fileInfos.format = format | (format == SF_FORMAT_OGG ? SF_FORMAT_VORBIS : SF_FORMAT_PCM_16);
^
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:266:27: error: use of undeclared identifier 'SF_FORMAT_VORBIS'
if (fileInfo.format & SF_FORMAT_VORBIS)
^
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:302:41: error: use of undeclared identifier 'SF_FORMAT_WVE'
if (toLower(ext) == "wve" ) return SF_FORMAT_WVE;
^
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:303:41: error: use of undeclared identifier 'SF_FORMAT_OGG'
if (toLower(ext) == "ogg" ) return SF_FORMAT_OGG;
^
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:304:41: error: use of undeclared identifier 'SF_FORMAT_MPC2K'
if (toLower(ext) == "mpc2k") return SF_FORMAT_MPC2K;
^
/Users/Canadadry/Downloads/LaurentGomila-SFML-6e81dab/src/SFML/Audio/SoundFile.cpp:305:41: error: use of undeclared identifier 'SF_FORMAT_RF64'; did you mean 'SF_FORMAT_W64'?
if (toLower(ext) == "rf64" ) return SF_FORMAT_RF64;
^~~~~~~~~~~~~~
SF_FORMAT_W64
/Library/Frameworks/sndfile.framework/Headers/sndfile.h:67:2: note: 'SF_FORMAT_W64' declared here
SF_FORMAT_W64 = 0x0B0000, /* Sonic Foundry's 64 bit RIFF/WAV */
^
7 errors generated.
make[2]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundFile.cpp.o] Error 1
make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
make: *** [all] Error 2
Merci.