91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Building osgEarth for Windows using vcpkg

發布時間:2020-05-15 04:35:25 來源:網絡 閱讀:673 作者:安安寶寶 欄目:云計算

vcpkg is an extremly useful C++ package manager. It works on Windows, Linux and MacOS but for this guide we’ll primarily focus on Windows.

First, download and bootstrap vcpkg following the instructions on the page.

Next install the dependencies required to build a fully functional osgearth

vcpkg install osg:x64-windows sqlite3:x64-windows protobuf:x64-windows poco:x64-windows

This will take awhile the first time you run it as this pulls down lots of dependencies, so go get a cup of coffee.

Once all the dependencies are built, you’ll need to actually build osgearth.

Get the source code

git clone https://github.com/gwaldron/osgearth.git

Create a directory for an out of source build

cd osgearth
mkdir build
cd build

Configure Cmake

vcpkg provides a Cmake toolchain file that helps osgEarth find all of it’s dependencies. You’ll need to specify a different build directory for Release and Debug and specify the build type using -DCMAKE_BUILD_TYPE. This is because some dependencies of osgEarth don’t pick up both debug and release versions without specifying the build type. This should be fixed in future cmake versions. This is for a release build


cmake .. -G "Visual Studio 15 2017 Win64" \
-DCMAKE_BUILD_TYPE=Release \
-DWIN32_USE_MP=ON \
-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]\scripts\buildsystems\vcpkg.cmake

Build and install osgEarth

You can build and install osgEarth on the command line using cmake or you can open up the Visual Studio solution and build it from there.

cmake --build . --target INSTALL --config Release

Setting up your runtime environment

You’ll need to make sure that the vcpkg dependencies and osgEarth are in your path. So do something like this


set PATH=%PATH%;c:\vcpkg\installed\x64-windows\bin
set PATH=%PATH%;c:\vcpkg\installed\x64-windows\tools\osg
set PATH=%PATH%;c:\Program Files\osgEarth\bin

Note: If you don’t want to build osgEarth yourself for your application, you can actually install it using vcpkg as well. Just use

vcpkg install osgearth:x64-windows

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

泸水县| 兰州市| 秦皇岛市| 松滋市| 阿巴嘎旗| 庄浪县| 上饶市| 化隆| 开原市| 通州市| 淮南市| 勃利县| 绥中县| 乐亭县| 正宁县| 丹巴县| 罗源县| 阿拉尔市| 福泉市| 巢湖市| 吉水县| 霍城县| 凤阳县| 陆良县| 曲周县| 诸暨市| 靖西县| 永平县| 丰原市| 五峰| 阜宁县| 龙南县| 卫辉市| 赤水市| 阿拉善盟| 商城县| 肇源县| 天水市| 通河县| 东山县| 和林格尔县|