Homebrew Help needed in compiling homebrew

KirgoPlayer007

Well-Known Member
Member
Joined
Sep 25, 2021
Messages
122
Reaction score
51
Trophies
0
XP
665
Country
Romania
I am trying to compile this:
https://github.com/develer-staff/dspython

Everything went fine until I got to the part where you need to open msys_pyds.bat.
If I double click it msys_pyds.bat will open and close himself after.
(I know this might be very easy to solve but I am just very dumb)

Some help will be appreciated
Thanks in advance.
 
That batch file just defines some environment variables and then launches the devkitpro msys console window. This means you either did not install the required devkitpro components or it is not installed to the location specified in the batch file.
Also of note - the instruction for compiling this have you modify core build files in the devkitpro folder. You won’t be able to build other things with these changes in place. Something to keep in mind before reporting issue to devkitpro.
 
That batch file just defines some environment variables and then launches the devkitpro msys console window. This means you either did not install the required devkitpro components or it is not installed to the location specified in the batch file.
Also of note - the instruction for compiling this have you modify core build files in the devkitpro folder. You won’t be able to build other things with these changes in place. Something to keep in mind before reporting issue to devkitpro.
Can you help me to compile it? (Or maybe just compiling it yourself?)
 
Can you help me to compile it? (Or maybe just compiling it yourself?)
I really don’t have any interest in this. I found it mildly interesting when it was originally released but not particularly useful. This will also require a bit of work to compile with current devkitarm releases. So all in all not something I would want to invest time in myself.
 
I really don’t have any interest in this. I found it mildly interesting when it was originally released but noty particularly useful. This will also require a bit of work to compile with current devkitarm releases. So all in all not something I would want to invest time in myself.
Yea I understand
 
Still looking for help
Why don't you show some patience? If you are "just very dumb" then you can spend some time getting "less dumb" while you wait for someone to reply.

If I double click it msys_pyds.bat will open and close himself after.
(I know this might be very easy to solve but I am just very dumb)
Instead of double-clicking .bat files, you should open and command prompt window and run them from there instead.

If you do not know how to use the command prompt window, then I do not understand what you expect to accomplish with Python.
 
Why don't you show some patience? If you are "just very dumb" then you can spend some time getting "less dumb" while you wait for someone to reply.


Instead of double-clicking .bat files, you should open and command prompt window and run them from there instead.

If you do not know how to use the command prompt window, then I do not understand what you expect to accomplish with Python.
1.I just clarified that I still need help after elhobbs comment.Do you think I am just waiting for answers?

2.I tried that but it still won't work.
 
1.I just clarified that I still need help after elhobbs comment.Do you think I am just waiting for answers?

2.I tried that but it still won't work.
If what you want is for some to do this for you then you need to be up front about that.
If on the other hand you do want assistance then you need to be specific.
What did you do?
What did you expect?
What did you get as a result and why do you think that is a problem?
Things like error messages - actual details that people can help you solve.
 
1.I tried to execute the console enviroment that must be created by msys_pyds.bat.
2.I expected it to work because I changed some things that weren't right in there myself.
3.I got as a result a cmd that closed after half a second.
4.No error message at all.

If it might help here is the unchanged msys_pyds.bat:

SET PYTHONDIR=/c/Python26/
SET DEVKITPRO=/c/devkitPro/
SET DSPYTHON=/c/dspython/
SET MINGWDIR=/c/MinGW/

rem
rem You should not customize anything beyond this point
rem

SET DEVKITARM=%DEVKITPRO%/devkitARM/
SET PATH=%MINGWDIR%/bin;%DEVKITPRO%/msys/bin;%DEVKITARM%/bin;%PYTHONDIR%/;%PYTHONDIR%/Scripts
SET INCLUDE=%DEVKITARM%/arm-eabi/include
SET LIB=%DEVKITARM%/arm-eabi/lib

rem stackless
set ARCH=-mthumb -mthumb-interwork
set BASECFLAGS=-ffast-math %ARCH% -DARM9 -DNDS
set CFLAGS=-ffast-math %ARCH% -DARM9 -DNDS
set LDFLAGS=-specs=ds_arm9.specs -g %ARCH% -lnds9 -L%DEVKITPRO%/libnds/lib

set CC_FOR_BUILD=gcc
set PYTHON_FOR_BUILD=%PYTHONDIR%/python

c:\devkitPro\msys\msys.bat
 

Attachments

Don’t run the file by double clicking on it. Open a windows command prompt and run it there. Do you get an error message? Do you see the msys console open? Does that go away? Are you able to run the msys command prompt from the devkitpro options on the start menu?
 
Don’t run the file by double clicking on it. Open a windows command prompt and run it there. Do you get an error message? Do you see the msys console open? Does that go away? Are you able to run the msys command prompt from the devkitpro options on the start menu?
This is the error I get when I run msys_pyds.bat from cmd.
The system cannot find a path specified
 
This is the error I get when I run msys_pyds.bat from cmd.
The system cannot find a path specified
This is where a screenshot or a cut/paste with everything - both the command you entered and the output.
Based on the limited context - you are either not in the directory containing msys_pyds.bat or the I try is not finding the msys.bat file.
As I asked before - are you able to open msys.bat from the start menu? Do you actually have devkitarm installed? Is it installed to the c:\devkitpro folder?
 
  • Like
Reactions: Takokeshi
A little late, but I've been attempting this very same thing - I got past this step by changing msys to msys2 - there seems to have been an update or two in the last 12 years :)
- Replace "c:\devkitPro\msys\msys_shell.bat" with "c:\devkitPro\msys2\msys2_shell.bat" and
- Replace "SET PATH= ... %DEVKITPRO%/msys/bin; ... " with "SET PATH= ... %DEVKITPRO%/msys2/bin; ... "

However I still have not got the app to compile correctly despite MANY other changes to the bulid process. (Python2 -> Python3 conversions, updates to many diffrent configuration files to support msys2 and other changes since then)

There's a pre-bulit linked in the wiki (on github, don't have enough xp to post link), however it seems to only work on no$gba (Or other emulators) but covers the bottom screen in random images when run on the real hardware. (Maybe a proble, with the filesystem type?)

If anyone is interested, I can further document my changes, but I don't know if re-building will result in any changes to how well it works on hardware.
 
you may have to compile this in msys, which can have its on devkitpro in the opt folder. here's mine currently:

1661258170091.png
 
I tried to compile this, but it was just too old, and there were way too many problems. I got up to the libpython step, then it would no longer compile. something was either wrong with the compiler or it was missing dependencies that may be lost to time.
 
I tried to compile this, but it was just too old, and there were way too many problems. I got up to the libpython step, then it would no longer compile. something was either wrong with the compiler or it was missing dependencies that may be lost to time.
Hello! If you want to compile the homebrew I think you should contact the creator of it on his email. I had a really nice chat with him regarding the homebrew!
 
  • Like
Reactions: godreborn
what I don't understand about this one is why it tells you to install both mingw and msys.
 

Site & Scene News

Popular threads in this forum