Closed SevenFo closed 3 years ago
在windows10下使用运行/demo/MegEngine/cpp/build.sh 使用g++编译yolox.cpp报错,提示找不到megengine库文件
/demo/MegEngine/cpp/build.sh
yolox.cpp
$ ./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/
PTAL @haolongzhangm @xxr3376
在windows10下使用运行
/demo/MegEngine/cpp/build.sh
使用g++编译yolox.cpp
报错,提示找不到megengine库文件在MegEngine安装目录下只找到这些库文件