2014-11-08 2 views
1

извините за мой плохой английский ..Как построить OpenSceneGraph землю 2,6

Я пытаюсь получить osgEarth работы с C++ и визуально студии 2013.

я сначала загрузить Open Scene Graph 3.2 и зависимостей prebuild (небольшой пакет) с этой страницы. Я создал проект visual studio 2013 и создаю/установил Open Scene Graph без особых проблем.

После этого я скачал источник osgearth 2.6 и когда я пытаюсь создать Visual Studio решения у меня есть некоторые виды ошибок:

Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 
CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:616 (message): 
    c:/lib/Qt/5.3.2/5.3/msvc2013_opengl/bin/qmake.exe reported QT_INSTALL_LIBS 
    as "C:/lib/Qt/5.3.2/5.3/msvc2013_opengl/lib" but QtCore could not be found 
    there. Qt is NOT installed correctly for the target build environment. 
Call Stack (most recent call first): 
    CMakeLists.txt:147 (FIND_PACKAGE) 


CMake Error at CMakeModules/ModuleInstall.cmake:57 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgEarth". 
Call Stack (most recent call first): 
    src/osgEarth/CMakeLists.txt:304 (INCLUDE) 


CMake Error at CMakeModules/ModuleInstall.cmake:57 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgEarthAnnotation". 
Call Stack (most recent call first): 
    src/osgEarthAnnotation/CMakeLists.txt:89 (INCLUDE) 


CMake Error at CMakeModules/ModuleInstall.cmake:57 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgEarthFeatures". 
Call Stack (most recent call first): 
    src/osgEarthFeatures/CMakeLists.txt:117 (INCLUDE) 


CMake Error at CMakeModules/ModuleInstall.cmake:57 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgEarthUtil". 
Call Stack (most recent call first): 
    src/osgEarthUtil/CMakeLists.txt:185 (INCLUDE) 


CMake Error at CMakeModules/ModuleInstall.cmake:57 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgEarthSymbology". 
Call Stack (most recent call first): 
    src/osgEarthSymbology/CMakeLists.txt:122 (INCLUDE) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_earth". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/earth/CMakeLists.txt:28 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_kml". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/kml/CMakeLists.txt:92 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_wcs". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/wcs/CMakeLists.txt:26 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_wms". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/wms/CMakeLists.txt:13 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_tilecache". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/tilecache/CMakeLists.txt:9 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_tileservice". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/tileservice/CMakeLists.txt:8 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_yahoo". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/yahoo/CMakeLists.txt:3 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_arcgis_map_cache". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/arcgis_map_cache/CMakeLists.txt:2 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_arcgis". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/arcgis/CMakeLists.txt:14 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_tms". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/tms/CMakeLists.txt:12 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_vpb". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/vpb/CMakeLists.txt:9 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_osg". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/osg/CMakeLists.txt:7 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_agglite". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/agglite/CMakeLists.txt:11 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_model_simple". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/model_simple/CMakeLists.txt:4 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_debug". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/debug/CMakeLists.txt:4 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_cache_filesystem". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/cache_filesystem/CMakeLists.txt:12 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_refresh". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/refresh/CMakeLists.txt:8 (SETUP_PLUGIN) 


CMake Error at CMakeModules/OsgEarthMacroUtils.cmake:231 (INSTALL): 
    install TARGETS given no ARCHIVE DESTINATION for static library target 
    "osgdb_osgearth_xyz". 
Call Stack (most recent call first): 
    src/osgEarthDrivers/xyz/CMakeLists.txt:10 (SETUP_PLUGIN) 
... 
ZLIB_LIBRARY (ADVANCED) 
    linked by target "osgEarth" in directory C:/Users/***/Desktop/OSG/osgearth-osgearth-2.6/src/osgEarth 

Configuring incomplete, errors occurred! 
See also "C:/Users/Dario/Desktop/OSG/TempBuild/CMakeFiles/CMakeOutput.log". 
See also "C:/Users/Dario/Desktop/OSG/TempBuild/CMakeFiles/CMakeError.log". 

я использовал тот же пакет зависимостей prebuild работает отлично с ОСГ ..

Заранее спасибо!

ответ

1

Ну, бит Qt, который вы можете игнорировать, если вы не пытаетесь построить с Qt.

Я думаю, что osgEarth очень нуждается в ZLIB, или, по крайней мере, я всегда строил с ним.

Убедитесь, что ваши записи ZLIB в CMake найдены в порядке:

Mine выглядеть ZLIB_INCLUDE_DIR C: /blah/blah/windows-VS10.0.30319-x86-release/include ZLIB_LIBRARY C:/л/л /windows-VS10.0.30319-x86-release/lib/zlib.lib

Посмотрите, устраняет ли это некоторые из проблем. Я не знаком с ошибкой установки целей, но поиск в google предлагает: CMake Error: TARGETS given no LIBRARY DESTINATION for shared library target

, что это может быть переборщик CMake. Убедитесь, что вы используете выпуск HEAD osgEarth 2.6 в случае исправления ошибок после релиза с отметкой 2.6.

 Смежные вопросы

  • Нет связанных вопросов^_^