Difference between revisions of "HICN/Windows"
From fd.io
< HICN
(Created page with " ===Build hICN=== #Install [https://visualstudio.microsoft.com/it/ Visual Studio 2017] #Install [https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk Windows...") |
(→Build hICN) |
||
Line 1: | Line 1: | ||
− | === | + | ===Install dependency=== |
#Install [https://visualstudio.microsoft.com/it/ Visual Studio 2017] | #Install [https://visualstudio.microsoft.com/it/ Visual Studio 2017] | ||
#Install [https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk Windows 10 SDK] | #Install [https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk Windows 10 SDK] | ||
#Install [https://git-scm.com/download/win Git] | #Install [https://git-scm.com/download/win Git] | ||
#Install [https://cmake.org/download/ CMake] | #Install [https://cmake.org/download/ CMake] | ||
+ | |||
+ | ===Install Microsoft vcpkg=== | ||
<pre> | <pre> | ||
$ git clone https://github.com/Microsoft/vcpkg.git | $ git clone https://github.com/Microsoft/vcpkg.git | ||
Line 17: | Line 19: | ||
$ .\vcpkg install asio:x64-windows | $ .\vcpkg install asio:x64-windows | ||
$ set PATH=%PATH%;%vcpkg_path%\installed\x64-windows\bin | $ set PATH=%PATH%;%vcpkg_path%\installed\x64-windows\bin | ||
+ | </pre> | ||
+ | ===Build Libparc=== | ||
+ | <pre> | ||
$ cd .. | $ cd .. | ||
$ mkdir hicn-fdio | $ mkdir hicn-fdio | ||
Line 28: | Line 33: | ||
-DCMAKE_INSTALL_PREFIX="%hicn-fdio_path%/install" -DCMAKE_BUILD_TYPE="Release" | -DCMAKE_INSTALL_PREFIX="%hicn-fdio_path%/install" -DCMAKE_BUILD_TYPE="Release" | ||
$ nmake install | $ nmake install | ||
− | $ cd ..\..\.. | + | $ cd ..\..\..\.. |
+ | </pre> | ||
+ | ===Build hICN=== | ||
+ | <pre> | ||
+ | $ cd hicn-fdio | ||
$ git clone https://gerrit.fd.io/r/hicn | $ git clone https://gerrit.fd.io/r/hicn | ||
$ cd hicn | $ cd hicn |
Revision as of 08:42, 26 September 2019
Install dependency
- Install Visual Studio 2017
- Install Windows 10 SDK
- Install Git
- Install CMake
Install Microsoft vcpkg
$ git clone https://github.com/Microsoft/vcpkg.git $ cd vcpkg $ set vcpkg_path=%cd% $ .\bootstrap-vcpkg.bat $ .\vcpkg integrate install $ .\vcpkg install libevent:x64-windows $ .\vcpkg install openssl:x64-windows $ .\vcpkg install pthreads:x64-windows $ .\vcpkg install curl:x64-windows $ .\vcpkg install asio:x64-windows $ set PATH=%PATH%;%vcpkg_path%\installed\x64-windows\bin
Build Libparc
$ cd .. $ mkdir hicn-fdio $ cd hicn-fdio $ set hicn-fdio_path=%cd% $ git clone -b cframework/master https://gerrit.fd.io/r/cicn cframework $ cd cframework\libparc $ mkdir build $ cd build $ cmake .. -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE="%vcpkg_path%/scripts/buildsystems/vcpkg.cmake" ^ -DCMAKE_INSTALL_PREFIX="%hicn-fdio_path%/install" -DCMAKE_BUILD_TYPE="Release" $ nmake install $ cd ..\..\..\..
Build hICN
$ cd hicn-fdio $ git clone https://gerrit.fd.io/r/hicn $ cd hicn $ mkdir build $ cd build $ cmake .. -G"NMake Makefiles" -DCMAKE_TOOLCHAIN_FILE="%vcpkg_path%/scripts/buildsystems/vcpkg.cmake" ^ -DCMAKE_INSTALL_PREFIX="%hicn-fdio_path%/install" -DLIBPARC_HOME="%hicn-fdio_path%/install" -DCMAKE_BUILD_TYPE="Release" $ nmake install