SFML community forums

Help => General => Topic started by: TraverseBiTree on April 12, 2021, 04:27:44 pm

Title: I just can't cmake SFML from source , help me .
Post by: TraverseBiTree on April 12, 2021, 04:27:44 pm
OS: Windows 10 20H2
CMake gui: 3.20.1
SFML ver: 2.5.1
Compiler: mingW-w64 、TDM 、MSVS2019
description:
I'm compiling SFML with CMake , follows the guide 【https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php (https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php)】 online . And I've set all the neccessary environment variables .

Then I use CMake gui , set paths of source code and output , click 'Configure' button .
An error occurred while executing to VORBIS and failed . Just like the image shows.

(https://i.loli.net/2021/04/12/dY9zQlJSAwtPkuV.jpg)

Then I use command line and `make` ,All of the libs are generated except audio . Who can tell me why??
Title: Re: I just can't cmake SFML from source , help me .
Post by: eXpl0it3r on April 13, 2021, 10:50:46 am
It's a warning, but SFML should still build correctly.

The issue is fixed on the master branch. As such you may want to grab the source code from the master branch.
Title: Re: I just can't cmake SFML from source , help me .
Post by: TraverseBiTree on April 13, 2021, 02:40:55 pm
Thank you very much. I downloaded the source from github and I successfully cmaked the file.