mxnet

mxnet is not compatible with OpenCV 4.0, you have to explicitly switch to OpenCV 3.4:

# config.cmake

hunter_config(OpenCV VERSION 3.4.3-p4)

Please check TVM documentation for additional requirements.

Note

Note

It’s highly recommended to use export OMP_NUM_THREADS=1 while running code and compiling MXNet. Not using this variable can leads to random runtime errors and build freezes.

hunter_add_package(mxnet)
find_package(mxnet CONFIG REQUIRED)

add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC mxnet::mxnet)