Jump to content

Compiling program with CMake fails

WhitetailAni

I, like some of you, enjoy XKCD.

One of my favorites is 1608, the hoverboard game. Because I use my 3DS pretty much everywhere, I wanted to see if I could get it to run on my 3DS.

I poked around the Internet and found that someone had done something kinda similar to what I was trying to do:

https://github.com/AMDmi3/hoverboard-sdl
But it's for Windows, not the 3DS. And despite my best efforts (i.e. Googling "run exe on 3ds emulator") you can't run an .exe on a 3DS. Surprise!

 

So I did more Googling. I was able to find that the uncompiled program used CMAKE to compile, so I looked for a 3DS CMAKE compiler. I found that, did the necessary steps to add it to the code, and ran the command that the GitHub page listed.

image.png.89e9425dbb183cb4a2c3f4a897ee12cb.png

I got this in response. I then did... something (don't remember what) and found CMake 3.21.2. I specified the .cmake file, selected Unix MakeFiles, and hit Generate.

image.thumb.png.ba7d83dfbeda93a9bc63b8b0dfe83721.png

Crap.

 

And now you know why I am here. Does anyone know what the problem is here, and if it is fixable? Yes I realize that what I'm trying to do probably won't work, so if this is the case just tell me. I won't respond with "uh yes it is i know it is because of xxx youtube video".

 

Thanks!

elephants

Link to comment
Share on other sites

Link to post
Share on other sites

As shown in the error message, you need to have DEVKITPRO installed and set in your PATH.

 

I believe you can get it from here: https://github.com/devkitPro/installer

 

One major problem that you might face is that I believe there isn't any SDL2 ports for the 3DS.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

Installed DevKitPRO and now I get this:
image.png.92961a6cabb6406a872c219073b4f7cd.png

6 minutes ago, igormp said:

One major problem that you might face is that I believe there isn't any SDL2 ports for the 3DS.

I think there might be one:
https://github.com/FtZPetruska/SDL

But I'm not sure if it's done yet, and according to the author video doesn't work yet. If it does work, how would I go about adding it?

 

 

elephants

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, FakeKGB said:

Installed DevKitPRO and now I get this:
image.png.92961a6cabb6406a872c219073b4f7cd.png

I think there might be one:
https://github.com/FtZPetruska/SDL

But I'm not sure if it's done yet, and according to the author video doesn't work yet. If it does work, how would I go about adding it?

 

 

I saw a post about it, there's no video support yet, so it's pretty useless for what you want.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, igormp said:

I saw a post about it, there's no video support yet, so it's pretty useless for what you want.

Could this work? I'm not sure if it supports 2.0 or not but the readme lists v2.0. It's not clear.

https://github.com/xerpi/SDL-3DS

elephants

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, FakeKGB said:

Could this work? I'm not sure if it supports 2.0 or not but the readme lists v2.0. It's not clear.

https://github.com/xerpi/SDL-3DS

I heard that this one is also not finished, and the last commit was 5 years ago. You could give it a try and try to compile it.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

26 minutes ago, igormp said:

You could give it a try and try to compile it.

How do I do that? I see some makefile files and I'm able to use that but the standard "makefile" file isn't there.

elephants

Link to comment
Share on other sites

Link to post
Share on other sites

19 minutes ago, FakeKGB said:

How do I do that? I see some makefile files and I'm able to use that but the standard "makefile" file isn't there.

You need to generate the makefiles with cmake.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, igormp said:

You need to generate the makefiles with cmake.

Tried that now, it spat out this:

Spoiler

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -Aa 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -D__CLASSIC_C__ 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c;-I__does_not_exist__ 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -Aa 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -D__CLASSIC_C__ 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c;-I__does_not_exist__ 

The output was:
The system cannot find the file specified

 

Thanks for helping me by the way!

elephants

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, FakeKGB said:

Tried that now, it spat out this:

  Hide contents

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -Aa 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -D__CLASSIC_C__ 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c;-I__does_not_exist__ 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -Aa 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -D__CLASSIC_C__ 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3 

The output was:
The system cannot find the file specified


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c;-I__does_not_exist__ 

The output was:
The system cannot find the file specified

 

Thanks for helping me by the way!

You need to set the proper C compiler path and whatnot.

 

Sorry for not giving you proper instructions, but I'm really busy at the moment, and I'd rather try to give you some general directions instead of leaving you hanging (since I believe no one else will jump in to help) 😕 

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

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

×