Delphi XE2 cannot compile any project on my computer due to environment variable (HP Laptops)

I have an HP laptop and I have delphi xe2 installed on my hp laptop, the last 5 months ago I have no problems working with delphi, but now I have this error message.

[DCC Error] E1026 File not found: 'FMX.Filter.res' [DCC Error] E1026 File not found: 'FMX.Platform.Win.res' 

I can not compile any projects! When I try to compile a project, I get this error.

And after that, I did a google search for this error, I found it on the embarcadero forum ( https://forums.embarcadero.com/thread.jspa?threadID=59949 ). But on this forum the answers are so different. He said that it looked like an HP laptop error, and he describes how to fix it. This is his way:

Right-click on “My Computer” and select “Properties.” In the advanced you will find the "Environment Variables" button. Click here and in the next list remove the PLATFORM variable from the list of system variables. Close the dialog, restart XE2, you should now be able to recompile without additional problems

I also want to do this for my problem, but I don't have the PLATFORM variable in "Environment Variables"!

How can I get rid of this problem?

thanks

+7
source share
3 answers

Check the path to your library for the target platform. It should contain an entry like $(BDSLIB)\$(Platform)\Release .

You can also use an explicit path, for example. C:\Program Files\Embarcadero\RAD Studio\9.0\lib\win32\release (for the purpose of Win32).

+13
source

Firstly, a problem with HP. Had the same problem and I am doing this from memory, so it may not be entirely correct, but you get the gist ...

Check the environment variables (from the control panel | System | Advanced). There will be one platform that matters "AnyCpu." Remove it.

Now everything will work.

Secondly, a problem with the file was not found. Without seeing the code, it’s hard to be sure, but around update 2 or so, embarcadero changed “FMX”. prefix to "FMX_", presumably for iOS programs to compile under FPC. Try changing your prefixes to use underscores instead of periods.

+3
source

Insert the following into the library path:

 $(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include; 
+1
source

All Articles