Ubuntu10.10安装arm版本的Qt遇到error: thread-local stor
系统大全为您提供 Ubuntu10.10安装arm版本的Qt遇到error:thread-localstoragenotsupportedforthistarget 用arm编译的时候却碰到如下错误: threadhread_unix.cpp:117:error:thread-localstoragenotsupportedforthistarget make[1]:***[.obj/release-shared-emb-armhread_unix.o]错误1 make[1]:正在离开目录`/home/softenv/armc/corelib' make:***[sub-corelib-make_default-ordered]错误2 # 去看了下c/corelib/thread目录下 -rwxr--r--1fspfsp201222012-03-1422:01qthread_unix.cpp* -rw-r--r--1fspfsp186952012-03-1422:01qthread_win.cpp -rw-r--r--1fspfsp26842012-03-1422:01qwaitcondition.h -rw-r--r--1fspfsp61632012-03-1422:01qwaitcondition.qdoc -rw-r--r--1fspfsp57302012-03-1422:01qwaitcondition_symbian.cpp -rw-r--r--1fspfsp60942012-03-1422:01qwaitcondition_unix.cpp -rw-r--r--1fspfsp64182012-03-1422:01qwaitcondition_win.cpp -rw-r--r--1fspfsp12592012-03-1422:01thread.pri #viqthread_unix.cpp 打开文件,发现HAVE_TLS宏打开了才会导致错误, 关掉该宏后再编译,果然通过了。 于是就打了如下补丁: 110#defineHAVE_TLS 111#endif 112#ifdefined(Q_CC_XLC)||defined(Q_CC_SUN) 113#defineHAVE_TLS 114#endif 115 116#ifdefHAVE_TLS 117#static__threadQThreadData*currentThreadData=0; 118#endif 以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。本文来自系统大全http://www.win7cn.com/如需转载请注明!推荐:win7纯净版

