Homebrew Question devkitPro/Msys2 - Compilation problem

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
33
XP
208
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
33
XP
208
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
22
Location
Utah
XP
578
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'
 

Barrytoo

Member
OP
Newcomer
Joined
Apr 24, 2018
Messages
21
Trophies
0
Age
33
XP
208
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
Member
Joined
Oct 14, 2018
Messages
5,322
Trophies
2
XP
9,685
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
33
XP
208
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: 194

masagrator

The patches guy
Member
Joined
Oct 14, 2018
Messages
5,322
Trophies
2
XP
9,685
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
33
XP
208
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
22
Location
Utah
XP
578
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
2,004
Trophies
1
Age
54
XP
5,385
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.
 

You may also like...

General chit-chat
Help Users
  • No one is chatting at the moment.
    M4x1mumReZ @ M4x1mumReZ: I guess 1 person has gotten the joke