Angus Schmaloer Posted July 6, 2018 Report Posted July 6, 2018 Hey, I have added the library according to https://wiki.ugfx.io/index.php/Using_Eclipse. Now i get the following error: "Description Resource Path Location Type fatal error: gdisp_lld_config.h: No such file or directory gdisp.h /Display/ugfx/src/gdisp line 166 C/C++ Problem" Does anyone have an idea to resolve this. Gr, Angus Schmaloer
inmarket Posted July 6, 2018 Report Posted July 6, 2018 Have you added a GDISP driver as per the instructions?
Angus Schmaloer Posted July 6, 2018 Author Report Posted July 6, 2018 (edited) Hey, First i have imported the whole ugfx folder into the project under the "include" tab under "Path and Symbols". After that i added the ugfx folder to "Source location". I added multiple filters. with ctrl-a I selected everything. I deselected the src folder with gfx_mk.c and the drivers folder with the gdips and ILI9341. (here are screen caps from the project folder. The right picture is the same project but I deleted all the other drives, cuz these are 100% not needed and i thought i might help with the multiple gdisp_lld_config.h files) Edited July 6, 2018 by Angus Schmaloer
Joel Bodenmann Posted July 6, 2018 Report Posted July 6, 2018 The error message is definitely showing that something went wrong with including the GDISP driver as @inmarket mentioned. Maybe @cpu20 can help as he's our IDE integration specialist.
cpu20 Posted July 7, 2018 Report Posted July 7, 2018 (edited) 21 hours ago, Angus Schmaloer said: After that i added the ugfx folder to "Source location". I added multiple filters. From your screenshots it seems that you included all the sources correctly. 21 hours ago, Angus Schmaloer said: First i have imported the whole ugfx folder into the project under the "include" tab under "Path and Symbols". Not only the uGFX folder has to be included under "Paths and Sybmols", but also your gdisp driver folder. In your case you need to add the drivers/gdisp/ILI9341 folder to your "Paths and Symbols". This should fix the error. Edited July 7, 2018 by cpu20
Angus Schmaloer Posted July 10, 2018 Author Report Posted July 10, 2018 hey, We fixed it. it was a problem in a atollic truestudio. We included both, but when we later looked under "C/C++ build" --> Settings --> Tool settings, we saw that the directory was only included under "Directories" under the de "C-Compiler" or the "C++-Compiler" (couldn't remember wich one, but under one of those two the directorie was not included under "Directories"). We copied the directory and pasted under the other one, and the error is gone. Right now i only have the errors: undefined reference to `gfxMillisecondsToTicks' and undefined reference to `gfxSystemTicks' . But i guess i have to provide then myself, cuz the library doesn't know my uC. So basically my program was that when i added the directory, the directory was not fully added and i had to add it manually. Hopes this might help other later that run into the same problem.
Joel Bodenmann Posted July 10, 2018 Report Posted July 10, 2018 9 hours ago, Angus Schmaloer said: Right now i only have the errors: undefined reference to `gfxMillisecondsToTicks' and undefined reference to `gfxSystemTicks' . But i guess i have to provide then myself, cuz the library doesn't know my uC. This will help: https://wiki.ugfx.io/index.php/BareMetal#SysTick
Angus Schmaloer Posted July 11, 2018 Author Report Posted July 11, 2018 y 10 hours ago, Joel Bodenmann said: This will help: https://wiki.ugfx.io/index.php/BareMetal#SysTick Yes. i din't saw the link, but i got the same code as in the link.
Joel Bodenmann Posted July 12, 2018 Report Posted July 12, 2018 If you wrote the code for those functions but you're getting an undefined reference error you simply forgot to include the files in the compilation/linking process properly.
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