|
|
(8 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | | + | ==Build== |
| ===Install dependency=== | | ===Install dependency=== |
− | #Install [https://visualstudio.microsoft.com/it/ Visual Studio 2017] | + | #Download the file [https://raw.githubusercontent.com/icn-team/windows-sdk/master/scripts/init.bat init.bat] |
− | #Install [https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk Windows 10 SDK]
| + | #Execute the script init.bat |
− | #Install [https://git-scm.com/download/win Git]
| + | |
− | #Install [https://cmake.org/download/ CMake] | + | |
| | | |
| ===Install Microsoft vcpkg=== | | ===Install Microsoft vcpkg=== |
| <pre> | | <pre> |
− | $ git clone https://github.com/Microsoft/vcpkg.git | + | $ make vcpkg |
− | $ 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
| + | |
− | </pre>
| + | |
− | ===Build Libparc===
| + | |
− | <pre>
| + | |
− | $ 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 ..\..\..\..
| + | |
| </pre> | | </pre> |
− | ===Build hICN=== | + | ===Build hICN stack=== |
| <pre> | | <pre> |
− | $ cd hicn-fdio
| + | $ git clone https://github.com/icn-team/windows-sdk.git |
− | $ git clone https://gerrit.fd.io/r/hicn | + | $ cd windows-sdk |
− | $ cd hicn | + | $ make all |
− | $ 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 | + | |
| </pre> | | </pre> |
Latest revision as of 11:34, 15 July 2020
Build
Install dependency
- Download the file init.bat
- Execute the script init.bat
Install Microsoft vcpkg
$ make vcpkg
Build hICN stack
$ git clone https://github.com/icn-team/windows-sdk.git
$ cd windows-sdk
$ make all