这个主要是因为osg的路径设置错误引起的,那个OSG_INCLUDE_DIR要配置成 E:/vOSG/OpenSceneGraph/dev/include 这里才有版本信息,而不是源码下面那个地址, E:/vOSG/OpenSceneGraph/include (X,不是这个地址) (2)cmake-gui报错:INCLUDE could not find requested file: Find3rdPartyDependencies 不知道这是个什么东西,...
# 复制include文件夹 Copy-Item-Path"../include/osgQOpenGL"-Destination"$InstallDir/include"-Recurse-Force # # 复制输出文件 Copy-Item-Path"./lib/osgQOpenGL.lib"-Destination"$InstallDir/lib"-Force Copy-Item-Path"./packaging/pkgconfig/openscenegraph-osgQt.pc"-Destination"$InstallDir/lib/pkgconfig"...
#include <iostream> #include <string> #include <QDir> #include <osgViewer/Viewer> #include <osgDB/ReadFile> #include <osgDB/WriteFile> using namespace std; //查找目录下所有的文件夹 static void findDir(string dir, vector<string>& subDirs) { // subDirs.clear(); QDir fromDir(QString::fr...
:= true LIBDIR := $(OSG_ANDROID_DIR)/obj/local/armeabi-v7a LIBDIR2 := $(NDK_ANDROID_DIR)/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7aendif### Add all source file names to be included in lib separated by a whitespaceLOCAL_C_INCLUDES:= $(OSG_ANDROID_DIR)/includeLOCAL...
OSG_INCLUDE_DIR osg的include文件路径(D:/osgSDK/OpenSceneGraph-2.8.2/include) OSG_LIBRARY osg的lib文件(D:/osgSDK/OpenSceneGraph-2.8.2/lib/osg.lib) 2.4、参数配置完毕后,第二次点击configure。 确定无误后点击Generate,显示Configuring done,表明配置成功,将生成解决方案。
Looking for include files CMAKE_HAVE_PTHREAD_H - not found. Found Threads: TRUE Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR) Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Could NOT find OpenAL (missing: OPENAL_LIBRARY OPENAL_INCLUDE_DIR) ...
2)右键项目,选择“属性”,选择“VC++目录”,在包含目录添加:E:/ProgramCode/OSG/OpenSceneGraph-3.4.0/install/include在库目录添加:E:/ProgramCode/OSG/OpenSceneGraph-3.4.0/install /lib。 3)打开项目属性的链接器->输入里,附加依赖项加上: OpenThreadsd.lib、osgd.lib、osgDBd.lib、osgUtild.lib、osgGAd....
30 INCLUDEPATH += $${OsgDir}/include 31 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. View Code main.cpp AI检测代码解析 1 #include <osgViewer/Viewer> ...
Viewpoint>#include <osgEarth/GeoTransform>#include <osgEarth/ModelLayer>#include <osgEarth/Registry>#include <osgEarthUtil/EarthManipulator>#include <gdal_priv.h>using namespace std;void AddModel(osg::ref_ptr<osgEarth::Map> map, osg::ref_ptr<osgEarth::MapNode> mapNode){//std::string ...
将我们刚刚编译的OSG的dll拷贝到bin/bin_D目录里面,带_D的表示是debug版本,注意第三方库的dll也应该拷贝进去。include文件夹就是OSG安装的include文件夹,里面是OSG的头文件。lib/lib_D则放入OSG的lib文件。HelloOSG就是我们用VS2015新建的空白win32控制台工程。