1. Stefano_Lassandro

    Newcomer

    Joined:
    Dec 26, 2020
    Messages:
    32
    Country:
    Italy
    First of all, thanks for the help.
    I don't think I understood the core of the problem, but I can say that all the downloads mentioned in the instructions have been completed successfully. I checked, and the only warning I got was this:
    warning: config file /etc/pacman.conf, line 89: directive '[dkp-libs]' in section 'dkp-windows' not recognized.
    warning: config file /etc/pacman.conf, line 90: directive '~' in section 'dkp-windows' not recognized.
    error: could not register 'dkp-libs' database (database already registered)
    error: could not register 'dkp-libs' database (database already registered)
    error: could not register 'dkp-windows' database (database already registered)

    After the command: pacman -S 3ds-dev git make python3 mingw-w64-x86_64-gcc unzip --noconfirm .
    I then downloaded a git: wget https://github.com/3DSGuy/Project_CTR/releases/download/makerom-v0.17/makerom-v0.17-win_x86_64.zip
    And unzipped it. I then set some paths.
    export PATH="$PATH:/opt/devkitpro/tools/bin"
    export DEVKITPRO=/opt/devkitpro
    export DEVKITARM=/opt/devkitpro/devkitARM
    export DEVKITPPC=/opt/devkitpro/devkitPPC
    I then downloaded the git of sm64-port (git clone https://github.com/mkst/sm64-port.git). I changed the current directory to C:\msys64\home\HP\sm64-port and then tried running these* two commands in order to extract the assets from the rom (hash: d80ee9eeb6454d53a96ceb6ed0aca3ffde04509, that is US). At this point I should have everything, right? Makerom is there (in the bin folder of MSYS, so it can be executed), maybe it's gcc that's causing problems? (And surely the fact that i don't know what gcc is doesn't help ... )

    *The commands in question, in case they're needed:
    cp /c/temp/baserom.us.z64 ./ --> Here I copy the rom I placed in a temp folder into the current directory.
    make VERSION=us cia --> Here I make the .cia file, and here comes the error.

    I tried describing everything I did in details, hopefully I was clear about the situation. Thanks again for answering, i'ts really appreciated! :)
     
  2. Stefano_Lassandro

    Newcomer

    Joined:
    Dec 26, 2020
    Messages:
    32
    Country:
    Italy
    @Joom I think I see where's the problem.
    gcc has not been installed, or simply can't be found. I tried typing "gcc --version", but only to get an error wich says: "bash: gcc: command not found". I think that's pretty clear. So how am I supposed to install gcc?
    I'm really sorry if I'm bothering you with this. Hopefully you can you can head me the right way!
     
  3. Joom

    Joom  ❤❤❤
    Member

    Joined:
    Jan 8, 2016
    Messages:
    5,973
    Country:
    United States
    It's no bother. Add those export functions to your bashrc, then restart the terminal. Make sure you just add the first one to your PATH if it already exists in your bashrc. It should work after that provided DevkitPro was properly installed. Also, you may have a better time doing this in WSL. It's closer to building on an actual Linux installation, and a lot of these tools run better under it.
     
    Last edited by Joom, Apr 13, 2021
  4. Stefano_Lassandro

    Newcomer

    Joined:
    Dec 26, 2020
    Messages:
    32
    Country:
    Italy
    Thanks for replying, I'll try with WSL.
    Edit; That worked! Thanks a ton for the help!
     
    Last edited by Stefano_Lassandro, Apr 15, 2021
  5. suicicoo

    suicicoo Newbie
    Newcomer

    Joined:
    Jun 1, 2020
    Messages:
    1
    Country:
    Germany
    Hey there,

    tried building this - managed to install gcc as you said up there and running into this error:

    extracting textures/water/jrb_textures.0B800.rgba16.png
    audiofile.cpp: In function ‘status _afOpenFile(int, File*, const char*, _AFfilehandle**, AFfilesetup)’:
    audiofile.cpp:14640:28: error: ‘strdup’ was not declared in this scope; did you mean ‘strcmp’?
    14640 | filehandle->m_fileName = strdup(filename);
    | ^~~~~~
    | strcmp
    make[1]: *** [Makefile:7: audiofile.o] Error 1
    make: *** [Makefile:53: audiofile/libaudiofile.a] Error 2
    Makefile:186: *** Failed to build tools. Stop.​

    can you help me out?
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Super, Mario,