Help updating ctrulib!

Discussion in '3DS - Homebrew Development and Emulators' started by spinal_cord, Sep 17, 2015.

  1. spinal_cord
    OP

    spinal_cord Knows his stuff

    Member
    3,014
    595
    Jul 21, 2007
    somewhere
    OK, here's the issue, I'm being told be some forum members that my ctrulib must be outdated because I can't get one of the code examples to compile. I have redownloaded ctrulib and rebuilt it several times but it isn'n making any difference. Can someone tell me if I'm missing a step --

    Download ctrulib from here -- https://github.com/smealum/ctrulib
    drop into devkitpro folder like so --

    /opt/devkitpro/default.elf
    /opt/devkitpro/devkitARM
    /opt/devkitpro/examples
    /opt/devkitpro/include
    /opt/devkitpro/lib
    /opt/devkitpro/libctru
    /opt/devkitpro/libgba
    /opt/devkitpro/libmirko
    /opt/devkitpro/libnds
    /opt/devkitpro/maxmod_license.txt

    open terminal and cd to libctru...

    MacMini: spinal$ cd /opt/devkitpro/libctru

    and build...

    MacMini:libctru spinal$ make

    make[1]: `/opt/devkitpro/libctru/lib/libctru.a' is up to date.


    Now, is there a next step or isn't there, because this is making no difference to me being able to try the audio example.


    Thanks.
     
  2. sarkwalvein

    sarkwalvein Professional asshole at GBATemp

    Member
    GBAtemp Patron
    sarkwalvein is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,011
    5,195
    Jun 29, 2007
    Germany
    Niedersachsen
    what about make clean then make?
     
  3. zoogie

    zoogie simple pimp tool

    Member
    6,340
    8,021
    Nov 30, 2014
    United States
    running
    "make && make install"
    on libctru dir should put it in the right place
    at least it does on windows
     
  4. sarkwalvein

    sarkwalvein Professional asshole at GBATemp

    Member
    GBAtemp Patron
    sarkwalvein is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    5,011
    5,195
    Jun 29, 2007
    Germany
    Niedersachsen
    but don't forget the make clean, because if it says it is up to date, notably something is broken regarding the timestamps in your object files as well as your library file.
    so clean them out (either using make clean, or manually deleting all .o and .a files) and then make.
    and only then make install.

    ...perhaps...
     
  5. spinal_cord
    OP

    spinal_cord Knows his stuff

    Member
    3,014
    595
    Jul 21, 2007
    somewhere
    done and fixed. Thanks guys.

    Now just to figure out how to add sound to my project and a lot of people (well, three or four) will be very happy :-)