Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

pl_Virtualtrees compiling issus 11 years 6 months ago #3803

  • Tim Sinaeve
  • Tim Sinaeve's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 1
Hi,

I'm making my move to CodeTyphon to make cross platform builds for some of my projects and so far I am impressed with the work you guys have done so far!
I noticed however some issues when I tried to make a build on windows targeting other widget sets than Win32. The pl_Virtualtrees package for example will not compile when you target GTK2 or QT on Windows.
To fix this I changed the following in the code:

vtvdragmanager.inc
{$IF DEFINED(LCLGTK) or (DEFINED(GTK))}
  {$i vtvdragmanager_gtk.inc}
  {$ELSE}
    {$IF DEFINED(LCLGTK2) or (DEFINED(GTK2))}
      {$i vtvdragmanager_gtk2.inc}
    {$ELSE}
      {$IF DEFINED(LCLCarbon) or (DEFINED(Carbon))}
        {$i vtvdragmanager_carbon.inc}
      {$ELSE}
        {$IF DEFINED(LCLWin32) or (DEFINED(Windows))}
          {$i vtvdragmanager_win32.inc}
        {$ELSE}
          {$IF DEFINED(LCLQT) or (DEFINED(QT))}
            {$i vtvdragmanager_qt.inc}
          {$ENDIF}
        {$ENDIF}
      {$ENDIF}
    {$ENDIF}
{$ENDIF}      

olemethods.inc
{$IF DEFINED(LCLGTK) or (DEFINED(GTK))}
  {$i olemethods_gtk.inc}
  {$ELSE}
    {$IF DEFINED(LCLGTK2) or (DEFINED(GTK2))}
      {$i olemethods_gtk2.inc}
    {$ELSE}
      {$IF DEFINED(LCLCarbon) or (DEFINED(Carbon))}
        {$i olemethods_carbon.inc}
      {$ELSE}
        {$IF DEFINED(LCLWin32) or (DEFINED(Windows))}
          {$i olemethods_win32.inc}
        {$ELSE}
          {$IF DEFINED(LCLQT) or (DEFINED(QT))}
            {$i olemethods_qt.inc}
          {$ENDIF}
        {$ENDIF}
      {$ENDIF}
  {$ENDIF}
{$ENDIF}

vtgraphicsi.inc
{$IF DEFINED(LCLGTK) or (DEFINED(GTK))}
  {$i vtgraphicsi_gtk.inc}
{$ELSE}
  {$IF DEFINED(LCLGTK2) or (DEFINED(GTK2))}
    {$i vtgraphicsi_gtk2.inc}
  {$ELSE}
    {$IF DEFINED(LCLCarbon) or (DEFINED(Carbon))}
      {$i vtgraphicsi_carbon.inc}
    {$ELSE}
      {$IF DEFINED(LCLWin32) or (DEFINED(Windows))}
        {$i vtgraphicsi_win32.inc}
      {$ELSE}
        {$IF DEFINED(LCLQT) or (DEFINED(QT))}
          {$i vtgraphicsi_qt.inc}
        {$ENDIF}
      {$ENDIF}
    {$ENDIF}
  {$ENDIF}
{$ENDIF}  

virtualpanningwindow.inc
{$IF DEFINED(LCLGTK) or (DEFINED(GTK))}
  {$i virtualpanningwindow_gtk.pas}
{$ELSE}
  {$IF DEFINED(LCLGTK2) or (DEFINED(GTK2))}
    {$i virtualpanningwindow_gtk2.pas}
  {$ELSE}
    {$IF DEFINED(LCLCarbon) or (DEFINED(Carbon))}
      {$i virtualpanningwindow_carbon.pas}
    {$ELSE}
      {$IF DEFINED(LCLQT) or (DEFINED(QT))}
        {$i virtualpanningwindow_qt.pas}
      {$ELSE}
        {$IF DEFINED(LCLWin32) or (DEFINED(Windows))}
          {$i virtualpanningwindow_win32.pas}
        {$ENDIF}
      {$ENDIF}
    {$ENDIF}
  {$ENDIF}
{$ENDIF}

Possibly this will need to be fixed in other packages too. I'll report it if I come across others.

Please Log in or Create an account to join the conversation.

pl_Virtualtrees compiling issus 11 years 6 months ago #3804

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Thanks Sir
We will test and add to next release
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1