Johnboy Posted July 22, 2017 Report Posted July 22, 2017 Hello I'm VERY new to both uGFX and Chibistudio I have followed the tutorial I found here: https://wiki.ugfx.io/index.php/Using_ChibiStudio When I build it I get the following: 19:13:36 **** Incremental Build of configuration Default for project RT-STM32F469I-DISCOVERY_lcdtest **** make -j8 all make: *** No rule to make target `main.c', needed by `build/obj/main.o'. Stop. 19:13:38 Build Finished (took 2s.492ms) In the instruction it tells me to delete main.c as the demo is linked internally I am a hobbyist and constantly learning Any direction would be greatly appreciated
cpu20 Posted July 24, 2017 Report Posted July 24, 2017 On 22/7/2017 at 09:29, Johnboy said: In the instruction it tells me to delete main.c as the demo is linked internally That is correct, but after deleting the main.c file you need to adjust your Makefile to use the desired demo project. This is described in the section below the part where it tells you to delete the main.c. If you did set the GFXDEMO as specified in the guide and still get the error, then it is possible that your GFXLIB path may be incorrect.
Johnboy Posted July 25, 2017 Author Report Posted July 25, 2017 Thank you for your response, I have set the GFXDEMO as specified in the guide and I still get the error. I thought I had the GFXLIB path correct, I will have a closer look at GFXLIB path. I've attached my makefile. Makefile
Joel Bodenmann Posted July 25, 2017 Report Posted July 25, 2017 Hello @Johnboy and welcome to the µGFX community! Your GFXLIB path looks correct. To me it seems like your GFXDEMO variable is wrong. You should remove the leading slash: GFXDEMO = modules/gdisp/basics
Johnboy Posted July 25, 2017 Author Report Posted July 25, 2017 (edited) Thanks, Joel I corrected that but however when I compile I still get: make: *** No rule to make target `main.c', needed by `build/obj/main.o' I'll keep looking I've obviously missed something Thanks for your help Edited July 25, 2017 by Joel Bodenmann Removing unnecessary complete quote of previous post and also using codebox
Joel Bodenmann Posted July 25, 2017 Report Posted July 25, 2017 That's weird... did you perform a clean build (make clean) ?
cpu20 Posted July 25, 2017 Report Posted July 25, 2017 From the CSRC variable remove the main.c line. The demo makefile will include the correct main.c file.
Joel Bodenmann Posted July 25, 2017 Report Posted July 25, 2017 Ah yes, that's it. I thought that he removed it as he mentioned that but I guess he removed it just from the Eclipse project files tree thingy which doesn't influence the Makefile stuff when using an existing/external Makefile.
Johnboy Posted July 26, 2017 Author Report Posted July 26, 2017 Yes I performed a clean build, and also removed main.c from the CSRC variable Now I get: build/obj/crt0_v7m.o: In function `endinitloop': (.text+0x82): undefined reference to `main' collect2.exe: error: ld returned 1 exit status make: *** [build/ch.elf] Error 1
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