Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I compile this? #2

Open
ari-weber opened this issue Sep 1, 2021 · 15 comments
Open

How do I compile this? #2

ari-weber opened this issue Sep 1, 2021 · 15 comments

Comments

@ari-weber
Copy link

I have no idea how to compile this, nothing I have found online works at all...

@Laamy
Copy link

Laamy commented Sep 1, 2021

Visual Studio Code with CMake C++ and a few other exts

@Laamy
Copy link

Laamy commented Sep 1, 2021

Pretty sure you need these "C/C++" "C/C++ Include Guard
" "CMake" & "CMake Tools"

@johnBuffer
Copy link
Owner

You can have a look at this https://github.com/johnBuffer/AntSimulator#compilation, the procedure is similar.

@Nedcotter
Copy link

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

@ShaneWooosh
Copy link

how do i specify where my sfml headers are located?

@ShaneWooosh
Copy link

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
Copy link
Owner

If SFML is intalled CMake will find it automatically. What os are you on ?

@ShaneWooosh
Copy link

windows

@ShaneWooosh
Copy link

should i put sfml in the path, or something?

@ShaneWooosh
Copy link

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
Copy link

tho, it's not in the same folder as cmake, not sure how cmake searches for the needed libraries

@johnBuffer
Copy link
Owner

johnBuffer commented 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
Copy link

what does "install" custom target mean?

@Nedcotter
Copy link

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:
image

@lordovthevoid
Copy link

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:

Screenshot 2023-12-21 164501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants