Skip to content

How do I compile this? #2

Open
Open

Description

@ari-weber

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

Activity

  1. Laamy commented on Sep 1, 2021

    @Laamy

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

  2. Laamy commented on Sep 1, 2021

    @Laamy

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

  3. johnBuffer commented on Sep 1, 2021

    @johnBuffer
    Owner

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

  4. Nedcotter commented on Sep 7, 2021

    @Nedcotter

    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

  5. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

    how do i specify where my sfml headers are located?

  6. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

    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

  7. johnBuffer commented on Sep 10, 2021

    @johnBuffer
    Owner

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

  8. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

    windows

  9. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

    should i put sfml in the path, or something?

  10. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

    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

  11. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

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

  12. johnBuffer commented on Sep 10, 2021

    @johnBuffer
    Owner

    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

  13. ShaneWooosh commented on Sep 10, 2021

    @ShaneWooosh

    what does "install" custom target mean?

  14. Nedcotter commented on Sep 10, 2021

    @Nedcotter

    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

  15. lordovthevoid commented on Dec 21, 2023

    @lordovthevoid

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions