ardynia icon indicating copy to clipboard operation
ardynia copied to clipboard

Error with game.h

Open Gwifon opened this issue 6 years ago • 4 comments

Hello, I'm a fairly inexperienced programmer when it comes to Arduino, and for some reason when running Ardynia I get the following error:

Arduino: 1.8.7 (Mac OS X), Board: "Arduboy"

ardynia:6:22: error: src/game.h: No such file or directory compilation terminated. exit status 1 src/game.h: No such file or directory

If you have any suggestions, I'm all ears. Thank you!

Gwifon avatar Apr 09 '19 03:04 Gwifon

Hi @Gwifon can you show a screenshot of what the game's directories look like? Like with the Finder, showing the main directory with ardynia.ino in it and the src directory?

If you don't want to compile the game, you can get a build of it here:

https://github.com/city41/ardynia/releases/tag/1.1.0

city41 avatar Apr 14 '19 04:04 city41

I get this same error when compiling from the latest release, but I get no error if I just compile from the master branch of the git repo. I haven't dug much deeper into what the differences are, but I get the bug with release 1.1.0, and the master branch compiles with no issues (latest commit is the second one on March 31 2019).

For reference, attaching directory structure outputs for the two different versions.

master-branch.txt latest-release.txt

dogoncouch avatar Mar 04 '20 01:03 dogoncouch

hmm, this is the only code change since the last release: https://github.com/city41/ardynia/commit/6fecd52b1b65e607d2e0ac615d3a5704a04f6adb

All the other commits that happened after the last release were related to the website.

I'm not sure why the release won't compile. But I haven't had a chance to investigate. I doubt I will for some time, as lots of things are going on right now.

Since master works, I would vote just go with that. The difference between 1.1.0 and master is pretty much negligible.

city41 avatar Mar 06 '20 01:03 city41

Turns out the other issue, https://github.com/city41/ardynia/issues/1, is the reason for that code change. Just commenting here in case that added context may be helpful.

city41 avatar Mar 06 '20 01:03 city41