Results 1 to 10 of 13

Thread: Phoenix 2013 - Now with tutorials!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Quote Originally Posted by Andreaz View Post
    All the demos compiles and runs using Lazarus 1.2.4 with FPC 2.6.4 on my windows machine (although with some warnings), the {$mode delphi} compiler define is quite important though, but that is included in phxConfig.inc.

    Is it the demos/tutorials that gives the error or is it a custom application?
    Because it's in phxTypes.pas, it really doesn't matter, but to be specific, I've tried to compile demo 00_Template and 01_Canvas.
    Now, because you mention {$mode delphi} and phxConfig.inc, I went back and made sure my Lazarus was finding phxConfig.inc.
    I had no issues with that because, as is, all is fine. Since you have ../../Source on the path, all's good.
    So I'm now baffled on how you can compile phxTypes.pas on a windows machine and I'm stuck on a Linux machine.
    It really doesn't make sense to me, since the error reported is an interface to implementation mismatch.
    I've read somewhere that Delphi and FPC record implementations differ a bit, but this is not the case. You are using the same, or close, versions I'm using and getting awkward different results.


    Quote Originally Posted by Andreaz View Post
    All the dll files are all optional, they are included depending on what plugins you're using. ...
    Thank you so much for this, it makes perfect sense now
    Since I'm on Linux, some don't apply, and the ones that do, I can quickly find the libs.

  2. #2
    Quote Originally Posted by gcarreno View Post
    Because it's in phxTypes.pas, it really doesn't matter, but to be specific, I've tried to compile demo 00_Template and 01_Canvas.
    Now, because you mention {$mode delphi} and phxConfig.inc, I went back and made sure my Lazarus was finding phxConfig.inc.
    I had no issues with that because, as is, all is fine. Since you have ../../Source on the path, all's good.
    So I'm now baffled on how you can compile phxTypes.pas on a windows machine and I'm stuck on a Linux machine.
    It really doesn't make sense to me, since the error reported is an interface to implementation mismatch.
    I've read somewhere that Delphi and FPC record implementations differ a bit, but this is not the case. You are using the same, or close, versions I'm using and getting awkward different results.
    This is strange indeed, i downloaded the version from the homepage just to be shure i hadnt modified it, compiled out of the box. It might have to do with the static directive on the functions, it should not be needed to add it to the implementation but that might be the solution. I will check into it.

    Quote Originally Posted by gcarreno View Post
    Thank you so much for this, it makes perfect sense now
    Since I'm on Linux, some don't apply, and the ones that do, I can quickly find the libs.
    Any time.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

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
  •