wkcn commented on issue #13559: fix for opencv4
URL: https://github.com/apache/incubator-mxnet/pull/13559#issuecomment-450109289
 
 
   The current source of MXNet is not compatible with OpenCV4, and this PR 
fixes the issue.
   
   In Arch Linux, The package name of OpenCV4 has been changed to `opencv4` 
rather than `opencv`, so I change the Makefile L138~L145:
   ```Makefile
   # setup opencv
   ifeq ($(USE_OPENCV), 1)
        CFLAGS += -DMXNET_USE_OPENCV=1 $(shell pkg-config --cflags opencv4)
        LDFLAGS += $(filter-out -lopencv_ts, $(shell pkg-config --libs opencv4))
        BIN += bin/im2rec
   else
        CFLAGS+= -DMXNET_USE_OPENCV=0
   endif
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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