我试图建立.so文件。该文件包含诸如tbb,dlib之类的库。当我执行我的cpp文件时,引发了异常[汇编程序消息:错误:拇指条件指令应位于IT块中-'strexeq r1,r2,[r4]']。
vector<tbb::atomic<bool> > face_detections_used(face_detections.size());
if(face_detections_used[detection_ind].compare_and_swap(true, false) == false)
{
// Reinitialise the model
clm_models[model].Reset();
clm_models[model].detection_success = false;
detection_success = CLMTracker::DetectLandmarksInVideo(grayscale_image, depth_image, face_detections[detection_ind], clm_models[model], clm_parameters[model]);
active_models[model] = true;
break;
}
我觉得那个代码异常(exception)。 tbb需要的任何特定cpp标志。关于这个任何想法,对我有帮助谢谢
最佳答案
在bitbake
编译时,我的yocto版本中的tbb bitbake配方出现了相同的错误,在tbb.bb文件中添加了CXXFLAGS=" -Wa,-mimplicit-thumb"
可以帮助我。您也可以尝试TARGET_CXXFLAGS=" -Wa,-mimplicit-thumb"
。
关于c++ - 汇编程序消息:错误:拇指条件指令应放在IT block 中— `strexeq r1,r2,[r4]',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32696870/