monero-cpp icon indicating copy to clipboard operation
monero-cpp copied to clipboard

Test Build on Windows

Open woodser opened this issue 3 years ago • 3 comments

This issue requests building and testing this library on Windows

woodser avatar Sep 26 '21 09:09 woodser

Can't build on Windows/MSYS2.

rohanrhu avatar May 28 '22 20:05 rohanrhu

The build is successful, the following files need to be modified in window/msys2:

  1. Change the int in line 199 of ‘monero-cpp\external\monero-project\contrib\epee\include\console_handler.h’ to DWORD
  2. msys2\mingw64\share\cmake\Modules\FindProtobuf.cmake needs to add Protobuf_INCLUDE_DIR, Protobuf_LIBRARY variables (I am a novice and don't know how to set variables, so I directly modify this file)

yzqyzq avatar Jul 24 '22 07:07 yzqyzq

The build is successful, the following files need to be modified in window/msys2:

  1. Change the int in line 199 of ‘monero-cpp\external\monero-project\contrib\epee\include\console_handler.h’ to DWORD
  2. msys2\mingw64\share\cmake\Modules\FindProtobuf.cmake needs to add Protobuf_INCLUDE_DIR, Protobuf_LIBRARY variables (I am a novice and don't know how to set variables, so I directly modify this file)

I built on MSYS2 already. MSYS2 is amazing.

rohanrhu avatar Jul 24 '22 14:07 rohanrhu

Windows/MSYS2 is supported in monero-cpp v0.7.5 following these instructions.

Commits https://github.com/monero-ecosystem/monero-cpp/commit/0ec3f7f68b5259de0f6aae93842ac2352afce3de and https://github.com/monero-ecosystem/monero-cpp/commit/6d49f79588e3da40390e7426860b93d74145c7cc.

woodser avatar Jan 04 '23 18:01 woodser