Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
637 views
in Technique[技术] by (71.8m points)

c++ - Assembler messages: Error: thumb conditional instruction should be in IT block -- `strexeq r1,r2,[r4]'

I was tried to build .so file. The file contains libraries such as tbb,dlib. When i execute my cpp file, exception raised [Assembler messages: Error: thumb conditional instruction should be in IT block -- `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;
            }

I thing exception from that code. Any specific cpp flags required for tbb. Any idea about this, its helpful for me thank you

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

got same error in tbb bitbake recipe in my yocto build while bitbake compiling , added CXXFLAGS=" -Wa,-mimplicit-thumb" in tbb.bb file helps me. you can try TARGET_CXXFLAGS=" -Wa,-mimplicit-thumb" aswell.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...