Eclipse,如何在项目中包含dll?

发布于 2024-11-24 04:10:43 字数 105 浏览 6 评论 0原文

我只知道如何在 eclipse 中包含库,但是对于像 irrKlang 和 SDL 这样的 API,您需要始终存在 SDL.dll(或 irrKlang.dll),如何将其包含在应用程序的构建中?

I only know how to include libs in eclipse, but with API's like irrKlang and SDL you need to have SDL.dll present at all times (or irrKlang.dll) how do you include this in the building of an application?

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

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

发布评论

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

评论(2

老子叫无熙 2024-12-01 04:10:44

您是否将 DLL 包含在 eclipse 插件/OSGi 捆绑包中?如果是这样,您可以在 MANIFEST.MF 中使用 Bundle-NativeCode 来控制 DLL(或其他操作系统本机)的规范。

Bundle-NativeCode: lib/both.dll; osname=win32; processor=x86,
 lib/xp.dll; osname=winxp; processor=x86, lib/vista.dll;
 osname=winvista; processor=x86, lib/libmylib1.so ; lib/libmylib2.so;
 osname=linux; processor=x86

搜索 Bundle-NativeCode 将提供许多示例。

Are you including the DLL in an eclipse plugin/OSGi bundle? If so, you can use Bundle-NativeCode in your MANIFEST.MF to control the specification of your DLLs (or other OS natives).

Bundle-NativeCode: lib/both.dll; osname=win32; processor=x86,
 lib/xp.dll; osname=winxp; processor=x86, lib/vista.dll;
 osname=winvista; processor=x86, lib/libmylib1.so ; lib/libmylib2.so;
 osname=linux; processor=x86

A search on Bundle-NativeCode will provide a number of examples.

走野 2024-12-01 04:10:44

创建 your_plugin/os/win32 并将 dll 放在那里。将 os/ 文件夹添加到 build.properties 文件 (bin.includes)。

Create your_plugin/os/win32 and put your dlls there. Add os/ folder to build.properties file (bin.includes).

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