Prebuilt ctrcommon library?

Discussion in '3DS - Homebrew Development and Emulators' started by d0k3, May 18, 2015.

  1. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,564
    2,581
    Dec 3, 2004
    Gambia, The
    I'm just trying to compile & install the ctrcommon library by Steveice10. However, the makefile for the library depends on a ton of stuff, including (but possibly not limited to) ctrulib (okay, that's a given), aemstro, a library version of libkhax, servicepatch (which I haven't found anywhere) a file called git.exe (which I can only assume comes with GitHub for Windows). I've tried to tackle these dependencies one by one, finally getting it to finish, but now I'm unsure wether the ctrcommon library is installed correctly in my devkitPro directory or if there will be trouble with compiled programs later on.

    So, any chance anyone has a prebuilt version of the library available? Also, space is a bit limited on my developement laptop, so I'd prefer not to have to install tons of additional stuff.
     
  2. Jim_e

    Jim_e Advanced Member

    Newcomer
    79
    41
    Nov 13, 2007
    United States
    He makes changes to ctrcommon all the time, if you want to keep up to date, you'll need to get the build process right.

    Let me go over somethings

    Download git from here. Make sure to install so it can use the more common functions from the cmd line. But don't replace find.

    CTRULIB needs to be defined.
    Code:
     CTRULIB    :=    $(DEVKITPRO)/libctru
    You can put that in your make file or set it in the enviroment varibles.

    For aemstro, download python3, make sure it's in your PATH. Then copy the py code to $(DEVKITPRO)/msys

    libhax will download via git. nothing needs to be done assuming you've done everything else.
     
  3. d0k3
    OP

    d0k3 3DS Homebrew Legend

    Member
    2,564
    2,581
    Dec 3, 2004
    Gambia, The
    Alright, thank you. With these instructions I think I'll be able to compile & install it the way SteveIce10 intended. However, to be blunt, I don't even want to keep up to date, I just want the library installed once and never update. Also, space on my development laptop is very limited, and I don't even want to start to go through the troubles of having Python 2.7.x and 3.x installed alongside on the same machine. So, no chance to get any prebuilt libraries? :)
     
  4. Jim_e

    Jim_e Advanced Member

    Newcomer
    79
    41
    Nov 13, 2007
    United States
    Even if I gave you the prebuilt ones, you need python to assemble any shaders you write. If you intend to use the GPU, then it's not optional atm.
     
  5. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,646
    Jul 19, 2009
    United States
    I did add a default shader recently, so it is possible to do basic 2D stuff without your own shader. Anyway, I don't really plan on providing pre-built downloads. It should only need git (to pull it from GitHub and to pull the latest version of libkhax), ctrulib, aemstro, and Python to run aemstro. Plus the obvious things like devkitPro, make, etc.
     
    d0k3 likes this.
  6. Jim_e

    Jim_e Advanced Member

    Newcomer
    79
    41
    Nov 13, 2007
    United States
    Since this is basically ctrcommon thread let me ask you a question. Does ctrcommon have a default banner or a quick way to make one built in? I haven't bothered to make one, and I basically just stole gameyob's to do some tests.
     
  7. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,646
    Jul 19, 2009
    United States
    My homebrew template contains my default banner. Feel free to use it in testing if you wish.