Problem:
I get the following messages when trying to compile or install my own package, 3rd party package, or 3rd party framework:
- "The following changes are necessary to make this package compatible with other installed packages. Choose OK to apply these changes and rebuild the package: Add EurekaLogCore. EurekaLogCore contains implicit unit(s) Web.Win.IsapiHTTP".
- "Cannot load package 'my-package.' It contains unit 'Web.Win.IsapiHTTP', which is also contained in package 'EurekaLogCore'."
Reason:
- Same unit may not appear in two or more loaded packages;
- Web.Win.IsapiHTTP unit is not included in any default RTL/VCL package, which means this unit became part of any package that references this unit.
E.g. Web.Win.IsapiHTTP becomes part of EurekaLogCore package, your own package / 3rd party package / 3rd party framework.
Solution:
You need to move Web.Win.IsapiHTTP unit into a new package, which will be shared by all other packages that need Web.Win.IsapiHTTP unit:
Step 1: prepare shared package:
- Create new run-time package;
- Add Web.Win.IsapiHTTP unit to this package ("contains" section);
- Add rtl, vcl, inet packages to "requires" section;
- Build modified package.
Step 2: redirect other packages to use new shared package:
- Open EurekaLogCore package (available in EurekaLog Enterprise);
- Add package name from previous step to "requires" section;
- Rebuild the package;
- Use "Manage EurekaLog in IDEs" tool to reinstall EurekaLog.
Step 3+: repeat "Step 2" actions for your own packages, 3rd party packages, 3rd party frameworks.