-
Notifications
You must be signed in to change notification settings - Fork 168
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
No working Makefiles #4
Comments
hi Lukas, yes the makefiles in the libraries folders are not really working as you expected, the libraries are compiles from the Wiring environment when they are included on a program. User's Libraries could be located in the sketchbook folder (Documents/Wiring/libraries or My Documents/Wiring/libraries) and will be automatically added to the Sketch - > Import Library menu under the User contributed section, common are located within the application folder, as well as core libraries which are inside the core/libraries folder and dare dynamically selected when a board selected uses a different core. |
Hi Hernando, Okay, I'll try to give you an overview of my intentions. In the meantime I tried to hack a little dirty makefile to get the object files. It turns out, that the Wiring.h header wants to include a file named "WConstants.h", which doesn't exist. So I begin to wonder, if the code-base is somehow broken. ? Lukas |
hi Lukas, great, yes the file is here: https://github.com/WiringProject/Wiring/tree/master/framework/cores/Common |
Status report: okay, I finally managed to get some results. I made one makefile for the whole project which just compiles every c/cpp file, that it can get in its hands. Additionally I could link a program with a main() function initializing the LED-Class in it and I even got a hex-file out of it, which is supposed to land on the microcontroller. :) |
well yes, that includes the whole thing on a file : ) |
I'm presently expanding my embedXcode project to Wiring. embedXcode uses Xcode to program Arduino and chipKIT boards. Due to its modular design based on makefiles, adding a new platform only requires writing the specific makefile for this platform, provided the IDE is based on Processing. Even if embedXcode is primarily aimed at Xcode and thus on Mac OS X, the makefiles are standard enough to be used with other standard IDEs like Eclipse, NetBeans et al in other OSes. |
Hi,
i tried to compile Wiring's Libraries myself.
First the core: After the initial failing of the make-command, I tried to fix obvious problems in the makefile, but after a while I came to the conclusion, that this makefile is not usable at all. (e.g. it tries to use files, which don't even exist; and there are no rules for the .c/.cpp files itself, just links to it.)
And by the way: the makefile is marked as executable, which does not make sense either.
Secondly: There are no makefiles (or at least I didn't find any) for the non-core libs (like LED).
So.. how do you people compile your libs?
(Nevertheless, I'd like to thank you for contributing to this great open source project. I appreciate the effort.)
Thank you!
Lukas Schneiderbauer
The text was updated successfully, but these errors were encountered: