Jump to content

Recommended Posts

Posted

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

 

 

 

Posted
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.

Posted

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

Posted (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 by Joel Bodenmann
Removing unnecessary complete quote of previous post and also using codebox
Posted

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.

Posted

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
 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...