Eclipse,如何在项目中包含dll?
我只知道如何在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否将 DLL 包含在 eclipse 插件/OSGi 捆绑包中?如果是这样,您可以在 MANIFEST.MF 中使用
Bundle-NativeCode
来控制 DLL(或其他操作系统本机)的规范。搜索
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).A search on
Bundle-NativeCode
will provide a number of examples.创建 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).