Morten
Morten

Reputation: 51

Delphi package install error - DCU not found

I am trying to install a Delphi package from the VST SDk, my problem is that it says a .dcu is missing. The .dcu is not missing, and before installing the package, it doesn't exist, but is created by the IDE during the installation, so it's not precompiled from a former version of Delphi. The .pas file doesn't appear to be incomplete. All the other files appear to be installing just fine, this however is giving me a great load of trouble. I hope someone might help me :) Im using Delphi 2010 btw.

Thanks in advance :D Image showing my files and errors Here's the SDK - im using 1.3

Upvotes: 4

Views: 13388

Answers (1)

Wouter van Nifterick
Wouter van Nifterick

Reputation: 24086

The problem is that the compiler cannot find the source files, or the dcu files.

There are several ways to solve this.

  1. You can add the paths that contain the .pas files to your library, via /tools/options/EnvironmentOptions/DelphiOptions/Library/LibraryPath

  2. You can add the paths to the search path of the project. In the project options (ctrl+shift+f11)

  3. You can add each file that you need to the project. shift+f11

Note that you can also point to the folder that contains the .dcu files, but that means you wouldn't be able to step through code when you're debugging.

I usually use method 1, because that settles it for all future projects that you use in this IDE. It's convenient if you create many projects that use the same library. Some other people like to specify this per project, so that they have full control over the dependencies of the project.

Upvotes: 2

Related Questions