Delphi compiler Error: Compiler for personality "Delphi.Personality" and platform "Win32" missing or unavailable
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.
Avrob
Updated on June 20, 2022Comments
-
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,
-
Jan Doggen over 10 years
-
-
Avrob over 10 yearsAt stackoverflow.com/questions/18795530/… they advice to override the environment variable in the RAD studio IDE
-
Avrob over 10 yearsChanged the Windows Environment variable Platform to WIN32. in Delphi Env.variables it also became win32. But Compiler error remains,
-
Remy Lebeau over 10 yearsDon'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 ownPLATFORM
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 WindowsPLATFORM
variable set to Win32, non-Win32 compiles will not work correctly. -
Avrob over 10 yearsOnly deletion of PLATFORM environment variable from Windows Environment variables list resolved the problem. Thanks.
-
Jacques Koekemoer about 7 yearsI 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