Homebrew Development

Discussion in '3DS - Homebrew Development and Emulators' started by aliak11, Jan 16, 2014.

  1. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    When I made a folder I seemed to be doing pretty well, but warnings and errors came out.
    Is it okay to ignore these?

    configure: WARNING: unrecognized options: --disable-oggtest
    configure: WARNING: if you wanted to set the --build type, do not use --host.
    make: *** [tremor] Error 1


    I tried again with MSys instead of command prompt and it worked!
    Thank you!
     
    Last edited by tgaiu, Sep 22, 2017
  2. nop90

    nop90 GBAtemp Advanced Maniac

    Member
    1,533
    2,341
    Jan 11, 2014
    Italy
    Rome
    Is there a way to now the amount of memory allocated (or availabe) with the c lib?

    I know there is't a standard one, I'm asking if there is a custom one in the devkitARM toolchain

    I'm debugging the code of my latest port (Zelda3T) trying to find every memory leakage and I vant to show on the 3ds console the available memory left during the game.

    Using the ctrulib allocation functions (mappableAlloc and lineasrAlloc) I can get the free memory with the ctrulib functions mappableSpaceFree() and linearSpaceFree().

    But allocating memory with the c lib (malloc or the new operator in C++) the ctrulib doesn't trace the allocated memory.
     
  3. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    It was displayed as 1051708.
     
  4. nop90

    nop90 GBAtemp Advanced Maniac

    Member
    1,533
    2,341
    Jan 11, 2014
    Italy
    Rome
    Displayed what?

    I know the ctrulib returns a value, but allocating memory with malloc doesn't decrease the value. Tryed allocatig several 1Mb blocks till consuming all the available memory and the value of free mem remains the same.
     
  5. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    I ran the following code.
    printf("%u",linearSpaceFree())
     
  6. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    I wanted to develop in visual studio, I read the tutorial and download 3DS-VS-Template.
    If you try to open the project and build it, you will see that "make can not be found".
    What went wrong?
     
  7. bee395

    bee395 Member

    Newcomer
    16
    3
    Jun 26, 2016
    Netherlands
    The Makefile of your template doesn't contain the "make" command, maybe you don't need it because the vs template uses buildtools. Does your project build when you build directly from the folder, without vs so the "default" way of building projects? If that doesn't work there is probably nothing wrong with vs but with your makefile / buildtools.

    I personally just use the normal template with vs, that works fine for me.
     
  8. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    I tried to build directly from the folder and got the following error.
    /bin/sh: line 1: zip: command not found
    What should I do?
     
  9. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    819
    302
    Jul 28, 2008
    United States
    Are you building from the msys command prompt? It is installed with the devkitpro installer.
     
  10. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    I built it with msys.
    However, "zip: command not found" appears as an error.
     
  11. bee395

    bee395 Member

    Newcomer
    16
    3
    Jun 26, 2016
    Netherlands
    I think there is something wrong with your Template.vcxproj, you also need to make sure that the path of your project doesn't contain white spaces, which the default location does (../Visual Studio xxxx/..).
     
  12. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    The project is placed directly under the C drive.
    The template uses 3DS-VS-Template as it is, puts buildtools in the buildtools folder, and does not finger otherwise.
    Is there anything wrong with the procedure?
     
  13. bee395

    bee395 Member

    Newcomer
    16
    3
    Jun 26, 2016
    Netherlands
    Did you follow this guide?
     
  14. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    Yes,I read it.
     
  15. bee395

    bee395 Member

    Newcomer
    16
    3
    Jun 26, 2016
    Netherlands
    Which template did you use?

    When I create a new makefile c++ project, import a makefile and change the build commands it still works. Even when I don't import the devkitPRO filepaths. So if the template doesn't work maybe try to make a new makefile project and change a few settings.
     
  16. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
    I have used this template.
    https://github.com/usagirei/3DS-VS-Template
     
    Last edited by tgaiu, Sep 27, 2017
  17. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    819
    302
    Jul 28, 2008
    United States
  18. tgaiu

    tgaiu Member

    Newcomer
    33
    3
    Sep 10, 2017
    Japan
  19. LinkKenedy

    LinkKenedy Advanced Member

    Newcomer
    67
    25
    Feb 14, 2015
    France
    devkitARMupdate.pl donde sourceforge its offline?
     
  20. Togetoge

    Togetoge Member

    Newcomer
    13
    1
    Sep 18, 2017
    Japan
    I would like to use libtremor to play the ogg file in the SD card, but using the "ov_fopen" function makes a reference to undefined.
    How can I play ogg files on SD card?
     
Loading...