-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac编译问题: ffmpeg依赖和opencv动态库 #203
Comments
我没有在windows编译过,你可以看一下别人是怎么解决的。 References for Windows10 userswindows下的使用可以参考以下这几个讨论(some references for windows users)
另外,是win32和system32,目前lite.ai.toolkit没有考虑32位的系统。还有就是在windows下编译完之后,需要手动把依赖库都拷贝到build/lite.ai.toolkit/lib和build/lite.ai.toolkit/bin,并且检查修改下模型文件的路径,比如说路径的反斜杠之类的。(Also, for win32 and system32, currently, lite.ai.toolkit does not consider 32-bit systems. Also, after compiling under Windows, you need to manually copy the dependent libraries to build/lite.ai.toolkit/lib and build/lite.ai.toolkit/bin, and check and modify the path of the model file, for example, The backslash of the path.) Search issues about windows |
你这里看起来几乎都是onnxruntime的问题,应该某些转换被禁用了,导致编译通不过 |
我就是把opecv和onnxruntime下载下来,然后把相应的文件拷到lite.ai.toolkit里面,然后build,build成功了,就是make -j8的时候就开始报错。 |
我不太懂为啥build成功了还要make? 不是cmake + make之后才会build成功吗。windows的命令行感觉不太好使啊,windows建议采用 cmake+clion的方式,将opencv和onnxruntime的dll下载下来放在lite.ai.toolkit/lib,并删除原来的dylib(这是mac的),用clion来打开工程,设置编译工具链设置为vs2017对应的,尝试在clion中加载lite.ai.toolkit根目录的CMakeLists.txt初始化工程(注意要记得先将CMakeLists.txt中的ENABLE_MNN/ENABLE_TNN/ENABLE_NCNN都先手动指定为OFF,因为windows下无法使用我写好的build.sh,build.sh是有默认设置的,所以在win只能手动改),看一下cmake输出的各个message是否正常。然后初始化成功后,点击右上角的build,进行编译。其实编译逻辑都写在CMakeLists.txt了,有问题可以看看CMakeLists.txt。编译完的lite.ai.toolkit.dll会在build/lite.ai.toolkit/lib目录下,使用时,需要把opencv、onnxruntime、lite.ai.toolkit的dll都放在同一个目录下 |
emm,是我说错了,就是运行build.sh cmake成功了,然后make -j8 报错了。。。 |
你这里看起来是编译器禁用了某些选项,导致onnxruntime的链接有问题,我看到连execption都被禁用了。具体我就不清楚了。 |
链接不到动态库。为什么会用到opencv_dnn这个库呢?应该是不需要的啊 |
你在mac下直接运行 sh ./build.sh 应该就可以编译了。我这边都是这样编译的。 |
我感觉我帮不了你了,不知道你的系统到底啥问题..... |
你在mac是怎么编译的?太奇怪了,因为我是在Mac下开发的,所以我觉得mac下是不太可能出问题的啊。 |
我在mac下的编译log: ➜ github git clone --depth=1 https://github.com/DefTruth/lite.ai.toolkit.git
Cloning into 'lite.ai.toolkit'...
remote: Enumerating objects: 1453, done.
remote: Counting objects: 100% (1453/1453), done.
remote: Compressing objects: 100% (989/989), done.
remote: Total 1453 (delta 585), reused 1136 (delta 431), pack-reused 0
Receiving objects: 100% (1453/1453), 291.42 MiB | 16.53 MiB/s, done.
Resolving deltas: 100% (585/585), done.
Checking out files: 100% (1407/1407), done.
➜ github cd lite.ai.toolkit
➜ lite.ai.toolkit git:(main) sh ./build.sh
build directory exist! clearing ...
clear built files done ! & rebuilding ...
-- The C compiler identification is AppleClang 10.0.1.10010046
-- The CXX compiler identification is AppleClang 10.0.1.10010046
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
########## Checking Platform for: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit ###########
==================================== Lite.AI.ToolKit 0.1.0 =============================
Project: lite.ai.toolkit
Version: 0.1.0
SO Version: 0.1.0
Build Type: MinSizeRel
Platform Name: macos
Root Path: /Users/qiuyanjun/Desktop/third_party/github/lite.ai.toolkit
================================================================================
################################### Engines Enable Details ... #######################################
-- INCLUDE_OPENCV: ON
-- ENABLE_ONNXRUNTIME: ON
-- ENABLE_MNN: OFF
-- ENABLE_NCNN: OFF
-- ENABLE_TNN: OFF
######################################################################################################
########## Setting up OpenCV libs for: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit ###########
###########################################################################################
Installing Lite.AI.ToolKit Headers for ONNXRuntime Backend ...
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/ort/core/ort_config.h
.......
Installing Lite.AI.ToolKit Headers ...
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/backend.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/config.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/lite.ai.defs.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/lite.ai.headers.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/lite.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/models.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/pipeline.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/types.h
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/lite/utils.h
>>>> Added Shared Library: lite.ai.toolkit !
Installing OpenCV libs -> INCLUDE_OPENCV: ON ...
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_core.4.5.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_core.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_imgcodecs.4.5.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_imgcodecs.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_imgproc.4.5.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_imgproc.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_video.4.5.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_video.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_videoio.4.5.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libopencv_videoio.dylib
Installing ONNXRuntime libs -> ENABLE_ONNXRUNTIME: ON ...
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libonnxruntime.1.7.0.dylib
-- Installing: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib/libonnxruntime.dylib
>>>> Added Lite Executable: lite_age_googlenet !
>>>> Added Lite Executable: lite_fsanet !
>>>> Added Lite Executable: lite_colorizer !
>>>> Added Lite Executable: lite_deeplabv3_resnet101 !
>>>> Added Lite Executable: lite_densenet !
>>>> Added Lite Executable: lite_efficientnet_lite4 !
>>>> Added Lite Executable: lite_emotion_ferplus !
>>>> Added Lite Executable: lite_fast_style_transfer !
>>>> Added Lite Executable: lite_fcn_resnet101 !
>>>> Added Lite Executable: lite_gender_googlenet !
>>>> Added Lite Executable: lite_ghostnet !
>>>> Added Lite Executable: lite_hardnet !
>>>> Added Lite Executable: lite_ibnnet !
>>>> Added Lite Executable: lite_mobilenetv2 !
>>>> Added Lite Executable: lite_pfld !
>>>> Added Lite Executable: lite_resnet !
>>>> Added Lite Executable: lite_resnext !
>>>> Added Lite Executable: lite_shufflenetv2 !
>>>> Added Lite Executable: lite_ssrnet !
>>>> Added Lite Executable: lite_subpixel_cnn !
>>>> Added Lite Executable: lite_ultraface !
>>>> Added Lite Executable: lite_vgg16_age !
>>>> Added Lite Executable: lite_vgg16_gender !
>>>> Added Lite Executable: lite_yolov3 !
>>>> Added Lite Executable: lite_yolov4 !
>>>> Added Lite Executable: lite_yolov5 !
>>>> Added Lite Executable: lite_tiny_yolov3 !
>>>> Added Lite Executable: lite_ssd !
>>>> Added Lite Executable: lite_ssd_mobilenetv1 !
>>>> Added Lite Executable: lite_glint_arcface !
>>>> Added Lite Executable: lite_glint_cosface !
>>>> Added Lite Executable: lite_glint_partial_fc !
>>>> Added Lite Executable: lite_facenet !
>>>> Added Lite Executable: lite_focal_arcface !
>>>> Added Lite Executable: lite_focal_asia_arcface !
>>>> Added Lite Executable: lite_tencent_cifp_face !
>>>> Added Lite Executable: lite_tencent_curricular_face !
>>>> Added Lite Executable: lite_center_loss_face !
>>>> Added Lite Executable: lite_sphere_face !
>>>> Added Lite Executable: lite_pose_robust_face !
>>>> Added Lite Executable: lite_naive_pose_robust_face !
>>>> Added Lite Executable: lite_mobile_facenet !
>>>> Added Lite Executable: lite_cava_ghost_arcface !
>>>> Added Lite Executable: lite_cava_combined_face !
>>>> Added Lite Executable: lite_yolox !
>>>> Added Lite Executable: lite_mobilese_focal_face !
>>>> Added Lite Executable: lite_efficient_emotion7 !
>>>> Added Lite Executable: lite_efficient_emotion8 !
>>>> Added Lite Executable: lite_rexnet_emotion7 !
>>>> Added Lite Executable: lite_mobile_emotion7 !
>>>> Added Lite Executable: lite_pfld98 !
>>>> Added Lite Executable: lite_pfld68 !
>>>> Added Lite Executable: lite_mobilenetv2_68 !
>>>> Added Lite Executable: lite_mobilenetv2_se_68 !
>>>> Added Lite Executable: lite_face_landmarks_1000 !
>>>> Added Lite Executable: lite_retinaface !
>>>> Added Lite Executable: lite_faceboxes !
>>>> Added Lite Executable: lite_tiny_yolov4_voc !
>>>> Added Lite Executable: lite_tiny_yolov4_coco !
>>>> Added Lite Executable: lite_yolor !
>>>> Added Lite Executable: lite_scaled_yolov4 !
>>>> Added Lite Executable: lite_efficientdet !
>>>> Added Lite Executable: lite_efficientdet_d7 !
>>>> Added Lite Executable: lite_efficientdet_d8 !
>>>> Added Lite Executable: lite_yolop !
>>>> Added Lite Executable: lite_rvm !
>>>> Added Lite Executable: lite_nanodet !
>>>> Added Lite Executable: lite_nanodet_efficientnet_lite !
>>>> Added Lite Executable: lite_nanodet_depreciated !
>>>> Added Lite Executable: lite_nanodet_efficientnet_lite_depreciated !
>>>> Added Lite Executable: lite_yolox_v0.1.1 !
>>>> Added Lite Executable: lite_yolov5_v6.0 !
>>>> Added Lite Executable: lite_mg_matting !
>>>> Added Lite Executable: lite_nanodet_plus !
>>>> Added Lite Executable: lite_scrfd !
>>>> Added Lite Executable: lite_yolo5face !
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build
Scanning dependencies of target lite.ai.toolkit
[ 0%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/utils.cpp.o
[ 0%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/age_googlenet.cpp.o
[ 0%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/cava_ghost_arcface.cpp.o
[ 1%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/center_loss_face.cpp.o
[ 1%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/colorizer.cpp.o
[ 2%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/densenet.cpp.o
[ 2%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/cava_combined_face.cpp.o
[ 3%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/deeplabv3_resnet101.cpp.o
[ 3%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/efficient_emotion7.cpp.o
[ 4%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/efficient_emotion8.cpp.o
[ 4%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/efficientdet.cpp.o
[ 5%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/efficientdet_d7.cpp.o
[ 5%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/efficientdet_d8.cpp.o
[ 6%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/efficientnet_lite4.cpp.o
[ 6%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/emotion_ferplus.cpp.o
[ 6%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/face_landmarks_1000.cpp.o
[ 7%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/faceboxes.cpp.o
[ 7%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/facenet.cpp.o
[ 8%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/fast_style_transfer.cpp.o
[ 8%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/fcn_resnet101.cpp.o
[ 9%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/focal_arcface.cpp.o
[ 9%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/focal_asia_arcface.cpp.o
[ 10%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/fsanet.cpp.o
[ 10%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/gender_googlenet.cpp.o
[ 10%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/ghostnet.cpp.o
[ 11%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/glint_arcface.cpp.o
[ 11%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/glint_cosface.cpp.o
[ 12%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/glint_partial_fc.cpp.o
[ 12%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/hardnet.cpp.o
[ 13%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/ibnnet.cpp.o
[ 13%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mg_matting.cpp.o
[ 13%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mobile_emotion7.cpp.o
[ 14%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mobile_facenet.cpp.o
[ 14%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mobilenetv2.cpp.o
[ 15%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mobilenetv2_68.cpp.o
[ 15%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mobilenetv2_se_68.cpp.o
[ 16%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/mobilese_focal_face.cpp.o
[ 16%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/naive_pose_robust_face.cpp.o
[ 16%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/nanodet.cpp.o
[ 17%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/nanodet_efficientnet_lite.cpp.o
[ 17%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/nanodet_plus.cpp.o
[ 18%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/pfld.cpp.o
[ 18%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/pfld68.cpp.o
[ 19%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/pfld98.cpp.o
[ 19%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/pose_robust_face.cpp.o
[ 20%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/resnet.cpp.o
[ 20%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/resnext.cpp.o
[ 20%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/retinaface.cpp.o
[ 21%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/rexnet_emotion7.cpp.o
[ 21%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/rvm.cpp.o
[ 22%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/scaled_yolov4.cpp.o
[ 22%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/scrfd.cpp.o
[ 23%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/shufflenetv2.cpp.o
[ 23%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/sphere_face.cpp.o
[ 23%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/ssd.cpp.o
[ 24%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/ssd_mobilenetv1.cpp.o
[ 24%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/ssrnet.cpp.o
[ 25%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/subpixel_cnn.cpp.o
[ 25%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/tencent_cifp_face.cpp.o
[ 26%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/tencent_curricular_face.cpp.o
[ 26%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/tiny_yolov3.cpp.o
[ 26%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/tiny_yolov4_coco.cpp.o
[ 27%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/tiny_yolov4_voc.cpp.o
[ 27%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/ultraface.cpp.o
[ 28%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/vgg16_age.cpp.o
[ 28%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/vgg16_gender.cpp.o
[ 29%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolo5face.cpp.o
[ 29%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolop.cpp.o
[ 30%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolor.cpp.o
[ 30%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolov3.cpp.o
[ 30%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolov4.cpp.o
[ 31%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolov5.cpp.o
[ 31%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolov5_v6.0.cpp.o
[ 32%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolox.cpp.o
[ 32%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/cv/yolox_v0.1.1.cpp.o
[ 33%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/core/ort_handler.cpp.o
[ 33%] Building CXX object CMakeFiles/lite.ai.toolkit.dir/lite/ort/core/ort_utils.cpp.o
[ 33%] Linking CXX shared library lite.ai.toolkit/lib/liblite.ai.toolkit.dylib
Preparing /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/lib ... done!
Preparing /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/bin ... done!
Installing opencv2 headers to /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/opencv2 ... done!
Installing onnxruntime headers to /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/include/onnxruntime ... done!
Installing all lite.ai.toolkit libs to /Users/xxx/Desktop/third_party/github/lite.ai.toolkit/build/lite.ai.toolkit/bin ... done!
[ 33%] Built target lite.ai.toolkit
Scanning dependencies of target lite_yolop
Scanning dependencies of target lite_nanodet_plus
Scanning dependencies of target lite_yolov5_v6.0
Scanning dependencies of target lite_yolox_v0.1.1
Scanning dependencies of target lite_rvm
Scanning dependencies of target lite_scrfd
Scanning dependencies of target lite_nanodet_efficientnet_lite_depreciated
Scanning dependencies of target lite_scaled_yolov4
[ 34%] Building CXX object examples/lite/CMakeFiles/lite_nanodet_plus.dir/cv/test_lite_nanodet_plus.cpp.o
[ 34%] Building CXX object examples/lite/CMakeFiles/lite_rvm.dir/cv/test_lite_rvm.cpp.o
[ 34%] Building CXX object examples/lite/CMakeFiles/lite_yolop.dir/cv/test_lite_yolop.cpp.o
[ 35%] Building CXX object examples/lite/CMakeFiles/lite_nanodet_efficientnet_lite_depreciated.dir/cv/test_lite_nanodet_efficientnet_lite_depreciated.cpp.o
[ 35%] Building CXX object examples/lite/CMakeFiles/lite_yolox_v0.1.1.dir/cv/test_lite_yolox_v0.1.1.cpp.o
[ 35%] Building CXX object examples/lite/CMakeFiles/lite_scrfd.dir/cv/test_lite_scrfd.cpp.o
[ 35%] Building CXX object examples/lite/CMakeFiles/lite_scaled_yolov4.dir/cv/test_lite_scaled_yolov4.cpp.o
[ 35%] Building CXX object examples/lite/CMakeFiles/lite_yolov5_v6.0.dir/cv/test_lite_yolov5_v6.0.cpp.o
[ 36%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_rvm
[ 37%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolox_v0.1.1
[ 38%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_scaled_yolov4
[ 39%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolov5_v6.0
[ 39%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_nanodet_plus
[ 40%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_scrfd
[ 40%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_nanodet_efficientnet_lite_depreciated
[ 40%] Built target lite_rvm
[ 40%] Built target lite_yolox_v0.1.1
Scanning dependencies of target lite_yolor
[ 40%] Built target lite_yolov5_v6.0
Scanning dependencies of target lite_retinaface
[ 40%] Built target lite_scaled_yolov4
[ 40%] Built target lite_scrfd
[ 40%] Built target lite_nanodet_plus
[ 40%] Built target lite_nanodet_efficientnet_lite_depreciated
Scanning dependencies of target lite_face_landmarks_1000
Scanning dependencies of target lite_mobilenetv2_68
Scanning dependencies of target lite_nanodet_efficientnet_lite
Scanning dependencies of target lite_faceboxes
Scanning dependencies of target lite_pfld68
[ 40%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolop
[ 41%] Building CXX object examples/lite/CMakeFiles/lite_yolor.dir/cv/test_lite_yolor.cpp.o
[ 42%] Building CXX object examples/lite/CMakeFiles/lite_retinaface.dir/cv/test_lite_retinaface.cpp.o
[ 43%] Building CXX object examples/lite/CMakeFiles/lite_face_landmarks_1000.dir/cv/test_lite_face_landmarks_1000.cpp.o
[ 44%] Building CXX object examples/lite/CMakeFiles/lite_faceboxes.dir/cv/test_lite_faceboxes.cpp.o
[ 44%] Building CXX object examples/lite/CMakeFiles/lite_mobilenetv2_68.dir/cv/test_lite_mobilenetv2_68.cpp.o
[ 45%] Building CXX object examples/lite/CMakeFiles/lite_nanodet_efficientnet_lite.dir/cv/test_lite_nanodet_efficientnet_lite.cpp.o
[ 45%] Building CXX object examples/lite/CMakeFiles/lite_pfld68.dir/cv/test_lite_pfld68.cpp.o
[ 45%] Built target lite_yolop
Scanning dependencies of target lite_mg_matting
[ 45%] Building CXX object examples/lite/CMakeFiles/lite_mg_matting.dir/cv/test_lite_mg_matting.cpp.o
[ 45%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_face_landmarks_1000
[ 45%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolor
[ 45%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mobilenetv2_68
[ 46%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_pfld68
[ 46%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_nanodet_efficientnet_lite
[ 46%] Built target lite_face_landmarks_1000
[ 46%] Built target lite_yolor
[ 46%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_retinaface
[ 46%] Built target lite_mobilenetv2_68
Scanning dependencies of target lite_rexnet_emotion7
Scanning dependencies of target lite_efficient_emotion8
Scanning dependencies of target lite_shufflenetv2
[ 46%] Built target lite_pfld68
[ 46%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_faceboxes
[ 46%] Built target lite_nanodet_efficientnet_lite
Scanning dependencies of target lite_efficient_emotion7
Scanning dependencies of target lite_mobilese_focal_face
[ 46%] Built target lite_retinaface
Scanning dependencies of target lite_cava_combined_face
[ 46%] Built target lite_faceboxes
[ 46%] Building CXX object examples/lite/CMakeFiles/lite_rexnet_emotion7.dir/cv/test_lite_rexnet_emotion7.cpp.o
Scanning dependencies of target lite_tiny_yolov3
[ 47%] Building CXX object examples/lite/CMakeFiles/lite_efficient_emotion8.dir/cv/test_lite_efficient_emotion8.cpp.o
[ 47%] Building CXX object examples/lite/CMakeFiles/lite_shufflenetv2.dir/cv/test_lite_shufflenetv2.cpp.o
[ 48%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mg_matting
[ 48%] Building CXX object examples/lite/CMakeFiles/lite_efficient_emotion7.dir/cv/test_lite_efficient_emotion7.cpp.o
[ 48%] Building CXX object examples/lite/CMakeFiles/lite_mobilese_focal_face.dir/cv/test_lite_mobilese_focal_face.cpp.o
[ 49%] Building CXX object examples/lite/CMakeFiles/lite_cava_combined_face.dir/cv/test_lite_cava_combined_face.cpp.o
[ 49%] Built target lite_mg_matting
[ 50%] Building CXX object examples/lite/CMakeFiles/lite_tiny_yolov3.dir/cv/test_lite_tiny_yolov3.cpp.o
Scanning dependencies of target lite_naive_pose_robust_face
[ 50%] Building CXX object examples/lite/CMakeFiles/lite_naive_pose_robust_face.dir/cv/test_lite_naive_pose_robust_face.cpp.o
[ 51%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_rexnet_emotion7
[ 51%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_efficient_emotion7
[ 51%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_shufflenetv2
[ 51%] Built target lite_rexnet_emotion7
[ 51%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_efficient_emotion8
[ 52%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mobilese_focal_face
Scanning dependencies of target lite_efficientdet_d8
[ 52%] Built target lite_efficient_emotion7
[ 52%] Built target lite_shufflenetv2
[ 52%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_cava_combined_face
Scanning dependencies of target lite_cava_ghost_arcface
Scanning dependencies of target lite_mobile_emotion7
[ 52%] Built target lite_efficient_emotion8
[ 52%] Built target lite_mobilese_focal_face
Scanning dependencies of target lite_sphere_face
[ 52%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_tiny_yolov3
Scanning dependencies of target lite_efficientdet_d7
[ 52%] Built target lite_cava_combined_face
[ 52%] Building CXX object examples/lite/CMakeFiles/lite_efficientdet_d8.dir/cv/test_lite_efficientdet_d8.cpp.o
Scanning dependencies of target lite_center_loss_face
[ 53%] Building CXX object examples/lite/CMakeFiles/lite_cava_ghost_arcface.dir/cv/test_lite_cava_ghost_arcface.cpp.o
[ 53%] Building CXX object examples/lite/CMakeFiles/lite_mobile_emotion7.dir/cv/test_lite_mobile_emotion7.cpp.o
[ 53%] Built target lite_tiny_yolov3
Scanning dependencies of target lite_tencent_curricular_face
[ 54%] Building CXX object examples/lite/CMakeFiles/lite_sphere_face.dir/cv/test_lite_sphere_face.cpp.o
[ 55%] Building CXX object examples/lite/CMakeFiles/lite_efficientdet_d7.dir/cv/test_lite_efficientdet_d7.cpp.o
[ 55%] Building CXX object examples/lite/CMakeFiles/lite_center_loss_face.dir/cv/test_lite_center_loss_face.cpp.o
[ 56%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_naive_pose_robust_face
[ 56%] Building CXX object examples/lite/CMakeFiles/lite_tencent_curricular_face.dir/cv/test_lite_tencent_curricular_face.cpp.o
[ 56%] Built target lite_naive_pose_robust_face
Scanning dependencies of target lite_tencent_cifp_face
[ 56%] Building CXX object examples/lite/CMakeFiles/lite_tencent_cifp_face.dir/cv/test_lite_tencent_cifp_face.cpp.o
[ 56%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_cava_ghost_arcface
[ 56%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_sphere_face
[ 56%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mobile_emotion7
[ 57%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_efficientdet_d8
[ 57%] Built target lite_cava_ghost_arcface
[ 57%] Built target lite_sphere_face
[ 58%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_center_loss_face
[ 58%] Built target lite_mobile_emotion7
Scanning dependencies of target lite_vgg16_gender
Scanning dependencies of target lite_tiny_yolov4_coco
Scanning dependencies of target lite_focal_arcface
[ 58%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_tencent_curricular_face
[ 58%] Built target lite_efficientdet_d8
Scanning dependencies of target lite_efficientdet
[ 58%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_efficientdet_d7
[ 58%] Built target lite_center_loss_face
Scanning dependencies of target lite_facenet
[ 58%] Built target lite_tencent_curricular_face
Scanning dependencies of target lite_glint_cosface
[ 59%] Building CXX object examples/lite/CMakeFiles/lite_tiny_yolov4_coco.dir/cv/test_lite_tiny_yolov4_coco.cpp.o
[ 59%] Building CXX object examples/lite/CMakeFiles/lite_vgg16_gender.dir/cv/test_lite_vgg16_gender.cpp.o
[ 59%] Built target lite_efficientdet_d7
[ 59%] Building CXX object examples/lite/CMakeFiles/lite_focal_arcface.dir/cv/test_lite_focal_arcface.cpp.o
Scanning dependencies of target lite_nanodet
[ 60%] Building CXX object examples/lite/CMakeFiles/lite_efficientdet.dir/cv/test_lite_efficientdet.cpp.o
[ 61%] Building CXX object examples/lite/CMakeFiles/lite_facenet.dir/cv/test_lite_facenet.cpp.o
[ 62%] Building CXX object examples/lite/CMakeFiles/lite_glint_cosface.dir/cv/test_lite_glint_cosface.cpp.o
[ 62%] Building CXX object examples/lite/CMakeFiles/lite_nanodet.dir/cv/test_lite_nanodet.cpp.o
[ 63%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_tencent_cifp_face
[ 63%] Built target lite_tencent_cifp_face
Scanning dependencies of target lite_pose_robust_face
[ 63%] Building CXX object examples/lite/CMakeFiles/lite_pose_robust_face.dir/cv/test_lite_pose_robust_face.cpp.o
[ 64%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_vgg16_gender
[ 65%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_focal_arcface
[ 65%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_tiny_yolov4_coco
[ 65%] Built target lite_vgg16_gender
Scanning dependencies of target lite_ssd
[ 65%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_glint_cosface
[ 65%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_facenet
[ 65%] Built target lite_focal_arcface
[ 65%] Built target lite_tiny_yolov4_coco
Scanning dependencies of target lite_yolov5
Scanning dependencies of target lite_tiny_yolov4_voc
[ 65%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_efficientdet
[ 65%] Built target lite_glint_cosface
[ 65%] Built target lite_facenet
[ 66%] Building CXX object examples/lite/CMakeFiles/lite_ssd.dir/cv/test_lite_ssd.cpp.o
Scanning dependencies of target lite_yolov3
Scanning dependencies of target lite_mobile_facenet
[ 66%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_nanodet
[ 66%] Built target lite_efficientdet
Scanning dependencies of target lite_fcn_resnet101
[ 66%] Building CXX object examples/lite/CMakeFiles/lite_yolov5.dir/cv/test_lite_yolov5.cpp.o
[ 67%] Building CXX object examples/lite/CMakeFiles/lite_tiny_yolov4_voc.dir/cv/test_lite_tiny_yolov4_voc.cpp.o
[ 67%] Built target lite_nanodet
[ 68%] Building CXX object examples/lite/CMakeFiles/lite_yolov3.dir/cv/test_lite_yolov3.cpp.o
[ 69%] Building CXX object examples/lite/CMakeFiles/lite_mobile_facenet.dir/cv/test_lite_mobile_facenet.cpp.o
Scanning dependencies of target lite_ultraface
[ 70%] Building CXX object examples/lite/CMakeFiles/lite_fcn_resnet101.dir/cv/test_lite_fcn_resnet101.cpp.o
[ 70%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_pose_robust_face
[ 71%] Building CXX object examples/lite/CMakeFiles/lite_ultraface.dir/cv/test_lite_ultraface.cpp.o
[ 71%] Built target lite_pose_robust_face
Scanning dependencies of target lite_colorizer
[ 71%] Building CXX object examples/lite/CMakeFiles/lite_colorizer.dir/cv/test_lite_colorizer.cpp.o
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolov5
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_ssd
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_tiny_yolov4_voc
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolov3
[ 72%] Built target lite_ssd
[ 72%] Built target lite_yolov5
[ 72%] Built target lite_tiny_yolov4_voc
Scanning dependencies of target lite_vgg16_age
Scanning dependencies of target lite_nanodet_depreciated
Scanning dependencies of target lite_subpixel_cnn
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mobile_facenet
[ 72%] Built target lite_yolov3
Scanning dependencies of target lite_ssd_mobilenetv1
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_ultraface
[ 72%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_fcn_resnet101
[ 72%] Built target lite_mobile_facenet
[ 72%] Building CXX object examples/lite/CMakeFiles/lite_vgg16_age.dir/cv/test_lite_vgg16_age.cpp.o
Scanning dependencies of target lite_resnet
[ 73%] Building CXX object examples/lite/CMakeFiles/lite_nanodet_depreciated.dir/cv/test_lite_nanodet_depreciated.cpp.o
[ 73%] Building CXX object examples/lite/CMakeFiles/lite_subpixel_cnn.dir/cv/test_lite_subpixel_cnn.cpp.o
[ 73%] Built target lite_ultraface
Scanning dependencies of target lite_yolov4
[ 73%] Built target lite_fcn_resnet101
[ 74%] Building CXX object examples/lite/CMakeFiles/lite_ssd_mobilenetv1.dir/cv/test_lite_ssd_mobilenetv1.cpp.o
Scanning dependencies of target lite_mobilenetv2
[ 75%] Building CXX object examples/lite/CMakeFiles/lite_resnet.dir/cv/test_lite_resnet.cpp.o
[ 76%] Building CXX object examples/lite/CMakeFiles/lite_yolov4.dir/cv/test_lite_yolov4.cpp.o
[ 77%] Building CXX object examples/lite/CMakeFiles/lite_mobilenetv2.dir/cv/test_lite_mobilenetv2.cpp.o
[ 78%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_colorizer
[ 78%] Built target lite_colorizer
Scanning dependencies of target lite_mobilenetv2_se_68
[ 78%] Building CXX object examples/lite/CMakeFiles/lite_mobilenetv2_se_68.dir/cv/test_lite_mobilenetv2_se_68.cpp.o
[ 79%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_vgg16_age
[ 79%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_nanodet_depreciated
[ 80%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_subpixel_cnn
[ 80%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_ssd_mobilenetv1
[ 80%] Built target lite_vgg16_age
[ 80%] Built target lite_nanodet_depreciated
Scanning dependencies of target lite_glint_partial_fc
[ 80%] Built target lite_subpixel_cnn
Scanning dependencies of target lite_emotion_ferplus
Scanning dependencies of target lite_yolox
[ 80%] Built target lite_ssd_mobilenetv1
Scanning dependencies of target lite_yolo5face
[ 80%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_resnet
[ 80%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolov4
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_glint_partial_fc.dir/cv/test_lite_glint_partial_fc.cpp.o
[ 80%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mobilenetv2
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_emotion_ferplus.dir/cv/test_lite_emotion_ferplus.cpp.o
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_yolox.dir/cv/test_lite_yolox.cpp.o
[ 80%] Built target lite_resnet
Scanning dependencies of target lite_deeplabv3_resnet101
[ 80%] Built target lite_yolov4
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_yolo5face.dir/cv/test_lite_yolo5face.cpp.o
Scanning dependencies of target lite_densenet
[ 80%] Built target lite_mobilenetv2
Scanning dependencies of target lite_gender_googlenet
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_deeplabv3_resnet101.dir/cv/test_lite_deeplabv3_resnet101.cpp.o
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_densenet.dir/cv/test_lite_densenet.cpp.o
[ 80%] Building CXX object examples/lite/CMakeFiles/lite_gender_googlenet.dir/cv/test_lite_gender_googlenet.cpp.o
[ 81%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_mobilenetv2_se_68
[ 81%] Built target lite_mobilenetv2_se_68
Scanning dependencies of target lite_efficientnet_lite4
[ 81%] Building CXX object examples/lite/CMakeFiles/lite_efficientnet_lite4.dir/cv/test_lite_efficientnet_lite4.cpp.o
[ 82%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_glint_partial_fc
[ 83%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_emotion_ferplus
[ 83%] Built target lite_glint_partial_fc
[ 84%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolox
Scanning dependencies of target lite_resnext
[ 85%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_yolo5face
[ 85%] Built target lite_emotion_ferplus
[ 85%] Built target lite_yolox
Scanning dependencies of target lite_glint_arcface
Scanning dependencies of target lite_ssrnet
[ 85%] Built target lite_yolo5face
[ 86%] Building CXX object examples/lite/CMakeFiles/lite_resnext.dir/cv/test_lite_resnext.cpp.o
Scanning dependencies of target lite_age_googlenet
[ 87%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_deeplabv3_resnet101
[ 87%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_gender_googlenet
[ 88%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_densenet
[ 89%] Building CXX object examples/lite/CMakeFiles/lite_glint_arcface.dir/cv/test_lite_glint_arcface.cpp.o
[ 89%] Building CXX object examples/lite/CMakeFiles/lite_ssrnet.dir/cv/test_lite_ssrnet.cpp.o
[ 89%] Built target lite_deeplabv3_resnet101
[ 89%] Built target lite_gender_googlenet
[ 90%] Building CXX object examples/lite/CMakeFiles/lite_age_googlenet.dir/cv/test_lite_age_googlenet.cpp.o
[ 90%] Built target lite_densenet
Scanning dependencies of target lite_hardnet
Scanning dependencies of target lite_ghostnet
Scanning dependencies of target lite_pfld98
[ 90%] Building CXX object examples/lite/CMakeFiles/lite_hardnet.dir/cv/test_lite_hardnet.cpp.o
[ 91%] Building CXX object examples/lite/CMakeFiles/lite_ghostnet.dir/cv/test_lite_ghostnet.cpp.o
[ 91%] Building CXX object examples/lite/CMakeFiles/lite_pfld98.dir/cv/test_lite_pfld98.cpp.o
[ 92%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_efficientnet_lite4
[ 92%] Built target lite_efficientnet_lite4
Scanning dependencies of target lite_ibnnet
[ 92%] Building CXX object examples/lite/CMakeFiles/lite_ibnnet.dir/cv/test_lite_ibnnet.cpp.o
[ 92%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_glint_arcface
[ 92%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_resnext
[ 93%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_ssrnet
[ 93%] Built target lite_glint_arcface
[ 93%] Built target lite_resnext
Scanning dependencies of target lite_focal_asia_arcface
[ 93%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_age_googlenet
Scanning dependencies of target lite_fast_style_transfer
[ 93%] Built target lite_ssrnet
Scanning dependencies of target lite_pfld
[ 93%] Built target lite_age_googlenet
Scanning dependencies of target lite_fsanet
[ 93%] Building CXX object examples/lite/CMakeFiles/lite_focal_asia_arcface.dir/cv/test_lite_focal_asia_arcface.cpp.o
[ 94%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_hardnet
[ 95%] Building CXX object examples/lite/CMakeFiles/lite_fast_style_transfer.dir/cv/test_lite_fast_style_transfer.cpp.o
[ 95%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_ghostnet
[ 96%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_pfld98
[ 96%] Building CXX object examples/lite/CMakeFiles/lite_pfld.dir/cv/test_lite_pfld.cpp.o
[ 96%] Built target lite_hardnet
[ 96%] Building CXX object examples/lite/CMakeFiles/lite_fsanet.dir/cv/test_lite_fsanet.cpp.o
[ 96%] Built target lite_ghostnet
[ 96%] Built target lite_pfld98
[ 97%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_ibnnet
[ 97%] Built target lite_ibnnet
[ 98%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_focal_asia_arcface
[ 98%] Built target lite_focal_asia_arcface
[ 99%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_pfld
[100%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_fast_style_transfer
[100%] Linking CXX executable ../../lite.ai.toolkit/bin/lite_fsanet
[100%] Built target lite_pfld
[100%] Built target lite_fast_style_transfer
[100%] Built target lite_fsanet
➜ lite.ai.toolkit git:(main) ✗ cd build/lite.ai.toolkit/bin
➜ bin git:(main) ✗ ls
liblite.ai.toolkit.0.1.0.dylib libopencv_video.4.5.dylib lite_densenet lite_facenet lite_glint_partial_fc lite_naive_pose_robust_face lite_resnet lite_ssd_mobilenetv1 lite_vgg16_gender
liblite.ai.toolkit.dylib libopencv_video.dylib lite_efficient_emotion7 lite_fast_style_transfer lite_hardnet lite_nanodet lite_resnext lite_ssrnet lite_yolo5face
libonnxruntime.1.7.0.dylib libopencv_videoio.4.5.dylib lite_efficient_emotion8 lite_fcn_resnet101 lite_ibnnet lite_nanodet_depreciated lite_retinaface lite_subpixel_cnn lite_yolop
libonnxruntime.dylib libopencv_videoio.dylib lite_efficientdet lite_focal_arcface lite_mg_matting lite_nanodet_efficientnet_lite lite_rexnet_emotion7 lite_tencent_cifp_face lite_yolor
libopencv_core.4.5.dylib lite_age_googlenet lite_efficientdet_d7 lite_focal_asia_arcface lite_mobile_emotion7 lite_nanodet_efficientnet_lite_depreciated lite_rvm lite_tencent_curricular_face lite_yolov3
libopencv_core.dylib lite_cava_combined_face lite_efficientdet_d8 lite_fsanet lite_mobile_facenet lite_nanodet_plus lite_scaled_yolov4 lite_tiny_yolov3 lite_yolov4
libopencv_imgcodecs.4.5.dylib lite_cava_ghost_arcface lite_efficientnet_lite4 lite_gender_googlenet lite_mobilenetv2 lite_pfld lite_scrfd lite_tiny_yolov4_coco lite_yolov5
libopencv_imgcodecs.dylib lite_center_loss_face lite_emotion_ferplus lite_ghostnet lite_mobilenetv2_68 lite_pfld68 lite_shufflenetv2 lite_tiny_yolov4_voc lite_yolov5_v6.0
libopencv_imgproc.4.5.dylib lite_colorizer lite_face_landmarks_1000 lite_glint_arcface lite_mobilenetv2_se_68 lite_pfld98 lite_sphere_face lite_ultraface lite_yolox
libopencv_imgproc.dylib lite_deeplabv3_resnet101 lite_faceboxes lite_glint_cosface lite_mobilese_focal_face lite_pose_robust_face lite_ssd lite_vgg16_age lite_yolox_v0.1.1
➜ bin git:(main) ✗ ./lite_yolov5
LITEORT_DEBUG LogId: ../../../hub/onnx/cv/yolov5s.onnx
=============== Input-Dims ==============
input_node_dims: 1
input_node_dims: 3
input_node_dims: 640
input_node_dims: 640
=============== Output-Dims ==============
Output: 0 Name: pred Dim: 0 :1
Output: 0 Name: pred Dim: 1 :25200
Output: 0 Name: pred Dim: 2 :85
Output: 1 Name: output2 Dim: 0 :1
Output: 1 Name: output2 Dim: 1 :3
Output: 1 Name: output2 Dim: 2 :80
Output: 1 Name: output2 Dim: 3 :80
Output: 1 Name: output2 Dim: 4 :85
Output: 2 Name: output3 Dim: 0 :1
Output: 2 Name: output3 Dim: 1 :3
Output: 2 Name: output3 Dim: 2 :40
Output: 2 Name: output3 Dim: 3 :40
Output: 2 Name: output3 Dim: 4 :85
Output: 3 Name: output4 Dim: 0 :1
Output: 3 Name: output4 Dim: 1 :3
Output: 3 Name: output4 Dim: 2 :20
Output: 3 Name: output4 Dim: 3 :20
Output: 3 Name: output4 Dim: 4 :85
========================================
detected num_anchors: 25200
generate_bboxes num: 48
Default Version Detected Boxes Num: 5
LITEORT_DEBUG LogId: ../../../hub/onnx/cv/yolov5s.onnx
=============== Input-Dims ==============
input_node_dims: 1
input_node_dims: 3
input_node_dims: 640
input_node_dims: 640
=============== Output-Dims ==============
Output: 0 Name: pred Dim: 0 :1
Output: 0 Name: pred Dim: 1 :25200
Output: 0 Name: pred Dim: 2 :85
Output: 1 Name: output2 Dim: 0 :1
Output: 1 Name: output2 Dim: 1 :3
Output: 1 Name: output2 Dim: 2 :80
Output: 1 Name: output2 Dim: 3 :80
Output: 1 Name: output2 Dim: 4 :85
Output: 2 Name: output3 Dim: 0 :1
Output: 2 Name: output3 Dim: 1 :3
Output: 2 Name: output3 Dim: 2 :40
Output: 2 Name: output3 Dim: 3 :40
Output: 2 Name: output3 Dim: 4 :85
Output: 3 Name: output4 Dim: 0 :1
Output: 3 Name: output4 Dim: 1 :3
Output: 3 Name: output4 Dim: 2 :20
Output: 3 Name: output4 Dim: 3 :20
Output: 3 Name: output4 Dim: 4 :85
========================================
detected num_anchors: 25200
generate_bboxes num: 39
ONNXRuntime Version Detected Boxes Num: 4
➜ bin git:(main) ✗ |
sh build.sh
|
已经编译成功了啊,可以在build/lite.ai.toolkit/lib里面用 otool -L liblite.ai.toolkit.dylib 看一下依赖关系 |
|
➜ lib git:(main) ✗ otool -L liblite.ai.toolkit.dylib
liblite.ai.toolkit.dylib:
@rpath/liblite.ai.toolkit.0.1.0.dylib (compatibility version 0.1.0, current version 0.1.0)
@rpath/libopencv_core.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgproc.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgcodecs.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_video.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_videoio.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libonnxruntime.1.7.0.dylib (compatibility version 0.0.0, current version 1.7.0)
/usr/local/opt/llvm/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1) 看看你的rpath有没有问题 |
对啊,也没问题啊,咋运行lite_yolov5就出现问题了呢 ....我这边也是这样的 |
看一些lite_yolov5的rpath ➜ lib git:(main) ✗ cd ../bin
➜ bin git:(main) ✗ otool -L lite_yolov5
lite_yolov5:
@rpath/liblite.ai.toolkit.0.1.0.dylib (compatibility version 0.1.0, current version 0.1.0)
@rpath/libopencv_core.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgproc.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgcodecs.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_video.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_videoio.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libonnxruntime.1.7.0.dylib (compatibility version 0.0.0, current version 1.7.0)
/usr/local/opt/llvm/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1) |
醉了,那不应该有问题啊,都是一样的 |
呜呜呜,是我太菜了。。 |
不知道是不是环境不同的问题,确实是个bug,你把我预编译的完整的opencv库下载下来,解压后放在build/lite.ai.toolkit/lib 和 build/lite.ai.toolkit/bin ,再运行lite_yolov5应该就可以了 |
➜ lib git:(main) ✗ otool -L libopencv_video.4.5.dylib
libopencv_video.4.5.dylib:
@rpath/libopencv_video.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_dnn.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_calib3d.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_features2d.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_flann.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgproc.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_core.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 904.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)
➜ lib git:(main) ✗ otool -L libopencv_videoio.4.5.dylib
libopencv_videoio.4.5.dylib:
@rpath/libopencv_videoio.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgcodecs.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_imgproc.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
@rpath/libopencv_core.4.5.dylib (compatibility version 4.5.0, current version 4.5.2)
/usr/local/opt/ffmpeg/lib/libavcodec.58.dylib (compatibility version 58.0.0, current version 58.134.100)
/usr/local/opt/ffmpeg/lib/libavformat.58.dylib (compatibility version 58.0.0, current version 58.76.100)
/usr/local/opt/ffmpeg/lib/libavutil.56.dylib (compatibility version 56.0.0, current version 56.70.100)
/usr/local/opt/ffmpeg/lib/libswscale.5.dylib (compatibility version 5.0.0, current version 5.9.100)
/usr/local/opt/ffmpeg/lib/libavresample.4.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation (compatibility version 1.0.0, current version 2.0.0)
/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 1463.2.1)
/System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.11.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 904.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1770.255.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1770.255.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) ffmpeg也要安装,不然可能也会有问题,通过 brew install ffmpeg 安装 |
emm,ffmpeg的版本好像不一样,也会报错。。 |
是的,需要4.2.2的ffmpeg,homebrew现在更新到了最新的5.0版本,很多接口都变了。需要git clone低版本的源码来安装ffmpeg,并指定--prefix=/usr/local/opt/ffmpeg。可以看opencv的issue: git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git -b n4.2.2
cd ffmpeg
./configure --enable-shared --disable-x86asm --prefix=/usr/local/opt/ffmpeg --disable-static
make -j8
make install |
预告一下:mac也正在弄一个连带ffmpeg打包的lite.ai.toolkit预编译库,这周末应该会放出来。最近ffmpeg升级大版本后(>4.4),opencv原来的依赖ffmpeg的模块不再兼容了 |
|
我知道了,因为源码编的4.2.2 没有libavresample,但是之前通过brew安装的是有的,homebrew升级后同步了最新的ffmpeg又不兼容opencv. 所以会导致这些问题。你要不直接试一下lite.ai.toolkit的dev分支吧,我今天修复了这个兼容的问题。但还没合并,还需要检查一下。 git clone --depth=1 https://github.com/DefTruth/lite.ai.toolkit.git -b dev # dev分支代码
cd lite.ai.toolkit && sh ./build.sh # On MacOS, you can use the built OpenCV, ONNXRuntime, MNN, NCNN and TNN libs in this repo. 或者重新编译一下opencv,替换掉我原来的就可以了
git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git -b n4.2.2
cd ffmpeg
./configure --enable-shared --disable-x86asm --prefix=/usr/local/opt/ffmpeg --disable-static
make -j8
make install
git clone --depth=1 https://github.com/opencv/opencv.git -b 4.5.2
cd opencv
#!/bin/bash
mkdir build
mkdir your-path-to-custom-dir
cd build
cmake .. \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/User/xxx/xxx/opencv/your-path-to-custom-dir \ # 新建一个你自定义的目录,写绝对路径指向这个目录
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D BUILD_opencv_python3=OFF \
-D BUILD_opencv_python2=OFF \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_opencv_apps=OFF \
-D WITH_FFMPEG=ON
make -j8
make install
cd .. 运行编译 sh ./build.sh 编译完opencv后,直接替换新的dylib |
@chenjiachengzzz 已经合并最新代码了,你用最新的试一下? git clone --depth=1 https://github.com/DefTruth/lite.ai.toolkit.git # latest
cd lite.ai.toolkit && sh ./build.sh # On MacOS, you can use the built OpenCV, ONNXRuntime, MNN, NCNN and TNN libs in this repo.
cd build/lite.ai.toolkit/bin
./lite_yolov5 更新信息请看: |
|
"编译完opencv后,直接替换新的dylib",请问大佬,这句话什么意思呀? |
The text was updated successfully, but these errors were encountered: