Tencent / ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform
Other
20.49k stars 4.17k forks source link

Windows x64 build guide produces x86 binary #2989

Closed ivanjx closed 3 years ago

ivanjx commented 3 years ago

I followed this but it produces x86 dll instead of x64. Here is my command:

cmake -G"NMake Makefiles" `
      -D CMAKE_BUILD_TYPE=Release `
      -D CMAKE_INSTALL_PREFIX=install `
      -D Protobuf_INCLUDE_DIR=$protoinclude `
      -D Protobuf_LIBRARIES=$protolib `
      -D Protobuf_PROTOC_EXECUTABLE=$protoc `
      -D NCNN_SHARED_LIB=ON `
      -D NCNN_ENABLE_LTO=ON `
      -D NCNN_SIMPLEOCV=ON `
      ..
set CL=/MP
nmake
nmake install
ivanjx commented 3 years ago

It seems that I forgot to run it wit the x64 shell. Also needs to turn off the tools and examples build because they give errors.