linux - 在 Linux (Ubuntu) 上为 OGRE 设置 netbeans

标签 linux netbeans ubuntu ogre3d ogre

我读了Setting Up An Application - NetBeans - Linux在 Ogre 教程中。但这指示使用 make && make install 在控制台上单独构建项目。似乎 Netbeans 仅用作编辑器。有什么方法可以使用 Netbeans 完成所有工作吗?

我试图将 Netbeans 设置为使用 OGRE 库,但没有成功。我在构建项目时遇到一些错误。这就是我到目前为止所做的。

Project properties > C++ Compiler : Include Directories

/usr/include/OGRE:/usr/include/OIS:/usr/include

In Linker : I added all the libogre*.so files in /usr/lib as Libraries.

我使用 apt-get 安装 OGRE

pkg-config --libs OGRE 
  -lOgreMain -lpthread 

pkg-config --cflags OGRE
-pthread -I/usr/include/OGRE

link仅提供在 Windows 上执行此操作的详细信息。 谁能告诉我如何在 Linux 上为 OGRE 正确设置 Netbeans

更新
控制台输出

g++     -o dist/Debug/GNU-Linux-x86/carrace build/Debug/GNU-Linux-x86/TutorialApplication.o build/Debug/GNU-Linux-x86/BaseApplication.o -L/usr/bin -lPlugin_BSPSceneManager -lPlugin_CgProgramManager -lPlugin_OctreeSceneManager -lPlugin_OctreeZone -lPlugin_ParticleFX -lPlugin_PCZSceneManager -lRenderSystem_GL -lOgreMain -lOgrePaging -lOgreProperty -lOgreRTShaderSystem -lOgreTerrain -lOIS-1.3.0 -lOIS -lboost_date_time-mt -lboost_date_time -lboost_serialization-mt -lboost_serialization -lboost_thread-mt -lboost_thread -lboost_wserialization-mt -lboost_wserialization 
/usr/bin/ld: cannot find -lPlugin_BSPSceneManager
/usr/bin/ld: cannot find -lPlugin_CgProgramManager
/usr/bin/ld: cannot find -lPlugin_OctreeSceneManager
/usr/bin/ld: cannot find -lPlugin_OctreeZone
/usr/bin/ld: cannot find -lPlugin_ParticleFX
/usr/bin/ld: cannot find -lPlugin_PCZSceneManager
/usr/bin/ld: cannot find -lRenderSystem_GL

我尝试分别添加这些文件夹,但没有成功。 提前谢谢你。

最佳答案

对我来说,它适用于

-lOgreMain -lOgreTerrain -lOIS -lpthread

作为链接器选项

和你拥有的一样

关于linux - 在 Linux (Ubuntu) 上为 OGRE 设置 netbeans,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6197270/

相关文章:

linux - 得到 'Configuration for rule "no-unused-expressions"is invalid' on linux but not on osx

linux - 在 git bash 中找不到 sudo/apt-get 命令

c++ - Netbeans C++ 返回类型的模板函数

javascript - Return 语句与之前的用法不一致 - JQuery

python-2.7 - import numpy : lapack_lite. 出错所以:undefined symbol

linux - 支持基于端口的 IP 池的 DHCP 服务器

java - 是否可以将自定义 list 添加到在 Netbeans 6.7.1 中编译的 Java 库?

python - 让 Python 猜测文件名

cordova - Phonegap 在 Ubuntu 上找不到 ANDROID_HOME 环境变量

c++ - MacOSx - 使用 make 命令编译 C 项目