Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40

Thread: Graphix and FPC v1.0.10 Problem.

  1. #1

    Graphix and FPC v1.0.10 Problem.

    OK,i want to take part into the "Dog Fiht" competiotion.
    Now,im using FPC v1.0.10 and was abou to choose a Graphic API(or something like that,lol)
    So i got Graphix Latest version(made back in 2001,if not mistaken,)
    Official site(http://www.cg.tuwien.ac.at/~knapp/gr...d/gxframe.html)

    Now i put everything in the units Dir and then try to Run the gxdemo.pas
    wich is found with the package...
    I also habe all the requirement like FreeType and all the other stuff needed to work with graphiX.

    But i get errors like
    :

    Code:
    ttinterp.pas&#40;4343,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4344,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4345,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4346,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4347,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4348,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4349,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4350,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4351,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4352,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4353,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4354,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4355,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4356,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4357,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4358,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4360,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4361,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4362,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4363,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4364,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4365,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4366,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4367,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4368,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4369,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4370,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4371,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4372,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4373,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4374,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4375,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4377,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4378,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4379,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4380,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4381,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4382,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4383,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4384,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4385,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4386,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4387,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4388,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4389,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4390,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4391,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4392,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4394,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4395,30&#41; Error&#58; Incompatible types&#58; got "<unknown type>" expected "<procedure variable type of procedure&#40;PSTORAGE&#41;;>"
    ttinterp.pas&#40;4395,30&#41; Fatal&#58; There were 50 errors compiling module, stopping

  2. #2

    Graphix and FPC v1.0.10 Problem.

    Try to use FreePascal 1.9.6. Maybe this helps.

    You can also try to set the mode to Delphi (compile with -Sd).

  3. #3

    Graphix and FPC v1.0.10 Problem.

    Hmm...v1.9.6 dont worked:/
    How to set the delphi mode?(the -sd)?

  4. #4

    Graphix and FPC v1.0.10 Problem.

    Either -Sd (old parameter) or -Mdelphi (new parameter).

  5. #5

    Graphix and FPC v1.0.10 Problem.

    Badly none of them didnt worked...
    It seem a pp file ahs all the errors(see first post)
    Could someone check it,and see what wrong?
    I cant understand.

  6. #6
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Graphix and FPC v1.0.10 Problem.

    EmbranceII, why not try a graphics library a little less dated?

    There are a few to choose from. JEDI-SDL for instance. Or maybe working with just the OpenGL or DirectX headers themselves. SDL is a more cross-platform solution though so you have that advantage there. Plus its a bit more widely used than what you're trying to use.

    Best of luck with your efforts.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  7. #7

    Graphix and FPC v1.0.10 Problem.

    1)I would use Jdei-SDL but i cant get to understand any of the commands described...
    If they were more "easy" like:
    LoadBMP (life.BMP)
    i woudl use it but the parametres are many.Eve if they arent the documentation still lacks,so this is my main prob.
    2)On the other hand,the GraphiX Doc is very deatailed and easy to understand.Thats why i wanted to use it.

  8. #8

    Graphix and FPC v1.0.10 Problem.

    SDL is actualy very easy. And you almost hit the spot
    "SDL_LoadBMP(PChar);" where PCHAR is the C string with full path to file.
    Usage is:
    "PSDL_Surface:=SDL_LoadBMP(PChar);"
    Where PSDL_Surface is your surface where you want to load it.

    The docs are at www.libsdl.org. Go to the wiki page/api for basic SDL.
    There are addons to SDL(also documented there) like SDL_Image which will enable you to load other formats as easily ie:
    "PSDL_Surface:=IMG_Load(PChar);"

    The problem with people nowadays is they can't even find the docs.
    (I'm one such type too)
    Feel the power of Open Source.
    <br />Feel the power of Free Pascal.

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

    Graphix and FPC v1.0.10 Problem.

    Why not have a look at my S2DL library (announced else where on this site - not sure where). Its a very simple wrapper for SDL that basically lets you code your game while it does all the SDL work for you.

    I used it for my FOOGS entry in the 72 hour GDC contest. So its pretty stable- I will probably use if for my DogFight entry as well.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  10. #10
    Anonymous
    Guest

    Graphix and FPC v1.0.10 Problem.

    One 1.0.x version of FPC had a deviant way of dealing with procedure variables. This was changed later.

    You could also try to compile with -S2, otherwise you have to add or remove a @ from all those error spots.

Page 1 of 4 123 ... 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
  •