Question devkitPro/Msys2 - Compilation problem

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by Barrytoo, Oct 18, 2019.

  1. Barrytoo
    OP

    Barrytoo Member

    Newcomer
    1
    Apr 24, 2018
    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.

    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.
     
  2. masagrator

    masagrator The developper

    Member
    11
    Oct 14, 2018
    Poland
    Have you tried WSL? It works perfectly for me on Ubuntu.
     
  3. Barrytoo
    OP

    Barrytoo Member

    Newcomer
    1
    Apr 24, 2018
    Jordan
    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?
     
  4. KitsumiTheFox

    KitsumiTheFox Advanced Member

    Newcomer
    3
    Jan 9, 2016
    United States
    Utah
    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'
     
  5. Barrytoo
    OP

    Barrytoo Member

    Newcomer
    1
    Apr 24, 2018
    Jordan
    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.
     
  6. KitsumiTheFox

    KitsumiTheFox Advanced Member

    Newcomer
    3
    Jan 9, 2016
    United States
    Utah
    Have you installed pacman on WSL? I guess I should also ask what distro of WSL you installed.
     
    Last edited by KitsumiTheFox, Oct 20, 2019
  7. Barrytoo
    OP

    Barrytoo Member

    Newcomer
    1
    Apr 24, 2018
    Jordan
    Didn't install (dunno is that's possible), just used: "export DEVKITPRO=<path to>/devkitpro" in the shell, which is Ubuntu's.
     
  8. masagrator

    masagrator The developper

    Member
    11
    Oct 14, 2018
    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.
     
  9. Barrytoo
    OP

    Barrytoo Member

    Newcomer
    1
    Apr 24, 2018
    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.
     

    Attached Files:

  10. masagrator

    masagrator The developper

    Member
    11
    Oct 14, 2018
    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.
     
  11. KitsumiTheFox

    KitsumiTheFox Advanced Member

    Newcomer
    3
    Jan 9, 2016
    United States
    Utah
    That's not quite true... He could just re-export the new path
     
  12. Barrytoo
    OP

    Barrytoo Member

    Newcomer
    1
    Apr 24, 2018
    Jordan
    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, Oct 20, 2019
  13. KitsumiTheFox

    KitsumiTheFox Advanced Member

    Newcomer
    3
    Jan 9, 2016
    United States
    Utah
    I don't think the normal path would be c/devkitpro, mine is set to
    Code:
    /opt/devkitpro
     
  14. mrdude

    mrdude GBAtemp Advanced Fan

    Member
    7
    Dec 11, 2015
    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.
     
  15. piratesephiroth

    piratesephiroth I wish I could read

    Member
    11
    Sep 5, 2013
    Brazil
    yeah, you should try

    Code:
    export DEVKITPRO=/opt/devkitpro
     
Quick Reply
Draft saved Draft deleted
Loading...