Mitchlol / balance_buddy

Arduino based accessory board for the balance app in BV's BLDC firmware.
19 stars 4 forks source link

Trouble Compiling #2

Open ghost opened 2 years ago

ghost commented 2 years ago

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

Mitchlol commented 2 years ago

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?

ghost commented 2 years ago

version 1.8.19

image

ghost commented 2 years ago

image It also does not work in the online IDE

Mitchlol commented 2 years ago

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

ghost commented 2 years ago

It didnt work either

image

Mitchlol commented 2 years ago

Do you have those files present?

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

ghost commented 2 years ago

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.

Mitchlol commented 2 years ago

How are you adding the cpp files?

Mitchlol commented 2 years ago

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.

ghost commented 2 years ago

I add them by clicking the sketchtab and clicking Add file

Mitchlol commented 2 years ago

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.

ghost commented 2 years ago

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

Mitchlol commented 2 years ago

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.

KnuckleUpFPV commented 1 year ago

@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.