inmarket Posted June 8, 2015 Report Share Posted June 8, 2015 UGFX is typically compiled using a makefile system.Whilst this is great for most platforms, some IDE's do not allow external makefile build projects and it can be difficult to work out which source files need including and which ones should not be included. This is particularly relevant on platforms like Arduino were the compiler does not allow libraries to have include paths other than the master source directory.To help with these platforms we have added a "single file" source compilation.Simply add "src/gfx_mk.c" to your IDE project and it will automatically include all other ugfx source except for drivers and board files.Note: the master gfx.h file will still need to be on your include path.There are still some limitations with this single file compilation in that inclusion of functions from third party libraries may not at this time work correctly (FAT, PETITFS, TinyGL etc). There is also an issue with user supplied fonts (with a simple work-around). We will work to resolve these issues as we get to testing them.For those that would like to play with the single file compilation using the standard ugfx make, we have added a new make option.Set GFXSINGLEFILE=yes in your makefile and it will use the new single file compile. In our in house testing this decreases the compile time from 14 seconds to 2 seconds Link to comment Share on other sites More sharing options...
crteensy Posted July 26, 2015 Report Share Posted July 26, 2015 Compiling as a single file indeed makes life much easier. I also found that compilation is sped up considerably. Thank you! Link to comment Share on other sites More sharing options...
tctippens Posted November 18, 2015 Report Share Posted November 18, 2015 Can you clarify how one would use this to compile onto an Arduino platform? I have read through most of the uGFX documentation but could not find anything about this. I am trying to use an Arduino Due + uGFX to host an embedded GUI for a senior project at my university. Link to comment Share on other sites More sharing options...
inmarket Posted November 18, 2015 Author Report Share Posted November 18, 2015 It was quite a while ago that i did this. I will dig up the old project, get it to compile with the current ugfx repository and i will then add it to the repository. Give me a few days and i will post again when it is done.Everything is always easier with an example. Link to comment Share on other sites More sharing options...
inmarket Posted November 21, 2015 Author Report Share Posted November 21, 2015 I have now re-tested Arduino.An example sketch has been added in the boards/base/ArduinoTinyScreen directory. It shows how to use ugfx as an Arduino library.Please read the instructions in readme.txt and the example carefully. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now