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,280
Trophies
3
XP
12,049
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: 265

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,280
Trophies
3
XP
12,049
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,071
Trophies
1
Age
56
XP
8,227
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
  • realtimesave @ realtimesave:
    @SylverReZ NIntendo pretty much has to release a new console by next year in order to keep making moneys imo
    +1
  • SylverReZ @ SylverReZ:
    Ninty can still make money filing false DMCAs.
    +1
  • realtimesave @ realtimesave:
    they need to have a strong line up on the launch titles too. I think they should move metroid prime 4 to the next console because by now it has been quite a while and there's no release date scheduled yet
  • realtimesave @ realtimesave:
    lol there's a guy selling mig switch in usa on ebay for $200/ea he's definitely going to get nailed with dmca by tomorrow
  • ZeroT21 @ ZeroT21:
    Wasn't Metroid Prime 4 teased all the way back in 2017? For the switch no less?
    :rofl2:
  • ZeroT21 @ ZeroT21:
    Pretty sure anyone buying the switch just for that got duped
  • realtimesave @ realtimesave:
    for $200? rofl.
  • realtimesave @ realtimesave:
    well as far as metroid prime 4 is concerned, the next system probably is similar enough to the current gen they can probably easily just slap it onto a next gen cart and call it good :P
  • K3Nv2 @ K3Nv2:
    The switch was about 350 in 2017
  • Metoroid0 @ Metoroid0:
    mabe where you live
  • K3Nv2 @ K3Nv2:
    Nintendo president Tatsumi Kimishima took the stage at the outset to reveal that Switch will launch globally on March 3, 2017 for $299.99—earlier than some had expected at the price many suspected. https://time.com/4632820/nintendo-switch-nx/
  • Psionic Roshambo @ Psionic Roshambo:
    The NES launched at like 250 and the rob and light gun kit was like 350 or something
  • Psionic Roshambo @ Psionic Roshambo:
    I was near the test market for the NES and man did it make my 2600 look like ass lol
  • K3Nv2 @ K3Nv2:
    There has to be some mutual agreement with them all anything over $600 is just pc territory
  • realtimesave @ realtimesave:
    next system rumored to launch at $400
  • realtimesave @ realtimesave:
    but I don't really believe any rumors yet
  • realtimesave @ realtimesave:
    need to have official info from N
  • Psionic Roshambo @ Psionic Roshambo:
    The 3DO and Neo Geo where like 700 bucks hmm the PS3 was stupid expensive at launch lol
  • Psionic Roshambo @ Psionic Roshambo:
    But at least the PS3 was only 500 for the cheapest one at launch
  • Psionic Roshambo @ Psionic Roshambo:
    My opinion is that 199.99 is the sweet spot but that spot is long gone lol
  • Psionic Roshambo @ Psionic Roshambo:
    Just played some Micheal Jackson Moonwalker.... Those poor parents trying desperately to protect their children
  • K3Nv2 @ K3Nv2:
    400 is a decent sweet spot if we get enough out of it
  • K3Nv2 @ K3Nv2:
    It's not like how it was when we were locked down to a few options and that's it
    K3Nv2 @ K3Nv2: It's not like how it was when we were locked down to a few options and that's it