Did you try the command line option - if so what errros did you get (copy from the screen so that we can see the actual errors please)
Did you try the command line option - if so what errros did you get (copy from the screen so that we can see the actual errors please)
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
OK,i will try to DL Lazarus latest version.Then try to run it from there.I will post later the result.
Try use the FPC command line before using lazarus. By using the command line compiler we can see what errors you are getting more easily than with lazarus.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
The commands line FPC(ppc386.exe) shows just some info..How to use it to compile something?
What I do is I create a batch file in the project directory - e.g. Balls.bat
Inside the file I put a command similar to the following:
You should change the relevant directories to suit your installation.d:\lazarus\pp\bin\win32\ppc386 -S2cdgi -CD -OG1 -gl -XD -vewnhi -l -FuD:\lazarus\S2DL\ -FuD:\Lararus\JEDI-SDL\ -Fu. -oD:\lazarus\S2DL\demos\Balls\balls.exe D:\lazarus\S2DL\demos\Balls\balls.pp >Compile.txt
When I double click the batch file in the windows explorer it compiles the project for me.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
I used this a BAT file:
but every time ppc386.exe cruched and eoor reported...C:\FPC\bin\i386-win32\ppc386 -S2 -FuC:\FPC\units\S2DL\ -FuC:\FPC\units\SDL\ -Fu. -oC:\FPC\units\S2DL\Balls\balls.exe C:\FPC\units\S2DL\Balls\balls.pp >Compile.txt
OK. I created a batch file just like yours:
The resultant output (As stored in compile.txt) was:H:\CairnsGames\fpc\bin\win32\ppc386 -S2 -FuH:\CairnsGames\Games\S2DL\S2DL\ -FuH:\CairnsGames\JEDI-SDL\ -Fu. -oH:\CairnsGames\Games\S2DL\S2DL\Balls\balls.exe H:\CairnsGames\Games\S2DL\S2DL\Balls\balls.pp >Compile.txt
The error is clearly it cannot find unit CLASSES. This would indicate to me that something is incorrect in the paths used by FPC and should therefore be added to my list of directories to search for. After investigation classes.pp is in directory: H:\CairnsGames\fpc\source\fcl\win32Hint: End of reading config file h:\cairnsgames\fpc\bin\win32\fpc.cfg
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: Win32 for i386
Compiling h:\cairnsgames\games\s2dl\s2dl\balls\balls.pp
syswin32.pp(3,1) Hint: Conditional I386 was set at startup in last compilation of syswin32.pp
Compiling h:\cairnsgames\games\s2dl\s2dl\logger.pas
logger.pas(67,10) Fatal: Can't find unit CLASSES
so we add it to the batch file
Again an error - classesh.inc - found in H:\CairnsGames\fpc\source\fcl\inc - add to batch file: (Note this is an include!H:\CairnsGames\fpc\bin\win32\ppc386 -S2 -FuH:\CairnsGames\fpc\source\fcl\win32\ -FuH:\CairnsGames\Games\S2DL\S2DL\ -FuH:\CairnsGames\JEDI-SDL\ -Fu. -oH:\CairnsGames\Games\S2DL\S2DL\Balls\balls.exe H:\CairnsGames\Games\S2DL\S2DL\Balls\balls.pp >Compile.txt
Again an error - do same thing:H:\CairnsGames\fpc\bin\win32\ppc386 -S2 -FuH:\CairnsGames\fpc\source\fcl\win32\ -FiH:\CairnsGames\fpc\source\fcl\inc\ -FuH:\CairnsGames\Games\S2DL\S2DL\ -FuH:\CairnsGames\JEDI-SDL\ -Fu. -oH:\CairnsGames\Games\S2DL\S2DL\Balls\balls.exe H:\CairnsGames\Games\S2DL\S2DL\Balls\balls.pp >Compile.txt
Now when I compile I get the following error: (right at the end of the compile.txt file).
Now in reality I am a Delphi Developer - not a freepascal developer. This means I often use Delphi standards and not the normal freepascal stuff.Compiling s2dldraws.pp
s2dldraws.pp(91,22) Error: Illegal qualifier
s2dldraws.pp(91,22) Hint: Maybe pointer dereference is missing
s2dldraws.pp(91,22) Fatal: Syntax error, ; expected but identifier W found
You will notice that S2DL v1.04 will have Delphi Mode included in all files when released. When D2DL 1.0 and 1.02 were release I didn't know how to do this, so you need to set delphi mode when compiling - thats the -S2d switch in the following batch file:
After all that it compiles just fine.H:\CairnsGames\fpc\bin\win32\ppc386 -S2d -FuH:\CairnsGames\fpc\source\fcl\win32\ -FiH:\CairnsGames\fpc\source\fcl\inc\ -FiH:\CairnsGames\fpc\source\fcl\win32\ -FuH:\CairnsGames\Games\S2DL\S2DL\ -FuH:\CairnsGames\JEDI-SDL\ -Fu. -oH:\CairnsGames\Games\S2DL\S2DL\Balls\balls.exe H:\CairnsGames\Games\S2DL\S2DL\Balls\balls.pp >Compile.txt
I hope that following this you can get it compiled.
[size=9px]I had to do this whole process because you did not indicate what error you were recieving. When asking for help please could you include all information you have. In this case the batch file you were using as well as the full output (or errors only if too long) of the compile.txt file would have helped. If you were not using S2DL I probably would have ignored this post.[/size]
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
I posted my batch file just before you did.
Also how can i show you the errors,while ppc386 crashes??
I will try it the way you did it and post results later.
If it crashes it gives an error - we need to see that error to understand why it crashes. then we can help. If FPC is crashing as in an Acess Violation then I suggest you take it to the FreePascal foruns at www.freepascal.org as they should be able to help you.
We try our best to help here but we need enough information to be able to help.
William Cairns
My Games: http://www.cairnsgames.co.za (Currently very inactive)
MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)
its an access violation error..I will post at FPC community to see what the prob could be....
Bookmarks