在 Linux 中编译 ODE 代码
我已经下载了 ode-0.11.1,并且可以通过修改演示提供的 Makefile 来编译源代码,但我不知道如何手动编译和链接我需要的独立代码。
我尝试探测 Makefile 并手动替换宏,以及运行它并检查输出。
有谁知道该怎么做?
I have downloaded ode-0.11.1 and I am able to compile source code by modifying the Makefile provided with the demos, but I can't figure out how to manually compile and link the code I need as a standalone.
I tried probing at the Makefile and substituting the macros manually, as well as running it and checking the output.
Does anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OpenDE(或 ODE)是使用 GNU autoconf/automake 工具进行配置的。
这意味着您需要先调用 ./configure,然后才能构建包。
要查看所有选项,请使用:
调用 ./configure 通常需要一个安装目标。
典型的调用如下所示:
这将在您的主目录中安装 OpenDE。
如果省略 --prefix 参数,将使用默认的 /usr/local,并且您将需要 root 权限才能安装。
示例调用还将包括使用 OPCODE 对三角形网格的支持。
OpenDE, or ODE, is configured with GNU autoconf/automake tools.
This means that you need to invoke ./configure before you can build the package.
To see all the options, use:
An invokation to ./configure will often need a target where to install to.
A typical invokation would look like this:
This will install OpenDE in your home directory.
If you omit the --prefix argument, the default /usr/local will be used, and you will need root permissions to install.
The example invokation will also include support for triangle meshes using OPCODE.