delphi XE2 can't compile any project on my computer because of environment variable (HP Laptops)
Asked Answered
S

3

9

I have a HP laptop and I have delphi xe2 installed on the hp laptop, last 5 months ago I have no problem working with the 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't compile any projects! When I try to compile a project, I get this error.

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

Right click on "My Computer" and select Properties. In the Advanced tab, you will find a button for "Environment Variables". Click on it, and in the list that follows, delete the PLATFORM variable from the list of System variables. Close the dialog, restart XE2, you should now be able to recompile without further problems

I also want to do this for my problem but I have no PLATFORM variable in the "Environment Variables"!

How can I get rid of this problem ?

Thanks

Subdeacon answered 9/12, 2011 at 10:20 Comment(1)
Sounds like you did not uninstall a previous installation of delphi XE2 before reinstalling in a different location.Bakemeier
S
13

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

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

Skelly answered 9/12, 2011 at 10:55 Comment(3)
tolate :( I was uninstall delphi already, but I will check it, if it will do this again. thanksSubdeacon
I had the same problem. This answer solved my problem. Problems started when I clicked on button Delete Invalid Paths on editing Library paths.Showroom
These both values are used for PC's environment variables? Which variables for those values? Please advise. I am facing the same problem. Using Delphi XE7Chops
G
4

Firstly HP issue - Had the same problem and I am doing this from memory so it may not be exactly correct, but you will get the gist...

Check you environment variables (from control panel|System|Advanced). There will be one called Platform, which has the value of 'AnyCpu'. Delete it.

All will now work.

Secondly your 'File not found' issue. Without seeing the code is it difficult to be exactly sure, but around update 2 or so, embarcadero changed the 'FMX.' prefix to 'FMX_', presumably so that iOS programs will compile okay under FPC. Try changing your prefixes to use underscores instead of dots.

Grilse answered 9/12, 2011 at 23:30 Comment(0)
B
2

Insert in library path this:

$(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;
Booby answered 5/5, 2013 at 8:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.