Code Monkey home page Code Monkey logo

Comments (15)

Laamy avatar Laamy commented on August 30, 2024

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

from clothsimulation.

Laamy avatar Laamy commented on August 30, 2024

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

from clothsimulation.

johnBuffer avatar johnBuffer commented on August 30, 2024

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

from clothsimulation.

Nedcotter avatar Nedcotter commented on August 30, 2024

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

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

how do i specify where my sfml headers are located?

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

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

from clothsimulation.

johnBuffer avatar johnBuffer commented on August 30, 2024

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

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

windows

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

should i put sfml in the path, or something?

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

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

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

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

from clothsimulation.

johnBuffer avatar johnBuffer commented on August 30, 2024

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

from clothsimulation.

ShaneWooosh avatar ShaneWooosh commented on August 30, 2024

what does "install" custom target mean?

from clothsimulation.

Nedcotter avatar Nedcotter commented on August 30, 2024

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

from clothsimulation.

lordovthevoid avatar lordovthevoid commented on August 30, 2024

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

from clothsimulation.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.