Page 1 of 1

Compiling DS homebrew program makefile error

Posted: Sat Jul 20, 2019 12:53 am
by ant888
Hey everyone,
I am trying to compile a NDS source folder, but make keeps giving me this error:

Code: Select all

C:\devkitPro\nsmb-editor-ds-master>make
File not found - *.nds
make: *** [Makefile:10: all] Error 2
After searching through countless threads, I still cannot seem to find an answer. Any help will be great!!

Thanks.

Re: Compiling DS homebrew program makefile error

Posted: Sun Jul 21, 2019 2:59 pm
by WinterMute
Assuming you're trying to compile https://github.com/Dirbaio/nsmb-editor-ds then it (almost) compiles fine for me with minor changes for latest devkitARM.

Code: Select all

diff --git a/source/editor.cpp b/source/editor.cpp
index 43ee07a..54cbd3a 100644
--- a/source/editor.cpp
+++ b/source/editor.cpp
@@ -153,7 +153,7 @@ void LevelEditor::doSelection(uint x, uint y)
 	}
 }
 
-void LevelEditor::touchDown(uint x, uint y)
+void LevelEditor::touchDown(u32 x, u32 y)
 {
 	tx = x+levelx;
 	ty = y+levely;
@@ -250,7 +250,7 @@ void cloneSelected(list<T>& lst)
     }
 }
 
-void LevelEditor::touchMoved(uint x, uint y)
+void LevelEditor::touchMoved(u32 x, u32 y)
 {
 
 	tx = x+levelx;
diff --git a/source/text.cpp b/source/text.cpp
index 48d9306..5d60969 100644
--- a/source/text.cpp
+++ b/source/text.cpp
@@ -20,7 +20,7 @@
 #include "font.h"
 #include "rom.h"
 
-void renderText(int x, int y, uint max, int col, string& s)
+void renderText(int x, int y, u32 max, int col, string& s)
 {
    	uint16* bg0ptr=  (uint16*)0x0601E000;
     x %= 32;
@@ -35,7 +35,7 @@ void renderText(int x, int y, uint max, int col, string& s)
         bg0ptr++;
     }
 }
-void renderText(int x, int y, uint max, int col, const char* s)
+void renderText(int x, int y, u32 max, int col, const char* s)
 {
    	uint16* bg0ptr=  (uint16*)0x0601E000;
     x %= 32;
The error you report suggests that the Makefile has been replaced with something that doesn't work