MobileWill Posted February 21, 2016 Report Share Posted February 21, 2016 When using the makefile I get tons of is not defined warnings for stuff that is commented out int he gfxconf.h For example GWIN_LABEL_ATTRIBUTE GWIN_NEED_LIST_IMAGES GFX_EMULATE_MALLOC I would like to get rid of the warnings. But in gfxconf.h it mentions to leave them commented out. Link to comment Share on other sites More sharing options...
inmarket Posted February 21, 2016 Report Share Posted February 21, 2016 It sounds like gfx.h is not getting included properly or something is playing with the macro definitions. 1. What make and compiler are you using? 2. Are you using the ugfx makefile system or something else? Link to comment Share on other sites More sharing options...
MobileWill Posted February 21, 2016 Author Report Share Posted February 21, 2016 I am using Embitz with the makefile. The ChibiOS makefile with the changes for GFX. Looks like my system defaults to GNU Make 4.1. Link to comment Share on other sites More sharing options...
inmarket Posted February 21, 2016 Report Share Posted February 21, 2016 Can you please provide a compiler log so that we can see in more detail what is happening. As you are also not using the ugfx makefile please provide that too. Also please provide a cut down version of the c file you are compiling that produces the warnings. These should all be zipped and attached to a forum reply. Link to comment Share on other sites More sharing options...
MobileWill Posted February 21, 2016 Author Report Share Posted February 21, 2016 Here is the zip. I didn't include main.c but if you need that I can send it to you. I did a clean make and then copied the builds logs. ugfx_Errors_Forum.zip Link to comment Share on other sites More sharing options...
MobileWill Posted February 21, 2016 Author Report Share Posted February 21, 2016 Eclipse gets the same warnings. But other than that it works. Link to comment Share on other sites More sharing options...
MobileWill Posted February 21, 2016 Author Report Share Posted February 21, 2016 I turned on the same warnings as Chibios makefile in Embitz and now it gets the same warnings too. Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 21, 2016 Report Share Posted February 21, 2016 We just added the missing default values for these macros: https://bitbucket.org/Tectu/ugfx/commits/3d78787b07ce9c2dafe0869dfd54b734181b7dd6 Can you please grab the latest master of the repository and let us know whether these warnings vanished? Link to comment Share on other sites More sharing options...
MobileWill Posted February 22, 2016 Author Report Share Posted February 22, 2016 It helped, many less warnings. But there are few more. "GDISP_PIXELFORMAT_CUSTOM" "GFX_USE_GAUDIN" "GOS_NEED_X_HEAP" "GOS_NEED_X_THREADS" 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