javascript - 用 Emscripten 编译用 C++ 编写的 OpenFace,得到警告:“未解析的符号”
问题描述
在位码中编译时,em++ FaceLandmarkVid.cpp -std=c++11 -o OpenFace.bc
我没有收到任何警告。当我从位码编译为 JavaScript 时,em++ OpenFace.bc source.bc -o OpneFace.js
我得到以下信息:
warning: unresolved symbol: _ZN12GazeAnalysis12EstimateGazeERKN16LandmarkDetector4CLNFERN2cv7Point3_IfEEffffb
warning: unresolved symbol: _ZN16LandmarkDetector19FaceModelParametersC1ERNSt3__26vectorINS1_12basic_stringIcNS1_11char_
traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEE
warning: unresolved symbol: _ZN16LandmarkDetector22DetectLandmarksInVideoERKN2cv4Mat_IhEERNS_4CLNFERNS_19FaceModelParame
tersE
warning: unresolved symbol: _ZN16LandmarkDetector23Calculate3DEyeLandmarksERKNS_4CLNFEdddd
warning: unresolved symbol: _ZN16LandmarkDetector24CalculateAllEyeLandmarksERKNS_4CLNFE
warning: unresolved symbol: _ZN16LandmarkDetector4CLNF5ResetEv
warning: unresolved symbol: _ZN16LandmarkDetector4CLNFC1ENSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEE
E
warning: unresolved symbol: _ZN16LandmarkDetector7GetPoseERKNS_4CLNFEffff
warning: unresolved symbol: _ZN2cv12VideoCaptureC1Ev
warning: unresolved symbol: _ZN2cv12VideoCaptureD1Ev
warning: unresolved symbol: _ZN2cv17CascadeClassifierD1Ev
warning: unresolved symbol: _ZN2cv3Mat10deallocateEv
warning: unresolved symbol: _ZN2cv8fastFreeEPv
warning: unresolved symbol: _ZN5boost6system15system_categoryEv
warning: unresolved symbol: _ZN5boost6system16generic_categoryEv
warning: unresolved symbol: _ZN9Utilities10FpsTracker6GetFPSEv
warning: unresolved symbol: _ZN9Utilities10FpsTracker8AddFrameEv
warning: unresolved symbol: _ZN9Utilities10FpsTrackerC1Ev
warning: unresolved symbol: _ZN9Utilities10Visualizer15ShowObservationEv
warning: unresolved symbol: _ZN9Utilities10Visualizer18SetObservationGazeERKN2cv7Point3_IfEES5_RKNSt3__26vectorINS1_6Poi
nt_IdEENS6_9allocatorIS9_EEEERKNS7_INS2_IdEENSA_ISF_EEEEd
warning: unresolved symbol: _ZN9Utilities10Visualizer18SetObservationPoseERKN2cv3VecIdLi6EEEd
warning: unresolved symbol: _ZN9Utilities10Visualizer23SetObservationLandmarksERKN2cv4Mat_IdEEdRKNS2_IiEE
warning: unresolved symbol: _ZN9Utilities10Visualizer6SetFpsEd
warning: unresolved symbol: _ZN9Utilities10Visualizer8SetImageERKN2cv3MatEffff
warning: unresolved symbol: _ZN9Utilities10VisualizerC1Ebbb
warning: unresolved symbol: _ZN9Utilities15SequenceCapture12GetGrayFrameEv
warning: unresolved symbol: _ZN9Utilities15SequenceCapture12GetNextFrameEv
warning: unresolved symbol: _ZN9Utilities15SequenceCapture4OpenERNSt3__26vectorINS1_12basic_stringIcNS1_11char_traitsIcE
ENS1_9allocatorIcEEEENS6_IS8_EEEE
warning: unresolved symbol: _ZN9Utilities15SequenceCaptureD1Ev
warning: unresolved symbol: _ZNK16LandmarkDetector4CLNF15GetVisibilitiesEv`
这是否意味着一个函数有一个声明但没有定义?
解决方案
推荐阅读
- python - Python Web Scraping POST 请求使用请求
- javascript - 如何使用 react-router-dom 解决这个问题?
- scala - 强制在整个代码库中为某些对象使用特定集合
- elasticsearch - 如何在 ElasticSearch 上使用过滤器(或查询)条件获取所有字段名称?
- python-3.x - 如何自动化(使用python)腻子配置(代理设置和私钥),然后执行命令以在同一会话上传输文件
- typescript - typescript - 如何创建基于参数参数化构建的类型
- optimization - or-tools中节点的条件赋值
- python - 合并两个 JSONPath 查询
- node.js - Windows-1252 编码在 NodeJS 中被识别为 ISO-8859-2
- node.js - 我可以在不等待完成的情况下执行存储过程吗?