madMAx43v3r / chia-plotter

Apache License 2.0
2.28k stars 665 forks source link

Build failed on Windows10 #22

Open ArtrixTech opened 3 years ago

ArtrixTech commented 3 years ago

When executing cmake -D CMAKE_CXX_FLAGS="-g -O3 -fmax-errors=1" -DBUILD_BLS_PYTHON_BINDINGS=false .. on Windows 10, I only get results:

PS D:\ProjectFiles\GitClone\chia-plotter\build> cmake -D CMAKE_CXX_FLAGS="-g -O3 -fmax-errors=1" -DBUILD_BLS_PYTHON_BINDINGS=false ..
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Warning (dev) at lib/bls-signatures/CMakeLists.txt:11 (set):
  implicitly converting 'INTEGER' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at lib/bls-signatures/CMakeLists.txt:12 (set):
  implicitly converting 'INTEGER' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at lib/bls-signatures/CMakeLists.txt:13 (set):
  implicitly converting 'INTEGER' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Build python bindings: false
-- Build tests: 1
-- Build benchmarks: 1
-- Found libsodium
-- Sodium include dir = C:/ProgramData/Anaconda3/Library/include
GMP_INCLUDES=C:/ProgramData/Anaconda3/Library/mingw-w64/include
-- Found libgmp
CMake Warning (dev) at lib/bls-signatures/CMakeLists.txt:54 (set):
  implicitly converting 'INTEGER' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at lib/bls-signatures/CMakeLists.txt:65 (set):

......

-- Available random number generator seeders (default = UDEV):

   SEED=          Use a zero seed. (horribly insecure!)
   SEED=LIBC      Use rand()/random() functions. (insecure!)
   SEED=RDRND     Use Intel RdRand instruction directly.
   SEED=UDEV      Use non-blocking /dev/urandom. (recommended)
   SEED=WCGR      Use Windows' CryptGenRandom. (recommended)

-- Configured operating system: WINDOWS
-- Supported MSVC runtime libraries (default = MD):

   RUNTIME=MD     DLL runtime library (/MD,/MDd).
   RUNTIME=MT     Static runtime library (/MT,/MTd).

-- Configured GMP: C:/ProgramData/Anaconda3/Library/lib/gmp.lib
-- Compiler flags:  -Wall   -O3 -funroll-loops -fomit-frame-pointer -pthread
-- Linker flags: -LD:/ProjectFiles/GitClone/chia-plotter/build/_deps/relic-src/src/low/gmp/  -static
-- Configured D:/ProjectFiles/GitClone/chia-plotter/build/_deps/relic-src/include/relic_conf.h.in
SODIUM_FOUND in src/CMakeLists.txt
-- Configuring done
-- Generating done
-- Build files have been written to: D:/ProjectFiles/GitClone/chia-plotter/build

Then when I execute the make -j8 @$, it simply says there is nothing matching the compiling rule.

Would you mind to provide an available compiling script on Windows? Thanks a lot.

122474363 commented 3 years ago

同求