sfml building using cmake

can someone guide me building sfml?
im stuck in configuring, a window always pop up with error
"error in configuration process, project files maybe invalid"
i search a lot in google but only see ogre , xwidget, and others

EDIT: set PATH=%PATH%;your_mingw_folder\bin
what does "PATH=%PATH%" mean?
Last edited on
what does "PATH=%PATH%" mean?

This is the command you use to modify your path environment variable.

from the command line type PATH=%PATH%;mingw/bin

mingw/bin being the full path to mingw/bin whatever that happens to be probably c:/mingw/bin. if your using codeblocks it would be more like C:/Program Files (x86)/CodeBlocks/mingw/bin
Last edited on
@Yanson
hello, thanks for the help

CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/Platform/Windows-GNU.cmake:185 (message):
Disabling CMAKE_GNUtoMS option because CMAKE_GNUtoMS_VCVARS is not set.
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/Platform/Windows-GNU-C-ABI.cmake:1 (__windows_compiler_gnu_abi)
C:/Program Files (x86)/CMake/share/cmake-3.2/Modules/CMakeCInformation.cmake:73 (include)


this is now my problem
C:/Program Files (x86)/CodeBlocks/mingw/bin 


when i type them in cmd as:
set C:/Program Files (x86)/CodeBlocks/mingw/bin


it says environment variable C:/Program Files (x86)/CodeBlocks/mingw/bin not defined
when i type them in cmd as:
set C:/Program Files (x86)/CodeBlocks/mingw/bin

this command is not correct


set PATH=%PATH%; C:/Program Files (x86)/CodeBlocks/mingw/bin

after you do this from the command line type gcc --version if it says gcc is not recognized as an internal or external command then there was a problem, and you need to try again.


also you may want to save your current path somewhere incase something goes wrong.

from the command line type PATH then press enter. Copy the result to a txt file.
@Yanson
thank you, i already compiled the sfml source code,
but now my problem is when i compile program using sfml
this is my error
||=== Build: Release in SFML_YT (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lsfml-graphics|
ld.exe||cannot find -lsfml-window|
ld.exe||cannot find -lsfml-system|
ld.exe||cannot find -lsfml-audio|
ld.exe||cannot find -lsfml-system|
ld.exe||cannot find -lsfml-network|
ld.exe||cannot find -lsfml-graphics|
||=== Build failed: 7 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
I already setup the project build option
Topic archived. No new replies allowed.