How to setup Dev Environment? (nihstro, libsf2d, sfillib)

Discussion in '3DS - Homebrew Development and Emulators' started by xXDungeon_CrawlerXx, Oct 21, 2015.

  1. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    Hey Guys,

    I want to setup the Dev Environment for 3DS.
    Things I already installed and got to work:
    - DevKitPro (DevKitARM)
    - ctrulib
    - MinGW
    - cMake

    but to build some homebrews, I need nihstro, libsf2d and sfillib.
    I tried to build libsd2d but I get:
    make[1]: nihstro-assamble: Command not found
    make[1]: *** [shader.vsh.o] Error 127
    make: *** [build] Error 2

    So I got the newest builds of "nihstro-assamble.exe" and "nihstro-disassamble.exe" and placed them into some Folders but it didn't worked.

    What do I need to do next to get everything I listed to work?
     
    Last edited by xXDungeon_CrawlerXx, Oct 21, 2015
  2. norips

    norips Member

    Newcomer
    32
    38
    Aug 13, 2012
    France
    Download libsf2d, go to the folder, make and make install, check the makefile's sample for LIBS flag and you're done.
    You can make the same with other lib such as sfilib.

    EDIT:
    Put your nihstro file here : /devkitPro/devkitARM/bin
    Just tested and this work fine
     
    Last edited by norips, Oct 21, 2015
    xXDungeon_CrawlerXx likes this.
  3. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    thank you, that worked well! :)
     
  4. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    another problem :\
    [​IMG]
    anyone knows how to fix it?
    tried to find a installer for the icu-i18n or something i have to use with "make" and "make install" but don't know where I get it and how I can get it to work.
     
  5. norips

    norips Member

    Newcomer
    32
    38
    Aug 13, 2012
    France
  6. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    tried it.
    Whera should I place the files I got (bin64/<files>, include/<stuff>, lib64/>stuff>)
     
  7. norips

    norips Member

    Newcomer
    32
    38
    Aug 13, 2012
    France
  8. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    Tried it, doesn't work either.
    Tried to get the newest build of icu again and placed the folder to C:\
    After this, I added "C:\icu\bin" to PATH.
    Still don't work... Same error message like this from Post #4.
    Any ideas? want to compile Easy RPG Player :P
     
  9. Mastak

    Mastak Advanced Member

    Newcomer
    99
    40
    Oct 17, 2015
    United States
    You must use the Makefile in the builds/3ds folder in my 3ds branch 3DS
    (you must set EASYRPG_PORTLIBS env var to the path of the PORTLIBS directory)

    That's all I have to say about this, cross-compiling all the dependencies is very simple (almost always just configure && make with the usual cross-compile arguments).
    Instead of ICU (compile liblcf with --disable-icu) you can use Iconv instead, is simpler to compile.
     
    xXDungeon_CrawlerXx likes this.
  10. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    okay, now I got the most things to work (almost) but now; I get this error:
    [​IMG]

    The problem is: there's no config.h...
    Any Idea what I should do now?
     
  11. Mastak

    Mastak Advanced Member

    Newcomer
    99
    40
    Oct 17, 2015
    United States
    You can't just simply copy-paste pixman into the easyrpg src folder... You must compile it as a library...

    Read here for some hints Portlibs
     
  12. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,194
    523
    Jul 29, 2015
    Liverpool
    okay, will try it :P