Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 40

Thread: Graphix and FPC v1.0.10 Problem.

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

    Graphix and FPC v1.0.10 Problem.

    I'm not quite sure how tyo help you here but when I compile Balls.dpr (or Balls.pp) if you have it called that it should also include a Balls.lpi file. In the LPI file are the seetings being used to compile with.

    Go into project - Compile Options and click on Show Options: You should have something like:

    -S2cdgi -CD -OG1 -gl -XD -vewnhi -l -FuD:\lazarus\JEDI-SDL\ -FuD:\lazarus\S2DL\ -Fu. -FE..\..\compile\ -oD:\lazarus\S2DL\compile\balls.exe

    my JEDI-SDL code (all .pas files for JEDI-SDL is D:\lazarus\JEDI-SDL\ (Note the trailing slash)
    my S2DL code is in D:\lazarus\S2DL\
    I ouput into a seperate compile directory.

    See if your options show the same thing and try get it set up in a similar manner.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  2. #22

    Graphix and FPC v1.0.10 Problem.

    I mentioned that i tired both -Sd and -S2 parameters....
    I just dont get it...
    Tried all modes,Target is correct,then whats going on?

  3. #23

    Graphix and FPC v1.0.10 Problem.

    Embrance, can you post the exact command line command you are using with all parameters etc.

    Probably an obvious question, is SDL installed on your machine? Are the DLLs somewhere in your exe's path? system32 folder for instance?
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  4. #24

    Graphix and FPC v1.0.10 Problem.

    I have all SDL related stuff & DLLs.
    What do you mean command line?
    If you mean parameters,i enter parameteres this way:
    Run->Parameters.
    here i have tried both -Sd and -S2 parameters and none worked.

  5. #25

    Graphix and FPC v1.0.10 Problem.

    Ok so you are using the Lazarus IDE. Have you tried just using the FreePascal compiler via the command line to make sure that at least that works and compiles your application?
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  6. #26

    Graphix and FPC v1.0.10 Problem.

    I wrote a guide for SDL and FPC. You can read it at:
    http://www.freepascal.org/wiki/index.php/FPC_and_SDL

    I recommend you copy(if you didn't do it yet) all the SDL sources (and includes) to one directory within your project(EG: basesdl)

    Make sure you fill the -Fu and -Fi paths correctly:

    In lazarus:
    Project/Compiler Options/Other Unit Files(-Fu)
    Project/Compiler Options/Include Files(-Fi)

    They should both contain "basesdl"

    Try to make a simple SDL test app and see if it works.
    Feel the power of Open Source.
    <br />Feel the power of Free Pascal.

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

    Graphix and FPC v1.0.10 Problem.

    The parameters entered in the Run | parameters box are parameters that get passed to the prtogram when it runs NOT the compiler.

    To change compiler parameters you need to go to Project | Compiler Options and check the relevant boxes.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  8. #28

    Graphix and FPC v1.0.10 Problem.

    Im NOT using Lazarus...Only FPC.
    Also i tired to compile the test app in the FPC Wiki,and it seems to be OK(no errors,a window opens and quickly closes)

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

    Graphix and FPC v1.0.10 Problem.

    What did you mean by:

    If you mean parameters,i enter parameteres this way:
    Run->Parameters.
    I understood from that you were using lazarus.

    If you are using FPC only you should be compiling from the command line:
    C:\FreePascal\Bin\ppc386.exe ......
    Now you should be able to set up the rest of the paths you need from here. I have created a batch file to recompile my balls game as follows:
    Code:
    d&#58;\lazarus\pp\bin\win32\fpc -S2cdgi -CD -OG1 -gl -XD -vewnhi -l -FuD&#58;\lazarus\S2DL\ -FuD&#58;\Lararus\JEDI-SDL\ -Fu. -oD&#58;\lazarus\S2DL\demos\Balls\balls.exe D&#58;\lazarus\S2DL\demos\Balls\balls.pp >Compile.txt
    (All on one line) (Note my FPC version is the one that comes with Lazarus but if you change the location of the fpc.exe {or ppc386.exe} you should be able to get it working) (Mine is stored in a .bat file as the only line in the file so that I can execute it from the windows explorer)


    Also - based on the fact that you say you are not using Lazarus but seem to have menu options etc - you must be using the dos styles editor that comes with FreePascal. I never got it working very well and really feel that if you moved to Lazarus you would be doing yourself a favor. FreePascal itself is not an IDE. FreePascal is only a compiler that an IDE would use to compile Pascal code. Lazarus is an example of an IDE that uses FreePascal as the IDE.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  10. #30
    me again...
    Guest

    Graphix and FPC v1.0.10 Problem.

    When i ment Run->Parameters,i mean via the DOS menu of fp.exe...(it has a minimalistic DOS GUI)

Page 3 of 4 FirstFirst 1234 LastLast

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
  •