Megvii-BaseDetection / YOLOX

YOLOX is a high-performance anchor-free YOLO, exceeding yolov3~v5 with MegEngine, ONNX, TensorRT, ncnn, and OpenVINO supported. Documentation: https://yolox.readthedocs.io/
Apache License 2.0
9.44k stars 2.21k forks source link

windows10 下 使用 megengine 部署模型编译失败 #775

Closed SevenFo closed 3 years ago

SevenFo commented 3 years ago

在windows10下使用运行/demo/MegEngine/cpp/build.sh 使用g++编译yolox.cpp报错,提示找不到megengine库文件

$ ./build.sh
CXX: g++
MGE_INSTALL_PATH: /d/d/programs/install/
INCLUDE_FLAG: -I/d/d/programs/install//include -I/d/programs/QLDownload/opencv/gcc_version/install/include
LINK_FLAG: -L/d/d/programs/install//lib/ -lmegengine -L/d/programs/QLDownload/opencv/gcc_version/install/x64/mingw/lib -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs
BUILD_FLAG: -static-libstdc++ -O3 -pie -fPIE -g
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmegengine
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_core
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_highgui
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_imgproc
C:/Qt/Tools/mingw810_64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_imgcodecs

在MegEngine安装目录下只找到这些库文件

$ ls
cmake/  dnnl.lib  flatbuffers.lib  mkldnn.lib  pkgconfig/
FateScript commented 3 years ago

PTAL @haolongzhangm @xxr3376