Emuforums.com

Go Back   Emuforums.com > Xbox Emulation > Dxbx Official Discussion
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old November 17th, 2008   #1 (permalink)
Registered User
 
Join Date: Nov 2008
Location: exUSSR, pvl
Posts: 6
compiling problem...

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 .. =)
s1nka is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old November 17th, 2008   #2 (permalink)
Emu author
 
patrickvl's Avatar
 
Join Date: May 2008
Location: Netherlands
Posts: 97
I'll look into this, thanks for the heads-up.
With a bit of luck this could be fixed within an hour or two...

Could you try revision 309, it should compile again with that... please let me know!

Last edited by patrickvl; November 17th, 2008 at 22:19.. Reason: Automerged Doublepost
patrickvl is offline   Reply With Quote
Old November 18th, 2008   #3 (permalink)
Registered User
 
Join Date: Nov 2008
Location: exUSSR, pvl
Posts: 6
build.cmd still dont work.. =)...

BUT... in the IDE is compiling OK.. =))...
thanx very much... ....
s1nka is offline   Reply With Quote
Old November 18th, 2008   #4 (permalink)
Emu author
 
shadow_tj's Avatar
 
Join Date: Jul 2003
Location: Netherlands
Posts: 656
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..
shadow_tj is offline   Reply With Quote
Old December 15th, 2008   #5 (permalink)
Registered User
 
Join Date: Nov 2008
Location: exUSSR, pvl
Posts: 6
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.. =)

Last edited by s1nka; December 15th, 2008 at 19:31..
s1nka is offline   Reply With Quote
Old December 15th, 2008   #6 (permalink)
Emu author
 
shadow_tj's Avatar
 
Join Date: Jul 2003
Location: Netherlands
Posts: 656
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_TRAC K_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.
shadow_tj is offline   Reply With Quote
Old December 16th, 2008   #7 (permalink)
Registered User
 
Join Date: Nov 2008
Location: exUSSR, pvl
Posts: 6
Talking

Quote:
Originally Posted by shadow_tj View Post
What yah using for making the compiler script ?? ( want ? )
no.... it easy.. =).... i want TRUE way.. =)))

Quote:
Originally Posted by shadow_tj View Post
When yah try to compile the dll insert the following Conditionals:
DEBUG;DXBX_DEBUG;DXBX_DLL;_DEBUG_TRACE;_DEBUG_TRAC K_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.. =)
s1nka is offline   Reply With Quote
Old December 16th, 2008   #8 (permalink)
Emu author
 
shadow_tj's Avatar
 
Join Date: Jul 2003
Location: Netherlands
Posts: 656
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
shadow_tj is offline   Reply With Quote
Old December 16th, 2008   #9 (permalink)
Registered User
 
Join Date: Nov 2008
Location: exUSSR, pvl
Posts: 6
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.. =)...
Attached Files
File Type: txt makefile.cmd.txt (4.1 KB, 6 views)

Last edited by s1nka; December 18th, 2008 at 19:06.. Reason: smal fix in script file
s1nka is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:38.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5