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

Avrob picture Avrob · Dec 30, 2013 · Viewed 9.6k times · Source

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,

Answer

Remy Lebeau picture Remy Lebeau · Dec 30, 2013

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.