chhokrad opened a new issue #15771: Cross Compile MXNET for RPI 4 with opencv, 
openmp and DIST_KVSTORE enabled failed
URL: https://github.com/apache/incubator-mxnet/issues/15771
 
 
   ## Description
   
   Need instructions to cross compile mxnet for raspberry pi using docker with 
opencv, openmp and DIST_KVSTORE enabled. I tried changing build_armv7() 
function to reflect my options but got the following error.
   
   ## Environment info (Required)
   
   Distributor ID: Ubuntu (Virtual Machine)
   Description:    Ubuntu 16.04.6 LTS
   Release:        16.04
   Codename:       xenial
   
   MXNET REPO:  git clone https://github.com/apache/incubator-mxnet.git 
--branch v1.4.x --recursive
   
   
   Package used (Python/R/Scala/Julia):
   Python
   
   ## Build info (Required if built from source)
   
   Compiler (gcc/clang/mingw/visual studio):
   gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
   
   MXNet commit hash:
   e368ea24895b92f7e6b43fc0a51b3b0131193f12
   
   
   ## Error Message:
   CMake Warning at CMakeLists.txt:376 (find_package):
   By not providing “FindOpenCV.cmake” in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by “OpenCV”, but
   CMake did not find one.
   
   Could not find a package configuration file provided by “OpenCV” with any
   of the following names:
   
   OpenCVConfig.cmake
   opencv-config.cmake
   Add the installation prefix of “OpenCV” to CMAKE_PREFIX_PATH or set
   “OpenCV_DIR” to a directory containing one of the above files. If “OpenCV”
   provides a separate development package or SDK, be sure it has been
   installed.
   
   CMake Error at CMakeLists.txt:379 (find_package):
   By not providing “FindOpenCV.cmake” in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by “OpenCV”, but
   CMake did not find one.
   
   Could not find a package configuration file provided by “OpenCV” with any
   of the following names:
   
   OpenCVConfig.cmake
   opencv-config.cmake
   Add the installation prefix of “OpenCV” to CMAKE_PREFIX_PATH or set
   “OpenCV_DIR” to a directory containing one of the above files. If “OpenCV”
   provides a separate development package or SDK, be sure it has been
   installed.
   
   ## Minimum reproducible example
   Changed build_armv7() function in runtime_function.sh as follows:
   
   ```
   build_armv7() {
       set -ex
       pushd .
       cd /work/build
   
       # Lapack functionality will be included and statically linked to 
openblas.
       # But USE_LAPACK needs to be set to OFF, otherwise the main 
CMakeLists.txt
       # file tries to add -llapack. Lapack functionality though, requires 
-lgfortran
       # to be linked additionally.
   
       cmake \
           -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} \
           -DCMAKE_CROSSCOMPILING=ON \
           -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
           -DCMAKE_C_COMPILER_LAUNCHER=ccache \
           -DUSE_CUDA=OFF \
           -DUSE_OPENCV=OFF \
           -DUSE_OPENMP=OFF \
           -DUSE_DIST_KVSTOTE=ON \
           -DUSE_SIGNAL_HANDLER=ON \
           -DCMAKE_BUILD_TYPE=Release \
           -DUSE_MKL_IF_AVAILABLE=OFF \
           -DUSE_LAPACK=OFF \
           -DBUILD_CPP_EXAMPLES=OFF \
           -Dmxnet_LINKER_LIBS=-lgfortran \
           -G Ninja /work/mxnet
   
       ninja -v
       build_wheel
       popd
   }
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to