Coder Social home page Coder Social logo

Comments (13)

johnBuffer avatar johnBuffer commented on June 19, 2024 2

Hi,
If you are on Windows, you can try this link https://github.com/johnBuffer/AntSimulator/releases/download/v1.2/AntsSimulator.zip
I just added it under the video.

from antsimulator.

johnBuffer avatar johnBuffer commented on June 19, 2024 1

For arch you will need to install SFML with pacman (https://archlinux.org/packages/community/x86_64/sfml/) and build the project with cmake. Are you familiar with this process ?

from antsimulator.

johnBuffer avatar johnBuffer commented on June 19, 2024 1

I will add an installation guide to the readme soon

from antsimulator.

charan-nunnabhatla avatar charan-nunnabhatla commented on June 19, 2024

What about Linux(Arch), I really wanna try THESE

from antsimulator.

locxeu avatar locxeu commented on June 19, 2024

That relly cool bro. Great work!!!

from antsimulator.

tnoktkm avatar tnoktkm commented on June 19, 2024

Its so cool! Im excited! Now I can study for you project programming own project in cpp :)

from antsimulator.

gururani-abhishek avatar gururani-abhishek commented on June 19, 2024

For arch you will need to install SFML with pacman (https://archlinux.org/packages/community/x86_64/sfml/) and build the project with cmake. Are you familiar with this process ?

No, can you please help me with it. I'm using ubuntu.

from antsimulator.

charan-nunnabhatla avatar charan-nunnabhatla commented on June 19, 2024

For arch you will need to install SFML with pacman (https://archlinux.org/packages/community/x86_64/sfml/) and build the project with cmake. Are you familiar with this process ?

Nope. But I really wanna try.....can you explain it....

from antsimulator.

charan-nunnabhatla avatar charan-nunnabhatla commented on June 19, 2024

Thank you very much. @johnBuffer

from antsimulator.

johnBuffer avatar johnBuffer commented on June 19, 2024

Just added more detailed instructions in the readme

from antsimulator.

charan-nunnabhatla avatar charan-nunnabhatla commented on June 19, 2024

@johnBuffer

Somtin gone wrong.......

[chitti@Thor build]$ make
Scanning dependencies of target AntSimulator
[ 25%] Building CXX object CMakeFiles/AntSimulator.dir/src/display_manager.cpp.o
In file included from /home/chitti/Documents/AntSimulator-master/include/marker.hpp:2,
from /home/chitti/Documents/AntSimulator-master/include/markers_grid.hpp:4,
from /home/chitti/Documents/AntSimulator-master/include/world.hpp:6,
from /home/chitti/Documents/AntSimulator-master/include/display_manager.hpp:4,
from /home/chitti/Documents/AntSimulator-master/src/display_manager.cpp:1:
/home/chitti/Documents/AntSimulator-master/include/config.hpp: In static member function ‘static void DefaultConf::loadTextures()’:
/home/chitti/Documents/AntSimulator-master/include/config.hpp:25:3: error: ‘Conf’ has not been declared
25 | Conf::ANT_TEXTURE = std::make_sharedsf::Texture();
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:26:3: error: ‘Conf’ has not been declared
26 | Conf::ANT_TEXTURE->loadFromFile("res/ant_2.png");
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:27:3: error: ‘Conf’ has not been declared
27 | Conf::ANT_TEXTURE->setSmooth(true);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:29:3: error: ‘Conf’ has not been declared
29 | Conf::MARKER_TEXTURE = std::make_sharedsf::Texture();
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:30:3: error: ‘Conf’ has not been declared
30 | Conf::MARKER_TEXTURE->loadFromFile("res/marker.png");
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:31:3: error: ‘Conf’ has not been declared
31 | Conf::MARKER_TEXTURE->setSmooth(true);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp: In static member function ‘static void DefaultConf::freeTextures()’:
/home/chitti/Documents/AntSimulator-master/include/config.hpp:36:3: error: ‘Conf’ has not been declared
36 | Conf::ANT_TEXTURE = nullptr;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:37:3: error: ‘Conf’ has not been declared
37 | Conf::MARKER_TEXTURE = nullptr;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp: At global scope:
/home/chitti/Documents/AntSimulator-master/include/config.hpp:43:17: error: specializing member ‘DefaultConf<>::ANT_COLOR’ requires ‘template<>’ syntax
43 | const sf::Color Conf::ANT_COLOR = sf::Color(255, 73, 68);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:44:17: error: specializing member ‘DefaultConf<>::FOOD_COLOR’ requires ‘template<>’ syntax
44 | const sf::Color Conf::FOOD_COLOR = sf::Color(66, 153, 66);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:45:17: error: specializing member ‘DefaultConf<>::TO_FOOD_COLOR’ requires ‘template<>’ syntax
45 | const sf::Color Conf::TO_FOOD_COLOR = sf::Color(0, 255, 0);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:46:17: error: specializing member ‘DefaultConf<>::TO_HOME_COLOR’ requires ‘template<>’ syntax
46 | const sf::Color Conf::TO_HOME_COLOR = sf::Color(255, 0, 0);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:47:17: error: specializing member ‘DefaultConf<>::COLONY_COLOR’ requires ‘template<>’ syntax
47 | const sf::Color Conf::COLONY_COLOR = Conf::ANT_COLOR;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:48:10: error: specializing member ‘DefaultConf<>::WIN_WIDTH’ requires ‘template<>’ syntax
48 | uint32_t Conf::WIN_WIDTH = 1920;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:49:10: error: specializing member ‘DefaultConf<>::WIN_HEIGHT’ requires ‘template<>’ syntax
49 | uint32_t Conf::WIN_HEIGHT = 1080;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:50:10: error: specializing member ‘DefaultConf<>::ANTS_COUNT’ requires ‘template<>’ syntax
50 | uint32_t Conf::ANTS_COUNT = 1024;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:51:7: error: specializing member ‘DefaultConf<>::COLONY_SIZE’ requires ‘template<>’ syntax
51 | float Conf::COLONY_SIZE = 20.0f;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:52:14: error: specializing member ‘DefaultConf<>::COLONY_POSITION’ requires ‘template<>’ syntax
52 | sf::Vector2f Conf::COLONY_POSITION = sf::Vector2f(Conf::WIN_WIDTH * 0.5f, Conf::WIN_HEIGHT * 0.5f);
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:55:30: error: specializing member ‘DefaultConf<>::ANT_TEXTURE’ requires ‘template<>’ syntax
55 | std::shared_ptrsf::Texture Conf::ANT_TEXTURE;
| ^~~~
/home/chitti/Documents/AntSimulator-master/include/config.hpp:56:30: error: specializing member ‘DefaultConf<>::MARKER_TEXTURE’ requires ‘template<>’ syntax
56 | std::shared_ptrsf::Texture Conf::MARKER_TEXTURE;
| ^~~~
make[2]: *** [CMakeFiles/AntSimulator.dir/build.make:82: CMakeFiles/AntSimulator.dir/src/display_manager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/AntSimulator.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
[chitti@Thor build]$

from antsimulator.

johnBuffer avatar johnBuffer commented on June 19, 2024

Will look into this, g++ and msvc don't behave the same regarding this.

from antsimulator.

johnBuffer avatar johnBuffer commented on June 19, 2024

Should be better now

from antsimulator.

Related Issues (20)

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.