[Q] Am I doing/installed something wrong? (nothing seems to build)

Discussion in '3DS - Homebrew Development and Emulators' started by SuperScore29, Jul 20, 2015.

?

Ever get something like this happen to you?

  1. Tell me about it.

    50.0%
  2. Nope

    50.0%
  1. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    G'day everyone, I have stumbled upon an error while trying to build/compile one of the examples from ctrulib. I installed everything required for the development environment, so I don't know whats going on here. I am able to compile a Launcher.dat just fine, but not a .3dsx file(which I'm aiming at) :unsure:
    [​IMG]
     
  2. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    Run the commands from msys which sets up the environment for you. It comes with devKitPro.
    Same thing happens to me if I try to just run make from cmd.
     
  3. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    Ok, so I tried it out, using the make command, I'm still getting a launcher.dat in the result. What command/what do I need to change to build a .3dsx file?
     
  4. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    Are you getting any errors? The examples in ctrulib should be set up to make .3dsx files by default, that is what ctrulib is designed for after all.
     
  5. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    [​IMG]
     
  6. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    There's clearly an error right there, likely a problem with the code. The input example seemed to compile fine though.
     
  7. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    So, what should I do to fix this all up? The input example had the makefile from http://wiki.gbatemp.net/wiki/3DS_Homebrew, so that's why it was making a launcher.dat, though I'm still looking for .3dsx
     
  8. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
  9. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    I added it in to see if I could see if everything was setup with devkitpro. Though, are these errors occuring due to devkitpro or that ctrulib isn't installed right?
     
  10. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    That makefile isn't going to work. It's made for 3DS homebrew that doesn't use ctrulib, in other words launcher.dat homebrew.
    What I'm asking is why did you replace the makefile in the example with the one from the wiki?

    As for the error, I'm not sure. But to me it seems like you might be running the wrong MSys. It shouldn't be seeing "C:\Program Files (x86)\GnuWin32\bin". Do you have MSys already installed in that location? I don't have that folder on my PC at all.
    For whatever reason, the MAKE environment variable is returning that path. Specifically, in this part of the audio/mic makefile: "@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile"
     
    Last edited by The Real Jdbye, Jul 20, 2015
  11. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    [​IMG]
    What seems to be going on here now? Yikes, this is confusing me a bit. :wacko:
     
  12. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    I have no way of knowing because I can't see the actual error of the first one I've no idea what you've changed since your last post.

    I suggest you uninstall everything, delete the devKitPro folder and start over, and this time don't mess with the makefiles.

    In the devKitPro installer, make sure you select everything under devkitARM including libctru. Make sure you use the 1.5.4 installer, that's the latest one.

    With this setup and without doing anything else, I was able to compile the input demo (from smea's github) just fine from the msys that's installed with devkitPro, no problems at all. The audio/mic demo would not compile, I think it needs a newer version of ctrulib as the one included with devkitPro isn't entirely up to date, but that's a simple compile and copy/paste job. The graphics and sdmc demos also compiled fine. Didn't test the others.

    Also what is in the C:\Program Files (x86)\GnuWin32 folder?
     
  13. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    Okedokee, so I'll delete everything and start over. In the C:\Program Files (x86)\GnuWin32 folder is the Make command. I had this for quite a few years. Is there another Make command that devkitpro uses?
     
  14. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    Yes... And yours seems to be conflicting with it. Might be an environment variable that's set wrong. Or as I said, you might be running an old MSys copy you already had installed rather than the one in devkitPro.
     
  15. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    Ok, so I fixed it up to use dkp's make instead. Now this is happening: (using the msys included with dkp)
    [​IMG]
     
  16. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    You don't have devkitARM installed properly. Install the entire devkitARM with the devkitPro updater like i told you.
     
  17. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    [​IMG]
    My dkp directory after I used the updater and selected DKARM and Ctrulib
     
  18. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    And is the 3ds_rules file in the devkitARM directory?
     
  19. SuperScore29
    OP

    SuperScore29 Advanced Member

    Newcomer
    93
    24
    Jan 27, 2015
    The store that sells the Ice Climbers amiibo
    Yep, all the files are here now, but, now I'm getting this when I use make
    [​IMG]
    (Why do I have so much bad luck..)
     
  20. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    12,528
    5,474
    Mar 17, 2010
    Norway
    Alola
    Try "make clean" then "make"