Delphi compiler Error: Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable

10,707

There is a Windows environment variable named PLATFORM, likely created by your PC's manufacturer. Go into the Windows environment settings and remove that variable. Do not use the IDE environment settings to override the Windows environment variable with a different value. They are different variables for different purposes, but the Windows environment variable is interfering with the IDE environment in this situation.

Share:
10,707
Avrob
Author by

Avrob

Updated on June 20, 2022

Comments

  • Avrob
    Avrob almost 2 years

    After installing Delphi XE3 on HP Probook 4540S notebook (Win 7Prof 64 bit) I have problems while compiling, The project was an empty VCL project with no components on the form. At first I received "Invalid PLATFORM variable "BNB". PLATFORM must be one of the following: "Win32", "Win64", or "OSX32".

    After have added environmental variable platform=win32 in Environment Options I received compiler error:

    compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable.

    What can be done? And why PLATFORM variable has been set to "BNB" during installation? There was nothing in embarcadero site and at Quality Central http://qc.embarcadero.com/wc/qcmain.aspx?d=108487 about this problem,

  • Avrob
    Avrob over 10 years
    At stackoverflow.com/questions/18795530/… they advice to override the environment variable in the RAD studio IDE
  • Avrob
    Avrob over 10 years
    Changed the Windows Environment variable Platform to WIN32. in Delphi Env.variables it also became win32. But Compiler error remains,
  • Remy Lebeau
    Remy Lebeau over 10 years
    Don't change the Windows PLATFORM environment variable - GET RID of it instead. It is not really used for anything, and as long as it exists the IDE will ignore its own PLATFORM variable, which gets set dynamically based on which platform you are compiling for. This is stated in the answer to the discussion you linked to. So if you have a Windows PLATFORM variable set to Win32, non-Win32 compiles will not work correctly.
  • Avrob
    Avrob over 10 years
    Only deletion of PLATFORM environment variable from Windows Environment variables list resolved the problem. Thanks.
  • Jacques Koekemoer
    Jacques Koekemoer about 7 years
    I had no entry in windows env. variables, however it was in my ide env. variables. once i deleted it from there my issue was also resolved