Homebrew How To Setup Devkitpro/CTRULIB + Compiling on Windows?

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
Any tutorials?

Where do I create my .cpp files so it will recognize the libraries and stuff like that?

Do I have to do anything with my Environment Variables.


Yes, I already installed devkitpro from the .exe setup file.
 

ashinnblunts

Well-Known Member
Member
Joined
Jun 25, 2012
Messages
119
Trophies
1
XP
405
Country
United States
Try compiling one of the examples in /devkitPro/examples/3ds/ by going to the directory in your command line and typing "make".

To start your own project the easiest way is to just base it off of one of the examples or by copying the Makefile.
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
Try compiling one of the examples in /devkitPro/examples/3ds/ by going to the directory in your command line and typing "make".

To start your own project the easiest way is to just base it off of one of the examples or by copying the Makefile.
Ok, thanks.

So how would i modify the Makefile to compile a .cpp and not a .c file?
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,034
Country
United States
Ok, thanks.

So how would i modify the Makefile to compile a .cpp and not a .c file?
if you use the template project and makefile then it is setup to use a "source" and "include" directory. it can compile .c .cpp and .asm files that you put in the "source" directory.
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
if you use the template project and makefile then it is setup to use a "source" and "include" directory. it can compile .c .cpp and .asm files that you put in the "source" directory.
This is the error I get when I compile main.cpp .


Code:
C:\devkitPro\examples\3ds\templates\application>make
make[1]: *** No rule to make target `c:/devkitPro/examples/3ds/templates/application/source/main.c', needed by `main.o'.  Stop.
make: *** [build] Error 2

C:\devkitPro\examples\3ds\templates\application></code>
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: You woke sob +2