apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.77k stars 6.8k forks source link

Trying to build MXNET with MSVC 2019 under windows 10 under CMAKE GUI #19783

Closed jbensabat closed 3 years ago

jbensabat commented 3 years ago

Hello I am trying to build a MSVC 2019 X64 using CMAKE GUI the configuration goes fine (Although does not recognize GoogleTest) I get

Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042. CMAKE_CROSSCOMPILING FALSE _CMAKE_HOST_SYSTEM_PROCESSOR AMD64 CMAKE_SYSTEMPROCESSOR AMD64 CMAKE_SYSTEM_NAME Windows CMake version '3.19.3' using generator 'Visual Studio 16 2019' Found OpenBLAS libraries: C:/software/openblas/library/debug/lib/openblas.lib Found OpenBLAS include: C:/software/openblas/library/debug/include After choosing blas, linking to C:/software/openblas/library/debug/lib/openblas.lib OpenCV Disabled Found OpenMP_C: -openmp (found version "2.0") Found OpenMP_CXX: -openmp (found version "2.0") Found OpenMP: TRUE (found version "2.0")
USE_LAPACK is ON CMake Warning (dev) at 3rdparty/googletest/googletest/CMakeLists.txt:13 (option): Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

For compatibility with older versions of CMake, option is clearing the normal variable 'gtest_force_shared_crt'. This warning is for project developers. Use -Wno-dev to suppress it.

Found Python: C:/miniconda3/python.exe (found version "3.8.5") found components: Interpreter Looking for pthread.h Looking for pthread.h - not found Found Threads: TRUE
Found GTest: gtest
Using 64-bit integer for tensor size Found Python3: C:/miniconda3/python.exe (found version "3.8.5") found components: Interpreter CMake Warning at CMakeLists.txt:933 (message): OpenCV_VERSION_MAJOR: , version 3 with imgcodecs is required for im2rec, im2rec will not be available

Google Test not found Configuring done CMake Error at CMakeLists.txt:547 (add_library): No SOURCES given to target: nnvm

When I try to create the solution I get an error but no indication it seems to me that it defines my computer as AMD64 while it is not any help would really be welcome best jac

github-actions[bot] commented 3 years ago

Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.

leezu commented 3 years ago

You forgot to initialize 3rdparty subdirector. Run git submodule update --init --recursive

jbensabat commented 3 years ago

could you be more explicit please thanks jac

leezu commented 3 years ago

I suspect that you forgot to initialize the git 3rdparty submodules. That's why cmake doesn't find all components. If you have a terminal, run git submodule update --init --recursive inside mxnet dir. You can also search on the internet how to do it with MSVC

jbensabat commented 3 years ago

thanks i downloaded the code from the site (zip file) I then cloned using git and updated and now I can build the lib thanks