尽管BPL在那里,但我得到了加载程序包错误

发布于 2025-02-06 17:57:24 字数 1128 浏览 1 评论 0 原文

这个问题使我发疯。我正在尝试编译并从 QuickReports 6 安装 QR Designer 。我只对一个包裹有一个问题。当我在IDE中纠正包装时;安装IDE给我:

无法加载软件包C:\ xe10_3 \ qrdesign \ win32 \ debug \ dclqrd_dxe10_3.bpl。 找不到指定的模块。

但是确切的文件在那里。

我还尝试通过组件下的菜单安装它>安装软件包,然后从那里选择BPL,同一问题。

我尝试在此处使用 Process Monitor 在此处找到问题:

delphi无法加载软件包,找不到指定的模块

我无法解决问题,但是我从过程监视器中选择的是某个过程在这里寻找包装:

Computer \ Hkey_current_user \ software \ embarcadero \ bds \ 21.0 \ package cache \ dclqrd_dxe10_3.bpl,

该密钥不存在。我尝试手动创建钥匙,但这没有做任何事情。

有什么想法吗?

更新

这是包装列表:

“

如您所见, dclqrd_dxe10_3 取决于其他两个。我已经构建和安装了。我删除了它的参考文献,并立即重新添加了它们,以确保参考是正确的。我想这就像雷米说的那样,找不到的指定模块可能不是指 dclqrd_dxe10_3 ,尽管我不知道它可以参考其他模块。

This issue is driving me crazy. I'm trying to compile and install The QR Designer from QuickReports 6. I have an issue just with the one package. When I right the package in the IDE > Install the IDE gives me:

Can't load package C:\xe10_3\QRDesign\Win32\Debug\dclqrd_DXE10_3.bpl.
The specified module could not be found.

But the exact file is there.

I've also tried installing it via the menu under Components > Install Packages and then choosing the BPL from there, with the same issue.

I've tried to use Process Monitor as on this post here to find the issue:

Delphi Can't load package the specified module cannot be found

I couldn't fix the issue, but what I did pick up from Process Monitor was that some process was looking for the package here:

Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\21.0\Package Cache\dclqrd_DXE10_3.bpl

That key didn't exists. I tried manually creating the key, but that didn't do a thing.

Any ideas?

UPDATE

Here is the list of packages:

image

As you can see, dclqrd_DXE10_3 is dependant on two others. Which I already built and installed. I removed its references and re-added them again now, to make sure the references are sound. I guess its like Remy said, the Specified module not found is probably not referring to dclqrd_DXE10_3 although I don't know what other module it could be referring to.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

九八野马 2025-02-13 17:57:24

要安装 package 在IDE中成功,请按照IDE成功:打开步骤:

  • 打开 步骤: IDE中的DPK/dproj/groupproj文件
  • 构建 Windows 32位平台的软件包。
    IDE本身是一个32位应用程序,因此应该匹配。
  • 通常,它将构建所有因素/必需软件包
  • 检查是否所有BPL& DCP文件是在软件包输出目录中生成的。
    它默认为 $(bdscommondir)\ bpl& DCP 文件夹,但可以针对设置中的每个软件包单独更改。
    PBL软件包就像DLL文件一样。为了加载它们,它需要所有依赖的BPL。
  • 如果您有自定义软件包输出路径:
    • 检查您的DCP输出路径是否包含在工具\ options \ options \ dellphi \ library \ library 库路径 for Windows 32-bit Platform
    • 检查是否没有默认 $(bdscommondir)\ bpl& DCP 目录
  • 在库源 pas 文件中添加路径 in tools \ options \ options \ dellaging \ delphi \ library \ library 浏览路径 库路径
  • 在某些特定情况下,如果包装需要一些额外的DLL-S(例如DB客户端库),请检查这些DLL是否为32位并且可以加载,例如%path%path%环境变量。

请注意,一些库提供包装安装工具,可以自动为您完成所有提到的事情。
此外,还有一键单击的通用软件包安装工具,用于快速工作环境设置。

To install a package successfully in IDE, follow the steps:

  • Open the dpk/dproj/groupproj file in IDE
  • Build the package(s) for Windows 32-bit platform.
    IDE itself is a 32-bit applicaton, so it should match.
  • Normally, it will build all dependent/required packages
  • Check if all chain of BPL & DCP files are generated in package Output directory.
    It defaults to $(BDSCOMMONDIR)\Bpl & Dcp folders, but can be changed individually for each Package in Settings.
    PBL packages are like DLL files. In order to load them, it requires all dependent BPLs.
  • If you have custom package output paths:
    • Check if your DCP output path is included in Tools\Options\Language\Delphi\Library Library Path for Windows 32-bit platform
    • Check if no duplicates of outdated compiled packages in default $(BDSCOMMONDIR)\Bpl & Dcp directories
  • Add the paths to library source pas files in Tools\Options\Language\Delphi\Library Browsing path or Library path
  • In some specific cases, if the package requires some extra dll-s like DB Client libraries, check if these dlls are 32-bit and are loadable, like included in %path% environement variable.

Note, some libraries offers package installer tools, that automagically do all mentioned things for you.
Also, there are universal package installer tools for quick working environement setup in one click.

七色彩虹 2025-02-13 17:57:24

我不知道为什么这解决了我的问题,但是确实如此。
BPL和DCP的输出目录设置为 $(Platform)\ $(config)
不同软件包的项目文件存在于同一文件夹中,因此上面的配置应该是调试文件夹或发行文件夹。为什么只有此软件包被扔掉,我仍然不知道,但是由于将上述软件包更改为固定路径,因此我现在可以安装 dclqrd_dxe10_3.bpl

谢谢大家的帮助。

I don't know why this fixed my issue, but it did.
The output directories for the bpl and dcp was set to be $(Platform)\$(Config)
The project files for the different packages exists in the same folder so the above config was supposed to be the debug folder or the release folder. Why only this package was thrown off I still don't know, but since changing the above packages to have a fixed path suddenly I could now install dclqrd_DXE10_3.bpl.

Thank you all for helping.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文