Avatar
treastrain / Tanaka.R 1/10/2021 9:01 AM
$ swift run -Xcxx=-I/usr/local/include/opencv4 -Xlinker=-lopencv_core /usr/bin/ld.gold: エラー: -lopencv_core が見つかりません Sources/CXXWrapper/sources/cxx_lib.cpp:16: error: undefined reference to 'cv::Mat::Mat()' Sources/CXXWrapper/sources/cxx_lib.cpp:17: error: undefined reference to 'cv::Mat::~Mat()' clang-10: error: linker command failed with exit code 1 (use -v to see invocation) error: link command failed with exit code 1 (use -v to see invocation) [5/6] Linking OpenCVSwiftCXX
9:03 AM
「opencv_core を開けません」から「-lopencv_core が見つかりません」に変化しましたが、解消できませんでした…。