🗒️
notes
  • Journal
  • URLs
  • Java Card
    • SCP02
    • Rapid Notes
    • _FIXVALS_
    • Mifare
    • Chain Of Trust
  • Encoding
    • CBEFF
    • Bytes
  • Snippets
    • JNI_OnLoad
  • float to byte[]
  • Protobuf
  • C/C++
    • Containers
    • Basics
    • JNI
    • gcov
    • Castings
  • chess
    • Untitled
  • Compression
    • Untitled
  • Snippets
    • Untitled
  • Build Systems
    • Maven
    • Windows
  • Gradle
  • CMake
  • Java
    • Untitled
    • Certificates
  • Android
    • Mifare
  • Python
    • ctypes
  • WebSub
    • References
  • Spring Boot
    • Form-based Authentication
    • Basic Access Authentication
    • JWT Authentication
  • QR Code
    • Denso QR Code
  • Philosophical Inquiry
    • First
  • XML
    • xmlstarlet
Powered by GitBook
On this page

Was this helpful?

  1. Build Systems

Windows

Building Dlib:

Same as in Linux it uses cmake. Open git bash shell or DOS cmd:

cd dlib
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=install -T host=x64 ..
cmake --build . --config Release --target INSTALL

Result is a fully ready header files and lib under install folder.

Building Protobuf:

In Linux the build system uses configure but in Windows system it uses cmake. Open git bash shell:

cd protobuf
cd cmake
mkdir -p build/release && cd build/release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install ../..
cmake --build . --config Release --target INSTALL

Result is fully ready header files, lib, and protoc.exe under the install folder.

Building Libsodium:

This the most different to build under Windows. It does not use cmake nor any other Unix way of building things. Open any DOS shell.

Edit buildall.bat and comment out non-existent Visual Studio versions. For example, I have Visual Studio 2019 therefore I keep this line and comment out the other lines.

cd libsodium
cd builds\msvc\build
buildall.bat

Result is dynamic and static libraries under libsodium/bin folder.

PreviousMavenNextGradle

Last updated 4 years ago

Was this helpful?