我使用OpenCV作为框架在Xcode中创建一个项目。它可以与Xcode的Build&Run选项一起很好地工作,但是现在我需要在终端中运行它,这给了我这个错误:
dyld: Library not loaded: @executable_path/../Frameworks/OpenCV.framework/Versions/A/OpenCV
Referenced from: /Users/Victor/Documents/PFC/src/opencv/blob/build/Release/./test3
Reason: image not found
Trace/BPT trap
我寻找构建并仅使用./执行
那么,有什么线索吗?
最佳答案
您需要从build目录而不是Release目录运行它(假设Frameworks是blob中的目录)
关于c++ - 在终端中运行以XCode生成的版本,如何?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1922986/