Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi XE : Lost Library path

I have lost most of my Library Path in Delphi XE after upgrading from Delphi 2010,

Now even some simple app will fail to compile.

Is there any way to recover those lost directory entries that were in the library path?

EDIT: I found a surprising solution to this problem, just delete this registry key:

HKEY_CURRENT_USER\Software\Embarcadero\BDS\8.0\Library

and restart Delphi, then the key in the registry will be generated again with the correct default values but you'll lose any third parties there, at least now it's working!

I Hope it's useful for anyone that is having the same problem :)

like image 636
Jay3D Avatar asked Sep 29 '10 15:09

Jay3D


2 Answers

For me this happened after installing VirtualTreeview 4.8.7 (? 5?) in Delphi XE under win7X64. I tried the delete reg path above (after saving it off to a file) and no go.

Then I noted that there was a dropdown in the library path that remembered previous changes to the whole path. Set it (and all the other remembered ones) back a step or two and everything compiled.

Sooo, then I reimported the originally bad one watching for differences. Right there in the topmost line

$(BDSLIB)\$(Platform)\release was $(Platform)\release (in the incorrect version)

Modified to have the full line in and all is well. $(BDSLIB)\$(Platform)\release

I expect this is because the installer strips these out and rebuilds them, but treats this as two lines instead of one.

Scotto the Unwise (spellcheck for the win)

like image 90
scottostanek Avatar answered Oct 16 '22 15:10

scottostanek


Do you still have your Delphi 2010 install around? You could just copy the library path from there.

like image 38
Mason Wheeler Avatar answered Oct 16 '22 13:10

Mason Wheeler