(1)cmake-gui报错:Could NOT find OpenSceneGraph: Found unsuitable version "..", but required 这个主要是因为osg的路径设置错误引起的,那个OSG_INCLUDE_DIR要配置成 E:/vOSG/OpenSceneGraph/dev/include 这里才有版本信息,而不是源码下面那个地址, E:/vOSG/OpenSceneGraph/include (X,不是这个地址) (2)cmak...
CURL_LIBRARY_DEBUG= D:/Code/osgearth/src/curl/lib/libcurld.lib Search "Osg_DIR" OSG_DIR= D:/Code/Osg 接下来勾选Advanced,然后Search "NOTFOUND",把搜到的变量全部给删了,包括OSG的那一堆DIR、Include和Lib。 然后Configure、Generate,可能还会遇到一些小问题,把没删干净的NOTFOUND接着删了,就可以了。
用用CMake编译osgQt出现如下错误 Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES OPENSCENEGRAPH_INCLUDE_DIR OSGDB_FOUND OSGGA_FOUND OSGUTIL_FOUND OSGTEXT_FOUND OSGVIEWER_FOUND OSGWIDGET_FOUND OSG_FOUND OPENTHREADS_FOUND) (Required is at least version "3.7.0") 经过百度之后,发现是环境...
IF(NOT VERSE_USE_EXTERNAL_GLES) MESSAGE(FATAL_ERROR "[osgVerse] Dependency GLES not found, which is the only solution under current platform...") ENDIF() ENDIF() @@ -574,15 +579,17 @@ IF(OSG_INCLUDE_DIR AND OSG_LIB_DIR) MESSAGE(STATUS "[osgVerse] Emscripten / WebAssembly toolchain...
OSG_GLES_INCLUDE_DIRPathSet to path of GLES2/gl2.h or GLES3/gl3.h, for GLES build only OSG_GLES_LIBRARYPathSet to path of libGLESv2.so or libGLESv2.lib, for GLES build only OSG_EGL_LIBRARYPathSet to path of libEGL.so or libEGL.lib, for GLES build only ...
(OSGLIB_INCLUDE_DIR"${OSG_DEBUG_PATH}/include")# 引入头文件路径include_directories(${OSGLIB_INCLUDE_DIR})set(OSGLIB_INCLUDE_DIRS${OSGLIB_INCLUDE_DIR})set(OSGLIB_FOUND TRUE)if(OSGLIB_FOUND)set(OSGLIB_LIBRARIES${OSGLIB_OSG_LIBRARY})endif(OSGLIB_FOUND)# 拷贝dll文件宏macro(COPY_OSG_LIB ...
INCLUDEPATH += 'C:\Program Files\OpenSceneGraph\include' Pro 复制 调用osgviewer显示默认模型。 #include<QApplication>#include<osgViewer/Viewer>#include<osgDB/ReadFile>intmain(intargc,char*argv[]){QApplicationa(argc,argv);osgViewer::Viewer viewer;viewer.setSceneData(osgDB::readNodeFile("cow.osg"...
> > > > /home/hallmw/Projects/osgMap/include/osgmap/MainWindow:31:34: > > > > fatal > > > > error: osgQt/GraphicsWindowQt: No such file or directory > > > > > > > > I can check that directory and there are no header files in ...
> > FFTSS_LIBRARY FFTSS_LIBRARY-NOTFOUND > > FFTW3-3_INCLUDE_DIR > /media/DiscoD/linux/MyApp1/fftw-3.3.3/include > > FFTW3-3_LIBRARY > /media/DiscoD/linux/MyApp1/fftw-3.3.3/lib/libfftw3.so > > OPENTHREADS_INCLUDE_DIR > /media/DiscoD/linux/MyApp1/osg/include/OpenThreads ...
FBX_INCLUDE_DIR E:/AutoDesk/FBX/FBX_SDK/2019.0/include FBX_LIBRARY E:/AutoDesk/FBX/FBX_SDK/2019.0/lib/vs2015/x64/release/libfbxsdk-md.lib FBX_LIBRARY_DEBUG E:/AutoDesk/FBX/FBX_SDK/2019.0/lib/vs2015/x64/debug/libfbxsdk-md.lib ...