balance_buddy icon indicating copy to clipboard operation
balance_buddy copied to clipboard

Trouble Compiling

Open ghost opened this issue 3 years ago • 14 comments

I opened the main.ino in the ide and i go to compile and it recieves an error. image @Mitchlol

ghost avatar Jan 26 '22 02:01 ghost

There is no main.ino, itis a balance_buddy.ino which is what you should be opening.

Opening this file should bring up all the other .cpp files in the root directory. Do you have them all there?

image

Also what version of arduino ide are you using?

Mitchlol avatar Feb 03 '22 07:02 Mitchlol

version 1.8.19

image

ghost avatar Feb 03 '22 18:02 ghost

image It also does not work in the online IDE

ghost avatar Feb 03 '22 18:02 ghost

I think I had issues with the windows store version, and i dunno about file linking in the online version, arduino ide is way too picky. Try using the one from here.

https://www.arduino.cc/en/software

Mitchlol avatar Feb 03 '22 20:02 Mitchlol

It didnt work either

image

ghost avatar Feb 04 '22 03:02 ghost

Do you have those files present?

You cold alternatively download that library through the arduino ide and include it the standard way.

Mitchlol avatar Feb 04 '22 04:02 Mitchlol

i download the folder as a zip, i unzip it, then i open balance buddy in the ide, then i add the .cpp files, idk what i am doing wrong there.

ghost avatar Feb 04 '22 07:02 ghost

How are you adding the cpp files?

Mitchlol avatar Feb 04 '22 08:02 Mitchlol

also it seems you downloaded an hourly build, would be better if you used the latest stable version of the ide 1.8.19. I just tested it on this version and have no issues.

Mitchlol avatar Feb 04 '22 09:02 Mitchlol

I add them by clicking the sketchtab and clicking Add file

ghost avatar Feb 04 '22 16:02 ghost

That's odd, I didn't even know that button exists. If you open the project properly, it should find all the included files on it's own. If you have to manually add files, then its not surprising it cant find the nested ones in the src directory.

Make sure you have all the files in the repo in their own directory, with no other files. Then run balance_buddy.ino which should open arduino ide with all the required files. It should show all the root directory files, but not the ones in src, however it will know about them and compile.

Mitchlol avatar Feb 04 '22 19:02 Mitchlol

Yea, I tried unzipping the folder, then open the .ino, and compile, same error. not sure what is wrong

ghost avatar Feb 04 '22 22:02 ghost

Sorry, I'm all out of suggestions. You're the only one I've heard of with this issue. Something is weird about your IDE setup.

You could modify the code to use the Library Manager version of the libraries, and even merge all the code into a single file, if that's what it takes. But it sounds like that is out of your familiarity zone.

Ill leave the issue open in case you or someone else gets more info on this issue.

Mitchlol avatar Feb 05 '22 21:02 Mitchlol

@otisthebigcow try renaming the folder to balance_buddy. Remove the -main. Its what fixed my compiling issues. I was having the same problem just different section.

KnuckleUpFPV avatar Oct 15 '22 01:10 KnuckleUpFPV