Encapsulate the solution in Mediapipe into a dynamic link library

Reference links:

Mediapipe - Encapsulate Mediapipe handtracking into a dynamic link library dll/so to embed gesture recognition functions in desktop applications_HW140701's blog-CSDN blog

experience:

Create each header file and source file under VS2019, and then compile. Originally, I created each header file and source file under VS2017, but the compilation failed. The failure error is as follows:

ERROR: D:/file/mediapipe/mediapipe-0.8.6/mediapipe/examples/desktop/hand_tracking_test/BUILD:27:10: Compiling mediapipe/examples/desktop/hand_tracking_test/hand_tracking_api.cpp failed: (Exit 2): cl.exe failed: error executing command

Create each header file and source file under VS2019 and compile successfully.

mediapipe version: 0.8.6

bazel version: 4.1.0

Guess you like

Origin blog.csdn.net/pingchangxin_6/article/details/128036547