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
Won't compile with Arduino 1.6.4 #188
Comments
I don't have a way to test right now, but you might try replacing |
I have run into piles of problems getting OpenLog to correctly compile under Arduino 1.6.x. At this time it only works under Arduino 1.0.x. Sorry! I'll update the wiki instructions and this issue as things change. |
Hello, sorry to bring this back up (this is my first ever issue tracker of any project...) I am trying to compile OpenLog to install it on a custom board I made. I sourced 328P's with the arduino bootloader already installed on them. The problem is I can not compile, I get a LONG LONG list of errors. I reverted back to arduino 1.0.5 and installed the two libraries needed (SerialPort and SdFAT) yet it doesnt even come close to working. I have also tried sellecting differnt board types and tried both the regular and the lite versions. I will copy/paste the list of error messages below. I hope my intended use is ok, it complies with the CC SA v3 license and is an open source project I'm working on @ RCGroups Please note I tried both, downloading the linked directory from the "flashing FW" wiki page as well as downloading from the repo, I also tried copying the text from the files in the repo directly into a new sketch, I've also verified the libraries are installed, nothing works. I'm use to going threw and fixing [sometimes a lot] of errors but this just seems like something's fundamentally messed up. Thanks in advance! If this should be split into it's own issue then I'm sorry... errors: This is when pasted into a new sketch but it's the same list of errors no matter how I go about it. Please help! Thanks again. |
I know it's frowned upon to resurrect old things, but I prefer keeping relevant stuff together instead of looking at dozens of posts for a solution that should be with the question. I hit the same problem and was able to compile in 1.6.5 by tweaking the code a bit. There are a few different ways we can make things work, but in essence, the compiler must see PROG_TYPES_COMPAT prior to any inclusion of avr/pgmspace.h in the compile process in order for the SerialPort library to compile and be usable (in this context at least). The easiest way I found is:
This way it seems to fix both the library AND the sketch. |
@argtrak it may be 5 years later but thank you, this helped me. I'm surprised that Sparkfun have not fixed this in all that time. The Openlog bundle referenced from the Openlog guide still contains this issue and I wasted a lot of time trying to get it to compile. |
@ohhorob's comment above (May 20, 2015)... I had same problem today! June, 2021...the "fix", i.e.: #define PROG_TYPES_COMPAT //Needed to get SerialPort.h to work in Arduino 1.6.x, was already in the .ino file... I downloaded IDE V1.6.5 for this purpose, and used it, so not sure what may still be lingering out there to cause such an issue so many years later - I guess @JonesyM saw similar a few months ago... Wonder what will happen if use current IDE? If anyone has an insight as to another fix, please advise... Followup: used my current IDE (1.8.13) - exact same result...maybe I'll try 1.0? Followup2: installed 1.0.6 and it compiled... |
Per instructions on this GitHub repo, I downloaded SerialPortBeta20120106.zip and unpacked it, moved the SerialPort folder to the libraries directory.
The text was updated successfully, but these errors were encountered: