Announcement

Collapse
No announcement yet.

64 Bit Platform Support in Platform Extended Library

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 64 Bit Platform Support in Platform Extended Library

    Apologies for what is probably a very basic question. I had been using Asphyre Sphinx in Delphi XE5 since Asphyre Sphinx's original release, and I recently downloaded the Platform Extended Library. I was able to compile and run the sample programs in Delphi 10.3 compiling for Win 32 target, but when I try compiling for a 64 bit target I receive a compile error message in PXL.Formats that the left side cannot be assigned to in connection with the incrementing of a pointer in TPixelFormat.

    The description of Platform Extended Platform mentions Delphi Win 32 and 64 platforms, so I originally thought it supported 64 bit targets, but now I wonder if I misunderstood and it is usable on a 64 bit machine (platform) but only supports Win 32 targets? Or is it usable to compile 64 bit Windows apps in Delphi and I am missing something? Or is 64 bit apps reserved for the industrial Afterwarp framework? Sorry for such a basic question, but I am new to building 64 bit applications, having just begun looking at converting the game I have been working on from a 32 bit to 64 bit application.

    Thank you!

  • #2
    Last official PXL release is dated December 9, 2017, so it appeared before Delphi 10.3 Rio was released. You can try to compile PXL for 64-bit in Delphi XE5 that you have been using, or you can edit "PXL.Config.inc", search for this line:
    Code:
    {$IFDEF VER320} // Delphi Tokyo
    After that IFDEF block, add the following code to enable PXL to recognize Delphi Rio 10.3:
    Code:
    {$IFDEF VER330} // Delphi Rio
    {$DEFINE DELPHI_2009_UP}
    {$DEFINE DELPHI_2010_UP}
    {$DEFINE DELPHI_XE_UP}
    {$DEFINE DELPHI_XE2_UP}
    {$DEFINE DELPHI_XE3_UP}
    {$DEFINE DELPHI_XE4_UP}
    {$DEFINE DELPHI_XE5_UP}
    {$DEFINE DELPHI_XE5}
    {$DEFINE DELPHI_XE6_UP}
    {$DEFINE DELPHI_XE6}
    {$DEFINE DELPHI_XE7_UP}
    {$DEFINE DELPHI_XE7}
    {$DEFINE DELPHI_XE8_UP}
    {$DEFINE DELPHI_XE8}
    {$DEFINE DELPHI_SEATTLE_UP}
    {$DEFINE DELPHI_SEATTLE}
    {$DEFINE DELPHI_BERLIN_UP}
    {$DEFINE DELPHI_BERLIN}
    {$DEFINE DELPHI_TOKYO_UP}
    {$DEFINE DELPHI_TOKYO}
    {$DEFINE DELPHI_RIO_UP}
    {$DEFINE DELPHI_RIO}
    {$ENDIF}

    Comment


    • #3
      Thank you so much! I modified the PXL.Config.inc file as you suggested and it worked. I have really enjoyed working with Asphyre Sphinx (and the previous iterations). I feel like I have learned a lot about how computer graphics work by working with your platforms and code. I am looking forward to working with PXL and seeing the direction you have taken it. Thank you again!

      Comment

      Working...
      X