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

Fixed include paths for items in GUI/ for Mac #48

Closed
wants to merge 1 commit into from
Closed

Fixed include paths for items in GUI/ for Mac #48

wants to merge 1 commit into from

Conversation

victormihalache
Copy link

When I ran the install.sh script it would give me error such as:

-- Found SFML 2.5.1 in /opt/homebrew/lib/cmake/SFML
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/<username>/<path to repo>/AntSimulator/build
[ 50%] Building CXX object CMakeFiles/AntSimulator.dir/src/main.cpp.o
In file included from /Users/<username>/<path to repo>/AntSimulator/src/main.cpp:7:
In file included from /Users/<username>/<path to repo>/AntSimulator/include/editor/editor_scene.hpp:5:
In file included from /Users/<username>/<path to repo>/AntSimulator/include/editor/color_saver.hpp:3:
/Users/<username>/<path to repo>/AntSimulator/include/editor/GUI/grid_container.hpp:2:10: fatal error: 'GUI/item.hpp' file not found
#include "GUI/item.hpp"
         ^~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/AntSimulator.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/AntSimulator.dir/all] Error 2
make: *** [all] Error 2

So all I did is change the GUI/ part of it and re-run the script. Did this for all the subsequent errors like this that showed up and after the 5th it compiled successfully.

I'm no C++ expert so this changes are kind of a botch, hope it helps someone having the same issue.

@noob10293
Copy link

this probably breaks it for windows, so you should probably make this a fork instead

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

Successfully merging this pull request may close these issues.

2 participants