Homebrew Question devkitPro/Msys2 - Compilation problem

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
35
XP
296
Country
Jordan
Greetings,

After almost a week of struggling while trying to troubleshoot devkitPro, I have reached a dead-end. Its support is basically non-existent.

Basically, I have installed it with all its packages that I found on its GitHub, but when I try to run the "make" command in Msys2 for any project, I get the error in the screenshot.

3.jpg


I've heard something about updated libnx having something to do with this, but I couldn't make any sense out of it.

Your help, is my salvation.

Thanks in advance.
 

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
35
XP
296
Country
Jordan
Have you tried WSL? It works perfectly for me on Ubuntu.

Upon trying, I found that the syntax is a bit different so I couldn't translate "pacman -S switch-dev" to something it understands. The web says it's "sudo (dkp-)pacman -S switch-dev" but I get this error: "-bash: syntax error near unexpected token `dkp-' "

Can you help me with the syntax or whatever this issue is, please?
 

KitsumiTheFox

Well-Known Member
Newcomer
Joined
Jan 9, 2016
Messages
85
Trophies
0
Age
23
Location
Utah
XP
590
Country
United States
Are you running exactly what it says, being: 'sudo (dkp-)pacman -S switch-dev'?
If so, the wiki page means, you need to use either 'sudo pacman -S switch-dev' or 'sudo dkp-pacman -S switch-dev'
 
  • Like
Reactions: iwantsee

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
35
XP
296
Country
Jordan
Are you running exactly what it says, being: 'sudo (dkp-)pacman -S switch-dev'?
If so, the wiki page means, you need to use either 'sudo pacman -S switch-dev' or 'sudo dkp-pacman -S switch-dev'

I tried all these cases, none worked.

There are suggestions for using other tools like Arch and WSL. The syntax is slightly different, so I'd appreciate a translation for the mentioned commands from anyone familiar.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,240
Trophies
3
XP
11,966
Country
Poland
So you was trying to run dkp-pacman without installing it...

Install Ubuntu from scratch, update it, then
Code:
wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
sudo dpkg -i devkitpro-pacman.deb
sudo dkp-pacman -S Switch-dev
Accept everything as default and that's it.
 

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
35
XP
296
Country
Jordan
Well, that's great! Everything works well up to this point! Many thanks

Now, I'm just trying to compile a project (EdiZon) into an nro file using the "make" command, but I get this error:

Makefile:10: c:/devkitpro/libnx/switch_rules: No such file or directory
make: *** No rule to make target 'c:/devkitpro/libnx/switch_rules'. Stop.

More details can be found in the attached screenshot.

I appreciate your help.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    488.6 KB · Views: 259

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,240
Trophies
3
XP
11,966
Country
Poland
Why did you used export? Eh...
Now you need to scrap this to trash and start from scratch.
After installing Switch-dev everything is ready to go. And by using export you broke it.
 

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
35
XP
296
Country
Jordan
That's not quite true... He could just re-export the new path

Why did you used export? Eh...
Now you need to scrap this to trash and start from scratch.
After installing Switch-dev everything is ready to go. And by using export you broke it.

Just started from scratch and tried again for the third time, it keeps asking me to export even after installing as appears in the screenshot, throwing this error every time:
"Makefile:6: *** "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro". Stop."

It's like the installation didn't add anything.

For the love of God, isn't there a guide for this kind of development for beginners? Jesus Christ!

Here's everything I've done in a nutshell:

1- Installed Windows 10 x64 v1909 and enabled WSL
2- Installed Ubuntu from the Store and ran the following commands:
cd mnt/c/devkitPro/projects/EdiZon-master
wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
sudo dpkg -i devkitpro-pacman.deb
sudo dkp-pacman -S switch-dev
export DEVKITPRO=c/devkitpro
sudo apt install make
make

3- Got the following error:
Makefile:10: C/devkitpro/libnx/switch_rules: No such file or directory
make: *** No rule to make target 'C/devkitpro/libnx/switch_rules'. Stop.

My notes: The "switch_rules" folder is missing.

The question is: If it truly the solution, how to add it? Otherwise, what would the magic spell be?

I know that's a bulky reading, so my apologies and appreciation in advance.
 
Last edited by Barrytoo,

KitsumiTheFox

Well-Known Member
Newcomer
Joined
Jan 9, 2016
Messages
85
Trophies
0
Age
23
Location
Utah
XP
590
Country
United States
Just started from scratch and tried again for the third time, it keeps asking me to export even after installing as appears in the screenshot, throwing this error every time:
"Makefile:6: *** "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro". Stop."

It's like the installation didn't add anything.

For the love of God, isn't there a guide for this kind of development for beginners? Jesus Christ!

Here's everything I've done in a nutshell:

1- Installed Windows 10 x64 v1909 and enabled WSL
2- Installed Ubuntu from the Store and ran the following commands:
cd mnt/c/devkitPro/projects/EdiZon-master
wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
sudo dpkg -i devkitpro-pacman.deb
sudo dkp-pacman -S switch-dev
export DEVKITPRO=c/devkitpro
sudo apt install make
make

3- Got the following error:
Makefile:10: C/devkitpro/libnx/switch_rules: No such file or directory
make: *** No rule to make target 'C/devkitpro/libnx/switch_rules'. Stop.

My notes: The "switch_rules" folder is missing.

The question is: If it truly the solution, how to add it? Otherwise, what would the magic spell be?

I know that's a bulky reading, so my apologies and appreciation in advance.

I don't think the normal path would be c/devkitpro, mine is set to
Code:
/opt/devkitpro
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,076
Trophies
1
Age
56
XP
8,219
Just started from scratch and tried again for the third time, it keeps asking me to export even after installing as appears in the screenshot, throwing this error every time:
"Makefile:6: *** "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro". Stop."

It's like the installation didn't add anything.

For the love of God, isn't there a guide for this kind of development for beginners? Jesus Christ!

Here's everything I've done in a nutshell:

1- Installed Windows 10 x64 v1909 and enabled WSL
2- Installed Ubuntu from the Store and ran the following commands:
cd mnt/c/devkitPro/projects/EdiZon-master
wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
sudo dpkg -i devkitpro-pacman.deb
sudo dkp-pacman -S switch-dev
export DEVKITPRO=c/devkitpro
sudo apt install make
make

3- Got the following error:
Makefile:10: C/devkitpro/libnx/switch_rules: No such file or directory
make: *** No rule to make target 'C/devkitpro/libnx/switch_rules'. Stop.

My notes: The "switch_rules" folder is missing.

The question is: If it truly the solution, how to add it? Otherwise, what would the magic spell be?

I know that's a bulky reading, so my apologies and appreciation in advance.

You're using Linux and you're trying to use windows paths. When you export DEVKITPRO=c/devkitpro - you need to change that to where you have DEVKITPRO installed on Linux - usually it's in your OPT folder.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    maaaaan that's so awesome but I also don't want to fork over a hundo for it
  • Veho @ Veho:
    The fuuuuu---
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Leo could not withstand communism.
  • SylverReZ @ SylverReZ:
    Its OUR products to begin with lol.
    SylverReZ @ SylverReZ: Its OUR products to begin with lol.