-
Notifications
You must be signed in to change notification settings - Fork 109
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
Build error in latest master #70
Comments
I just ran into the same problem and found this ticket by googling. Thanks for creating it. @buelowp, I think your patch is close, but it will print a lot of error messages. |
I modified my copy slightly to check if |
Cheers! Thanks for the patch |
Thnx for the fix! |
What do you think about this alternative solution: martinSusz@1e6322c ? |
I'm a noob in the blind trying to solve this issue. How do I actually run this patch? I've tried entering the rkdeveloptool folder and pasting the whole thing in the terminal but get a "zsh: parse error near `}'". Am I on the right track at all? |
Would also love to know how to apply this |
So the above solution is not a command to run, but is showing the Git Diff between the original main.cpp file, and the patched version (More on reading these diffs here: https://www.atlassian.com/git/tutorials/saving-changes/git-diff) Essentially, you want to open the main.cpp file, find the lines referenced above, remove the lines that have -- prefix, and add in the new lines that have the ++prefix. |
Copy this into a file called snprintf.patch and save it to the same folder as main.cpp. Then, run patch -p0 < snprintf.patch. I can't really get into the details of how to use patch or patch for Windows here, there are a LOT of google results to help with that. However, that short workflow will apply the patch. Then you must build it, and once built, you can use it. |
Later versions of GCC have started to generate the warning
and because -Wall and -Werror are used, this causes the build to fail. I've attached the patch I used, but there may be a better solution.
The text was updated successfully, but these errors were encountered: