|
楼主 |
发表于 2017-12-18 13:16:43
|
显示全部楼层
按照您的提示,换了版本。但是出现了新的问题。如照片所示
编译环境 qt5.8, 项目是qtConsole类型,代码如下:
#include<osgViewer/Viewer>
#include<osgDB/ReadFile>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
osgViewer::Viewer viewer;
viewer.setSceneData( osgDB::readNodeFile( "cow.osg" ) );
viewer.run();
return a.exec();
}
INCLUDEPATH += 'C:/Program Files (x86)/OpenSceneGraph/Qt/include'
DEPENDPATH += 'C:/Program Files (x86)/OpenSceneGraph/Qt/include'
LIBS += -L'C:\Program Files (x86)\OpenSceneGraph\Qt\lib\ -llibOpenThreads.dll -llibosg.dll -llibosgDB.dll -llibosgViewer.dll'
已经添加了库依赖和头文件支持。这个错误该如何解决,错误根源是什么?
|
|