Page 1 of 1

[beginner] - Compile error if i move the example folder

Posted: Wed Jul 01, 2015 10:53 am
by rekotc
hi!

i've just started to learn the basics of GBA programming, and i have a simple problem i cannot solve. I was able to run the basic template included in devkitpro/examples/gba/template, i created the *.gba file and successfully run it on the emulator. Then i tried to copy the template folder to another directory on my pc, where i keep all the projects i'm working on. But when i try to compile the same project from the terminal using "make", i get the following error:
make[1]: *** No rule to make target 'c:/devkitPro/examples/gba/template/source/template.c', needed by 'template.o'. Stop.
make: *** [build] Error 2
Now, i noticed that 'make' is still searching in the old directory (c:/devkitPro/examples/gba/template/source/template.c), but i have absolutely no idea how to reconfigure the makefile in order to change the path where the project resides. How can it be done?

thank you in advance

Re: [beginner] - Compile error if i move the example folder

Posted: Mon Oct 19, 2015 5:42 pm
by elhobbs
Did you try cleaning the project? make clean

Re: [beginner] - Compile error if i move the example folder

Posted: Sun Dec 20, 2015 1:37 pm
by crumpetz
elhobbs wrote:Did you try cleaning the project? make clean
I'm having the exact same problem as the OP and tried doing a "make clean" then "make". I replicated it for the screen shot. Any other ideas?

Re: [beginner] - Compile error if i move the example folder

Posted: Thu Dec 24, 2015 9:59 pm
by elhobbs
crumpetz wrote:
elhobbs wrote:Did you try cleaning the project? make clean
I'm having the exact same problem as the OP and tried doing a "make clean" then "make". I replicated it for the screen shot. Any other ideas?
that example requires imagemagick installation

Re: [beginner] - Compile error if i move the example folder

Posted: Fri Jan 15, 2016 9:18 pm
by WinterMute
You're using old 3DS examples as well. The latest version of that checks for imagemagick and fails gracefully