Page 4 of 4 FirstFirst ... 234
Results 31 to 40 of 40

Thread: Graphix and FPC v1.0.10 Problem.

  1. #31
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Graphix and FPC v1.0.10 Problem.

    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)

  2. #32
    UU.NT1.5567318
    Guest

    Graphix and FPC v1.0.10 Problem.

    OK,i will try to DL Lazarus latest version.Then try to run it from there.I will post later the result.

  3. #33
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Graphix and FPC v1.0.10 Problem.

    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)

  4. #34
    EmbranceIII
    Guest

    Graphix and FPC v1.0.10 Problem.

    The commands line FPC(ppc386.exe) shows just some info..How to use it to compile something?

  5. #35
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Graphix and FPC v1.0.10 Problem.

    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:

    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
    You should change the relevant directories to suit your installation.

    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)

  6. #36

    Graphix and FPC v1.0.10 Problem.

    I used this a BAT file:
    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
    but every time ppc386.exe cruched and eoor reported...

  7. #37
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Graphix and FPC v1.0.10 Problem.

    OK. I created a batch file just like yours:

    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 resultant output (As stored in compile.txt) was:
    Hint: 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
    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\win32

    so we add it to the batch file

    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 - 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\ -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
    Again an error - do same thing:

    Now when I compile I get the following error: (right at the end of the compile.txt file).

    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
    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.

    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:

    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
    After all that it compiles just fine.

    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)

  8. #38

    Graphix and FPC v1.0.10 Problem.

    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.

  9. #39
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Graphix and FPC v1.0.10 Problem.

    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)

  10. #40
    EmbranceIII
    Guest

    Graphix and FPC v1.0.10 Problem.

    its an access violation error..I will post at FPC community to see what the prob could be....

Page 4 of 4 FirstFirst ... 234

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •