Homebrew Im editing JKSM's Source. Have an issue

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
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?
 

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
mind giving me the error ?
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.


--------------------- MERGED ---------------------------

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

DjoeN

Captain Haddock!
Member
Joined
Oct 21, 2005
Messages
5,489
Trophies
0
Age
54
Location
Somewhere in this potatoland!
Website
djoen.dommel.be
XP
2,857
Country
Belgium
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
 

Attachments

  • khaxinit.cpp.txt
    38.6 KB · Views: 359

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
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
Can I ask, Where am I meant to put the JKSM source files and where am I meant to be putting these lib folders?
 

DjoeN

Captain Haddock!
Member
Joined
Oct 21, 2005
Messages
5,489
Trophies
0
Age
54
Location
Somewhere in this potatoland!
Website
djoen.dommel.be
XP
2,857
Country
Belgium
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)
Code:
@echo off
cls
%~d0
cd %~dp0
Title = Building JKSM...
if exist "JKSM" (
    echo Making a backup of your current JKSM folder
    xcopy "%~dp0\JKSM\*" "%~dp0\Backups_Compiles\Backup_JKSM" /e /i /y >nul
    cd JKSM
    Title = Building JKSM ^(Update^)...
    echo Updating repo...
    git pull origin master
    git submodule update --init --recursive
) else (
    Title = Building JKSM ^(Clone^)...
    echo Cloning repo...
    git clone --recursive https://github.com/J-D-K/JKSM.git
    cd JKSM
)
echo Building...
Title = Building JKSM ^(Clean^)...
make clean
Title = Building JKSM ^(Release^)...
make cia
Title = Building JKSM ^(Done^)
echo.
echo ####################################
color A
cd %~dp0
echo Done. Files are in the "JKSM" folder. && echo Press any key to continue ...
Pause >nul
exit

--------------------- MERGED ---------------------------

Can I ask, Where am I meant to put the JKSM source files and where am I meant to be putting these lib folders?
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
 

Attachments

  • AIO_BuildPortLibs Cruel.bat.txt
    21.4 KB · Views: 258

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
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)
Code:
@echo off
cls
%~d0
cd %~dp0
Title = Building JKSM...
if exist "JKSM" (
    echo Making a backup of your current JKSM folder
    xcopy "%~dp0\JKSM\*" "%~dp0\Backups_Compiles\Backup_JKSM" /e /i /y >nul
    cd JKSM
    Title = Building JKSM ^(Update^)...
    echo Updating repo...
    git pull origin master
    git submodule update --init --recursive
) else (
    Title = Building JKSM ^(Clone^)...
    echo Cloning repo...
    git clone --recursive https://github.com/J-D-K/JKSM.git
    cd JKSM
)
echo Building...
Title = Building JKSM ^(Clean^)...
make clean
Title = Building JKSM ^(Release^)...
make cia
Title = Building JKSM ^(Done^)
echo.
echo ####################################
color A
cd %~dp0
echo Done. Files are in the "JKSM" folder. && echo Press any key to continue ...
Pause >nul
exit

--------------------- MERGED ---------------------------


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
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 ...

--------------------- MERGED ---------------------------

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" ('

--------------------- MERGED ---------------------------

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?"

--------------------- MERGED ---------------------------

So anyone know whats wrong?

--------------------- MERGED ---------------------------

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 ...


--------------------- MERGED ---------------------------

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
 

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
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

--------------------- MERGED ---------------------------

btw I did install gcc on MinGW
f3fc92cf37ce8cb42000a39bdf68316a.gif
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,008
Trophies
2
Age
36
XP
4,569
Country
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.
 

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
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.
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
 

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,036
Country
Ireland
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" :/

--------------------- MERGED ---------------------------

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

--------------------- MERGED ---------------------------

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 :/

--------------------- MERGED ---------------------------

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?

--------------------- MERGED ---------------------------

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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    and idk if something will happen to my ps3 if i connect it to wifi with hen activated
  • Psionic Roshambo @ Psionic Roshambo:
    I remember when the Atari 2600 was new and exciting lol
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
    Psionic Roshambo @ Psionic Roshambo: Slightly slower loading but a bit more convenient