Page 1 of 1

Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: April 28th, 2019, 8:59 am
by shiroi
Has anyone been able to compile "beatmania APPEND 5thMIX -Time to get down-"
Currently I'm able to compile the main executable and objects.
But in the APPEND MAKEFILE i'm missing a dependency "safechk.obj"
Does anyone have or know any information about this object file?
It sounds as if it's for CD protection.

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: May 14th, 2019, 6:09 am
by Shadow
Probably just comment it out and not include it. You won't be able to find that object file anywhere unless it is re-generated by the linker during compilation, but you'll have to look at the source to find if they actually do that.

Another idea is maybe, just maybe, you might be able to extract the object code from the retail release of the game and re-create it that way. To do that, it's best to attempt 'spirit_t0asters' work: http://www.psxdev.net/forum/viewtopic.php?f=62&t=1582

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: May 28th, 2019, 7:43 am
by PinAlan
"Another idea is maybe, just maybe, you might be able to extract the object code from the retail release of the game and re-create it that way."

Hmm, that might work as well.

By the way, new guy here as well. Whenever I’m taking a break from this particular interest, I’m usually found at home, watching my Pomeranian relax in his cooling dog bed while watching TV with the wife and kids. Such a simple, yet, happy life. Have a nice day!

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: May 31st, 2019, 11:00 pm
by Shiro
I'm back, thanks for replying. I am locked out of my previous account :/
After deleting the comments (comments within data structures are causing parsing errors. And having spaces after semicolons will cause parsing errors.)

The pre-processor gives the error "Symbol multiply defined"
Does anyone know what this error means in regards to "ccpsx.exe"

Code: Select all

ccpsx @C:/WORK.5TH/options C:/WORK.5TH/Main/bm.c
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OBJ_CopySet' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OBJ_Clear' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'bzero_fast' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'GetWorkBase' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'SetWorkBase' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'copy_set' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OBJ_Create' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OBJ_CopySetOK' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'odma' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OBJ_WorkCheck' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OPD_Load' multiply defined
C:\WORK.5TH\LIB\LIBOBJ.LIB : Error : Symbol 'OPD_Free' multiply defined
Errors during pass 1 - pass 2 abortedmake.exe: *** [bm.obj] Error 1

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: June 1st, 2019, 12:23 am
by TriMesh
That looks more like a linker error than anything from the preprocessor.

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: June 1st, 2019, 7:46 pm
by Shiro
Sorry, I had multiple definitions from linking different libraries.
I have a similar error caused? by "MTS.LIB"

Code: Select all

ccpsx @C:/WORK.5TH/options C:/WORK.5TH/Main/bm.c
C:\WORK.5TH\LIB\MTS.LIB : Error : Symbol 'printf' multiply defined
Errors during pass 1 - pass 2 abortedmake.exe: *** [bm.obj] Error 1
Press any key to continue . . .
"options" file (no extension)

Code: Select all

C:/WORK.5TH/-c -O2 -Wall -kanji -Wno-format -comments-c++ -Wa,0 -G 0 
-DBM4TH_MASTER -DDEBUG -DDEBUG_MODE -DPSX -DNTSC 
-I C:/WORK.5TH/include -I C:/WORK.5TH/libfs -I C:/WORK.5TH/libmc -I C:/WORK.5TH/libsio -I C:/WORK.5TH/libbm -I C:/WORK.5TH/libsrn -I C:/WORK.5TH/dbgstr
-l C:/WORK.5TH/LIB/MTS.LIB
Without "MTS.LIB" ccpsx throws,

Code: Select all

ccpsx @C:/WORK.5TH/options C:/WORK.5TH/Main/bm.c
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'init_sio' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'sys' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'sys' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'bzero_fast' not defined

C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'sys0' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'sys0' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'bzero_fast' not defined

C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'oldsys2newsys' not defi
ned
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'mts_init_vsync' not def
ined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'MC_StartDaemon' not def
ined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'mts_set_vsync_task' not
 defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'mts_init_controller' no
t defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'FS_StartDaemon' not def
ined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'SdMain' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'cold_reset_init' not de
fined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'initRnd' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'IR_Err_MakeCheckData' n
ot defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'main_loop_tbl' not defi
ned
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'main_loop_tbl' not defi
ned
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'psys' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'psys' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'buf_clear' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'BM_UpdatePad' not defin
ed
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'odma' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'vram_write' not defined

C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'vsync' not defined
C:\DOCUME~1\ADMINI~1\LOCALS~1\TEMP\PQ4 : Error : Symbol 'mts_boot_task' not defi
ned
make.exe: *** [bm.obj] Error 1
Press any key to continue . . .
Is the "Symbol multiply defined" error only caused by multiple definitions?

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: June 2nd, 2019, 3:33 am
by Shadow
That's strange. They've made their own printf function it seems and it's a multiple now of Psy-Q's. You could try disabling linking with the default Psy-Q libs and not include the one that has printf, or if that library source is compilable and linkable, rename the function.

Re: Compiling: beatmania APPEND 5thMIX -Time to get down-

Posted: June 6th, 2019, 2:06 pm
by Shiro
I will update this post with more information, and updated Makefiles.
WORK.5TH Root Directory
WORK.5TH\MAKEFILE.A Main Makefile
WORK.5TH\APPEND Partially Compilable
WORK.5TH\AWK
WORK.5TH\CDROM.IMG

WORK.5TH\DBGSTR Compilable
Truncated headers are in here.

WORK.5TH\DOC
WORK.5TH\INCLUDE Header directory
WORK.5TH\LIB Dynamic libraries directory
WORK.5TH\LIBBM Compilable
WORK.5TH\LIBFS Compilable
WORK.5TH\LIBMC Compilable

WORK.5TH\LIBSRN Compilable
"SRNMAKE.C" Missing "color_w.h" can be commented out and compile.

WORK.5TH\MAIN Compilable
WORK.5TH\TAN Partially Compilable