Im editing JKSM's Source. Have an issue

Discussion in '3DS - Homebrew Development and Emulators' started by ShinyMK, Jun 29, 2016.

  1. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    So apparently I need, Devkitarm, ctrulib, xerpi's portlibs, xerpi's sf2d and xerpi's sftd.
    How do I install those? I have Devkit and I believe Ctrulib comes with it but how do I install the Xerpi stuff?
     
  2. MsMidnight

    MsMidnight part time fe modder

    Member
    1,753
    1,308
    Oct 12, 2015
    kys
    i think you run the makefile
     
  3. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Ok I did it on sf2d but for the others it just gives some error
     
  4. MsMidnight

    MsMidnight part time fe modder

    Member
    1,753
    1,308
    Oct 12, 2015
    kys
    mind giving me the error ?
     
  5. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Well atm in tryna install zlib since for freetype to be installed and i think another it needs it to be installed first. The error is to do ./configure before make and when I do that:
    $ ./configure
    Checking for gcc...
    Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
    ** ./configure aborting.


    — Posts automatically merged - Please don't double post! —

    Seem to have the same issue with ./configure for other libs
     
  6. DjoeN

    DjoeN Captain Haddock!

    Member
    5,169
    1,486
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    did you install mingw and checked if it's in your path?
    your path should have:
    - c:\devkitPro\devkitARM\bin\;
    - c:\MinGW\bin\;

    Also check and install this:
    - compile and install ctrulib from smea (make install)
    - compile and install citrus (make install) (maybe an edit is needed in the \citrus\source\libkhax\khaxinit.cpp)(see attached file below, remove the .txt and overwrite the original, recompile, should work fine now)
    - compile and install citro3D (make install)
    - compile and install sftdlib (make install)
    - compile and install sf2dlib (make install)
    - compile and install portlibs and zlib first, then the rest
    make zlib
    make install
    make freetype
    make install
    etc...

    If checked and you still get the gcc error, then install sygwin with develop option to install (warning install can take up to 45 minutes)

    [EDIT]
    This is for Windows PC :D
     

    Attached Files:

  7. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Can I ask, Where am I meant to put the JKSM source files and where am I meant to be putting these lib folders?
     
  8. DjoeN

    DjoeN Captain Haddock!

    Member
    5,169
    1,486
    Oct 21, 2005
    Belgium
    Somewhere in this potatoland!
    here's a batch script to build portlibs tools assuming you have your build enviroment correct:
    It's not Xerpi's versions of portlibs but @TheCruel , but the also work fine to build JKSM
    (Remove the .txt from the end)

    .
    .
    And here's a batch script to build JKSM (modify to build your fork)
    JKSM script

    — Posts automatically merged - Please don't double post! —

    You can place the JKSM batch script wherever you want in whatever folder you like (same for the portlibs batch script)

    If you use the batch script or
    make zlib
    make install

    it installs the libs in the correct folder:
    - c:\devkitPro\portlibs
     

    Attached Files:

  9. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Do I open it in Msys?
    cause with windows:
    Cloning repo...
    'git' is not recognized as an internal or external command,
    operable program or batch file.
    The system cannot find the path specified.
    Installing...
    make: *** No rule to make target `clean'. Stop.
    make: *** No rule to make target `freetype'. Stop.
    make: *** No rule to make target `install'. Stop.


    ##################################################################
    Done. Files are in the "3ds_portlibs" folder and installed to "\devkitPro\portlibs\".
    Press any key to continue ...

    — Posts automatically merged - Please don't double post! —

    I opened it in MSys:
    c:/users/Justin/Desktop/Thing.bat: line 3: fg: no job control
    c:/users/Justin/Desktop/Thing.bat: line 4: cd: %~dp0: No such file or directory
    c:/users/Justin/Desktop/Thing.bat: line 5: Title: command not found
    c:/users/Justin/Desktop/Thing.bat: line 6: syntax error near unexpected token `('
    c:/users/Justin/Desktop/Thing.bat: line 6: `if exist "JKSM" ('

    — Posts automatically merged - Please don't double post! —

    Btw I wasnt on about the Bat files when i said "Can I ask, Where am I meant to put the JKSM source files and where am I meant to be putting these lib folders?"

    — Posts automatically merged - Please don't double post! —

    So anyone know whats wrong?

    — Posts automatically merged - Please don't double post! —

    I installed git from: https://git-scm.com/download/win and the JKSM git errors dont happen. But two errors I still have on CMD are:
    Building...
    clean ...
    make[1]: /c/Users/Justin/Desktop/Homebrew: No such file or directory
    make[1]: *** No rule to make target `/c/Users/Justin/Desktop/Homebrew'. Stop.
    make: *** [build] Error 2

    ####################################
    Done. Files are in the "JKSM" folder.
    Press any key to continue ...


    — Posts automatically merged - Please don't double post! —

    Ok its having an issue compiling with the cia target.
    obviously its because I dont have all the libs installed. I try to use the bat file you gave me but it gives me an error. It seems like they are encrypted 2 times as a tar.* file and it doesnt extract twice making it try to make file on it but obviously it cant cause its not extracted
     
  10. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Anyone have any idea wtf im meant to do?
     
  11. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Ok so I found out it is because I dont have GCC/CC or something. I get an error saying
    checking for i686-pc-mingw32-gcc... no
    checking for gcc... no
    checking for cc... no
    configure: error: cannot find native C compiler

    — Posts automatically merged - Please don't double post! —

    btw I did install gcc on MinGW
    [​IMG]
     
  12. AnalogMan

    AnalogMan sumoCheatMenu Dev

    Member
    1,465
    863
    Apr 20, 2007
    United States
    Out of curiosity, I would like to modify the source too. What are you modifying? If I can get mine to compile I can do yours or share my setup if you'd like.
     
  13. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Just modding the UI to remove un-necessary stuff and want to change the media files used so they dont look like a chinese clone of the wood r4
     
  14. ShinyMK
    OP

    ShinyMK known as @initPRAGMA

    Member
    1,507
    532
    Dec 29, 2015
    127.0.0.1
    Ok I got it to start compiling JKSM but for some reason once it starts converting the 3dsx to a .cia it just errors saying "makerom command not found" :/

    — Posts automatically merged - Please don't double post! —

    Downloaded Makerom from here: https://github.com/profi200/Project_CTR/releases
    And it compiled successfully :D

    — Posts automatically merged - Please don't double post! —

    Rip. Tested the CIA and it doesnt work at all just a black screen D: It installs and you can see the icon ETC but nothing else works :/

    — Posts automatically merged - Please don't double post! —

    Hmm I moved my JKSV folder to: sd:/homebrew/3ds/JKSV like stated in the Readme, But its still not booting.
    Can someone compile the default source here: https://github.com/J-D-K/JKSM and tell me if you get the same issue?

    — Posts automatically merged - Please don't double post! —

    Ok I just tested seems to be an issue to do with JKSM as I compiled FBI with a Change of "SD" to "SDTest" on the main menu and it worked fine.