- 14
- Posts
- 11
- Years
- Seen Jan 1, 2025
I use Cygwin (for someone with 0 experience in Linux, it seems simpler to me than WSL). I've assembled some disassemblies before (Pokered for example), but for the life of me I can't figure out how to assemble Pokemon Stadium 2. I cloned the whole Pokestadium branch (I know you can't take the Stadiumgs folder only), try and run the make command in Stadiumgs, but I just get errors.
It says /utils/json2rostertbl doesn't exist, and if I either change json2rostertbl.c to without the extension or instead change the json2rostertbl mention in the Makefile to json2rostertbl.c, that just tells me there's a syntax error in void 'printpokemon(struct json_object *);'. But my guess is I shouldn't need to rename anything in the first place and it's instead supposed to first compile json2rostertbl.c into a same-named file without extension, which it doesn't do.
My guess is I need to install a package to Cygwin (I only have the packages installed required for Pokered and other disassemblies using the same packages)? In my experimentation (I tried manually compiling json2rostetbl.c just as a test to see what would happen) I notice that 2 of the includes, json_tokener.h and json_util.h, aren't found, which lead me to that conclusion. If so, what package(s) do I need? And if not, then what's the problem?
EDIT: I'm a little bit further. I got an answer elsewhere that first the make command has to be run in the utils folder. First time ever for me that I'm dealing with having to run multiple make commands, so I wasn't aware of that. Did this on a completely new clone of the disassembly (deleted the previous entirely to make sure no edits I made could mess up things). However, I'm getting a bunch of errors, all a variation of this (different hex numbers and json_object_):
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccRQZIsV.o:json2rostertbl:(.text+0x2f5): undefined reference to `json_object_get_string'
EDIT2: It looks like all I need now is presjpeg.c which for some reason isn't included in the disassembly, and then it should be smooth sailing from there.
It says /utils/json2rostertbl doesn't exist, and if I either change json2rostertbl.c to without the extension or instead change the json2rostertbl mention in the Makefile to json2rostertbl.c, that just tells me there's a syntax error in void 'printpokemon(struct json_object *);'. But my guess is I shouldn't need to rename anything in the first place and it's instead supposed to first compile json2rostertbl.c into a same-named file without extension, which it doesn't do.
My guess is I need to install a package to Cygwin (I only have the packages installed required for Pokered and other disassemblies using the same packages)? In my experimentation (I tried manually compiling json2rostetbl.c just as a test to see what would happen) I notice that 2 of the includes, json_tokener.h and json_util.h, aren't found, which lead me to that conclusion. If so, what package(s) do I need? And if not, then what's the problem?
EDIT: I'm a little bit further. I got an answer elsewhere that first the make command has to be run in the utils folder. First time ever for me that I'm dealing with having to run multiple make commands, so I wasn't aware of that. Did this on a completely new clone of the disassembly (deleted the previous entirely to make sure no edits I made could mess up things). However, I'm getting a bunch of errors, all a variation of this (different hex numbers and json_object_):
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccRQZIsV.o:json2rostertbl:(.text+0x2f5): undefined reference to `json_object_get_string'
EDIT2: It looks like all I need now is presjpeg.c which for some reason isn't included in the disassembly, and then it should be smooth sailing from there.
Last edited: