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

Post Reply
rekotc
Posts: 1
Joined: Tue Jun 30, 2015 9:06 pm

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

Post by rekotc » Wed Jul 01, 2015 10:53 am

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

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

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

Post by elhobbs » Mon Oct 19, 2015 5:42 pm

Did you try cleaning the project? make clean

crumpetz
Posts: 1
Joined: Sun Dec 20, 2015 1:28 pm

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

Post by crumpetz » Sun Dec 20, 2015 1:37 pm

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?
Attachments
ScreenCap.png
(42.78 KiB) Not downloaded yet

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

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

Post by elhobbs » Thu Dec 24, 2015 9:59 pm

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

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

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

Post by WinterMute » Fri Jan 15, 2016 9:18 pm

You're using old 3DS examples as well. The latest version of that checks for imagemagick and fails gracefully
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests