Ubuntu安装arm版本的Qt遇到error: thread-local storage not supported for this target
2014-08-26 18:59
549 查看
Ubuntu10.10安装arm版本的Qt遇到error: thread-local storage not supported for this target
用arm编译的时候却碰到如下错误:thread/qthread_unix.cpp:117: error: thread-local storage not supported for this target
make[1]: *** [.obj/release-shared-emb-arm/qthread_unix.o] 错误 1
make[1]:正在离开目录 `/home/soft/qtenv/arm/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2
#
估计大家搜这个错误会发现只有这一种回答,所以几乎可以确定这方法是可行的
具体做法:进入/src/corelib/thread目录,修改qthread_unix.cpp,
关闭HACE_TLS宏,代码中依靠这个宏的部分不会执行也就不会有错了。
我修改后是这样:
#if defined(Q_OS_LINUX) && defined(__GLIBC__) && (defined(Q_CC_GNU) || defined(Q_CC_INTEL))
#define H***E_TLS
#endif
#if defined(Q_CC_XLC) || defined (Q_CC_SUN)
#define H***E_TLS
#endif
#ifdef H***E_TLS
#undef H***E_TLS
#endif
#ifdef H***E_TLS
static __thread QThreadData *currentThreadData = 0;
#endif
红色的是我加的部分,这样就保证下面执行时没有H***E_TLS宏了。
参考:http://blog.csdn.net/wangyoufeng8889/article/details/21229837
相关文章推荐
- 安装ARM EABI v7a System Image后 Android AVD还会出现"No system images installed for this target"
- ORA-00845 MEMORY_TARGET not supported on this system (oracle11g for asianux3 )
- ubuntu虚拟机安装lamp遇到的问题 configure: error: libXpm.(a|so) not found.
- Ubuntu安装tensorflow报错:tensorflow-xx.whl not a supported wheel on this platform
- pip安装**.whl遇到问题**.whl is not a supported wheel on this platform.
- ORA-00845 MEMORY_TARGET not supported on this system (oracle11g for asianux3 )
- Ubuntu5.04中安装VMwareTools遇到的 See mkinitrd(8) for further ERROR:“/usr/sbin/mkinitrd” 问题
- ubuntu安装opencv2.4.9编译出错NCVPixelOperations.hpp: error: a storage class is not allowed in an explicit
- ubuntu 安装qt5.9.3 for arm-linux am335x qt开发1
- 安装PHP扩展,提示checking Check for supported PHP versions... configure: error: not supported.
- Ubuntu安装tensorflow报错:tensorflow-xx.whl not a supported wheel on this platform
- ubuntu 安装qt5.9.3 for arm-linux am335x qt开发2
- C++11 error: ‘sleep_for’ is not a member of ‘std::this_thread’
- Ant error: Could not find xml-commons-apis Java extension for this JVM解决方法
- C# 编写Windows Service 调试(WaitAll for multiple handles on a STA thread is not supported.)
- ora-00845 MEMORY_TARGET not supported on this system 的问题
- ORA-00845: MEMORY_TARGET not supported on this system
- Oracle 11gR2 RAC ORA-00845 MEMORY_TARGET not supported on this system 解决方法
- ORA-00845: MEMORY_TARGET not supported on this system
- ORACLE 报错:ORA-00845: MEMORY_TARGET not supported on this system