You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone having issues with the compilation, to compile just navigate to the main directory of 'ClothSimulation'
e.g. for me its ned@debian:~/ClothSimulation$
Here open a terminal and first make sure you have cmake, build-essential and gdb installed, if not you can just run;
sudo apt-get install cmake build-essential gdb
Now in the main directory run cmake .
Next run make
Then you can run the script with sudo ./Cloth
it gives me that project files may be invalid, no wonder, cause i didn't even include, the path where to get sfml headers, and i don't really know how to
What I mean by installed is "being known to cmake". To do so I personally build it myself and then build the "install" custom target in the solution generated by cmake
A custom Target is a file which will run install and some other script after.
e.g. In the ClothSimulation that would be the cmake_install.cmake as i show in the top right here:
I'm a little late to the party but I hope this helps someone. If you've downloaded a stable version of SFML, you can modify the SFML_DIR parameter in CMake to identify where you have SFML "installed", similar as such:
Activity
Laamy commentedon Sep 1, 2021
Visual Studio Code with CMake C++ and a few other exts
Laamy commentedon Sep 1, 2021
Pretty sure you need these "C/C++" "C/C++ Include Guard
" "CMake" & "CMake Tools"
johnBuffer commentedon Sep 1, 2021
You can have a look at this https://github.com/johnBuffer/AntSimulator#compilation, the procedure is similar.
Nedcotter commentedon Sep 7, 2021
For anyone having issues with the compilation, to compile just navigate to the main directory of 'ClothSimulation'
e.g. for me its
ned@debian:~/ClothSimulation$Here open a terminal and first make sure you have cmake, build-essential and gdb installed, if not you can just run;
sudo apt-get install cmake build-essential gdbNow in the main directory run
cmake .Next run
makeThen you can run the script with
sudo ./ClothShaneWooosh commentedon Sep 10, 2021
how do i specify where my sfml headers are located?
ShaneWooosh commentedon Sep 10, 2021
it gives me that project files may be invalid, no wonder, cause i didn't even include, the path where to get sfml headers, and i don't really know how to
johnBuffer commentedon Sep 10, 2021
If SFML is intalled CMake will find it automatically. What os are you on ?
ShaneWooosh commentedon Sep 10, 2021
windows
ShaneWooosh commentedon Sep 10, 2021
should i put sfml in the path, or something?
ShaneWooosh commentedon Sep 10, 2021
what do you mean by installed? just being on my computer? Yes it is installed, i used it quite many times for my sfml projects
ShaneWooosh commentedon Sep 10, 2021
tho, it's not in the same folder as cmake, not sure how cmake searches for the needed libraries
johnBuffer commentedon Sep 10, 2021
What I mean by installed is "being known to cmake". To do so I personally build it myself and then build the "install" custom target in the solution generated by cmake
ShaneWooosh commentedon Sep 10, 2021
what does "install" custom target mean?
Nedcotter commentedon Sep 10, 2021
A custom Target is a file which will run install and some other script after.

e.g. In the ClothSimulation that would be the
cmake_install.cmakeas i show in the top right here:lordovthevoid commentedon Dec 21, 2023
I'm a little late to the party but I hope this helps someone. If you've downloaded a stable version of SFML, you can modify the SFML_DIR parameter in CMake to identify where you have SFML "installed", similar as such: