Jump to content
Geowink

Missing DPR

Recommended Posts

Had to get a new PC. Put Delphi 2009 on it (can't afford Embarcadero's ridiculous price) and when I try to compile an old project it says the dpr file is missing. It is not missing. The file is there. Any idea what is missing?

Share this post


Link to post
3 minutes ago, Geowink said:

Put Delphi 2009 on it (can't afford Embarcadero's ridiculous price)

There is a free Community Edition available.

3 minutes ago, Geowink said:

when I try to compile an old project it says the dpr file is missing. It is not missing. The file is there. Any idea what is missing?

What is the EXACT error message?  Does it say WHICH dpr file is missing?  Maybe your project has a dependency that is missing?  Can you provide your project's file hierarchy, setup, etc?

Share this post


Link to post

Here is the error message

(DCC Fatal Error) NewXX.dpr(1):F1027 Unit not found:'System.pas' or binary equivalents (.dcu)

 

Not sure what System.pas is.

Share this post


Link to post

So it doesn't say that the dpr file is missing. It says that the system unit is missing. This is possibly an issue with how you installed delphi. Or some erroneous settings in the existing project files. 

Share this post


Link to post

@Geowink That error message can be interpreted as the compiler found incompatible dcu files and tried to link them, so clean all your project folders from any dcu files and it will build fine.

Share this post


Link to post

I have clear.cmd file in my project folders to remove any temporary files, which contains the command:

del /f /s *.~* *.bak *.dcu *.identcache *.local *.map *.drc *.cbk *.stat *.tds

 

Share this post


Link to post

That clean is OK but look if there are not all DCU available somewhere on disk because of some path. If you have several Delphi versions installed, maybe D2009 "sees" file from other version as well. Check the paths. It is also possible that D2009 is incorrectly installed and system.dcu is really missing.

Share this post


Link to post

Finally determined the problem. For some reason the location of the files was not in the Library. I tracked down their locations, put them in the Library and things now compile. Thanks for your help in tracking this down.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×