Next Generation Emulation banner

1 - 9 of 9 Posts

·
Registered
Joined
·
7 Posts
Discussion Starter #1
i can't compiling dxbx from svn[rev 307] on delphi 2007...
exe-files is perfectly compile... but when i'm compiling any dll(DxbxDLL.dpr or DxbxKrnl.dpr) i get error:
Code:
...
[DCC Error] JclFileUtils.pas(1547): E2003 Undeclared identifier: 'AnsiLineFeed'
[DCC Error] JclFileUtils.pas(1547): E2003 Undeclared identifier: 'AnsiCarriageReturn'
...
can any help me.. =)...

p.s. and don't work build.cmd .. =)
 

·
Registered
Joined
·
7 Posts
Discussion Starter #3
build.cmd still dont work.. =)...

BUT... in the IDE is compiling OK.. =))...
thanx very much... ;)....
 

·
Registered
Joined
·
907 Posts
sorry for the late response..

The build.cmd is not working because some problems with the include files.
Want scripts is not my best part... so if you got some experiance ;) be free to adjust them.

I wanted to make Finalbulder scripts, but there is no free version of that.. :(
 

·
Registered
Joined
·
7 Posts
Discussion Starter #5 (Edited)
now i write cmd script for building DXBX.. =)...
Dxbx.exe is compiling OK.. =)...
DxbxKrnl.dll... hm... i get 1 error...
Code:
...
DxbxKrnl\uDxbxDebugUtils.pas(153) Error: E2003 Undeclared identifier: 'uLog'
...
if line:
Code:
...
153: uLog.DbgPrintf('DxbxErrorHandler(%d,$%.8x) %s', [ErrorCode, ErrorAddr, JclLastExceptStackListToString]);
...
....
what is the uLog identifier?????
a can find any record about this ident in source code.... =((
if comment this line.. compiling is OK....

if compiling with GUI.... error not show.. =)
 

·
Registered
Joined
·
907 Posts
What yah using for making the compiler script ?? ( want ? )
When yah try to compile the dll insert the following Conditionals:

DEBUG;DXBX_DEBUG;DXBX_DLL;_DEBUG_TRACE;_DEBUG_TRACK_PB

this will fix the problem..
Ulog is a delphi unit used for logging, here DbgPrintF is the log function and is in the uLog.pas file.


When yah compile in gui mode ( delphi itself ) these conditionls are probably already set.
Some command compilers ( like want and also Finalbuilder ) will not take the conditional options from the project file.
 

·
Registered
Joined
·
7 Posts
Discussion Starter #7
What yah using for making the compiler script ?? ( want ? )
no.... it easy.. =).... i want TRUE way.. =)))

When yah try to compile the dll insert the following Conditionals:
DEBUG;DXBX_DEBUG;DXBX_DLL;_DEBUG_TRACE;_DEBUG_TRACK_PB
this will fix the problem..
coool... its work.. =)... thanks..

like:
Code:
set BDS=c:\Program Files\[Coding]\Delphi 2007
set Folders="..\src";"..\Libraries\DirectX9";"..\Libraries\Jcl";"..\Libraries\Jcl\common";"..\Libraries\Jcl\windows";"..\Libraries\jwapi\Common";"..\Libraries\jwapi\Win32API";"%BDS%\lib";"%BDS%\Imports"
@dcc32.exe -E..\bin -I%Folders% -N0..\dcu -NH..\dcu -NO..\dcu -O%Folders% -U%Folders% --no-config -$O- -$Q+ -$R+ -$Y+ Dxbx.dpr
this for compiling dxbx.exe.. =)...

after i'm all testing... i post full script.. =)
 

·
Registered
Joined
·
907 Posts
ok i see ... yah not using the want tool... but the BDS to compile.

prehaps yah can take a look at "Want" its in the Want folder.
That is a bit more difficult then yust call the bds, but then you also support more delphi versions :)

but working with the bds makes things lot easier.
prehaps yah can use something to get the path of bds compiler. then other delphi versions works also.


cant wait to see more of this script, this will work lot better then my try and error build script
 

·
Registered
Joined
·
7 Posts
Discussion Starter #9 (Edited)
heh.. enjoy.. =)...
for using small manual:
1) rename to makefile.cmd
2) place in root folder of svn repositories(near build.cmd or gpl.txt)...
3) add to PATH environment variable folder %BDS%\source\Win32\rtl\sys\ and %BDS%\Bin (example: c:\Program Files\[Coding]\Delphi_2007\source\Win32\rtl\sys\;C:\Program Files\[Coding]\Delphi_2007\Bin)
4) in makefile.cmd set path to %BDS% folder.. =)... in line 21..
examle:
Code:
set BDS=c:\Program Files\[Coding]\Delphi_2007
5) run makefile.cmd for buildings
6) run in cmd.exe
Code:
makefile clean
for clean temp files

fuhh... it was funny.. =).... i see too many errors.. =).... but now building without any error... test on DXBX rev 369.. =)

if will be any errors.. please report me... i try to fix it...
for report... set to 1st line in makefile.cmd
Code:
echo on
and send me all info from screen... and attach file Bin\BuildLog.txt..

if this script is work perfect.. and coders want upload in svn, i can say some fix for rationality svn structure... (for example: del "Want\" folder, del "Bin\" folder, create folder "Stuff\"(or other name) with need libraries) and fix final version script.. =)

p.s. i try studing Want script... but without any progress... and i start write this script.. =)...

p.s.2. upload new build of script.. =)...
 
1 - 9 of 9 Posts
Top