Ubuntu10.10 installed arm version of Qt encountered error: thread-local storage not supported for this target
Compile with arm I encountered the following error:
thread/qthread_unix.cpp:117: error: thread-local storage not supported for this target
make[1]: *** [.obj /release-shared-emb-arm/qthread_unix.o] Error 1
make[1]: leaving the directory `/home/soft/qtenv/arm/src/corelib'
make : *** [sub-corelib-make_default-ordered] Error 2
#
Go to the /src/corelib/thread directory
-rwxr-- R-- 1 fsp fsp 20122 2012-03-14 22:01 qthread_unix.cpp*
-rw-r--r-- 1 fsp fsp 18695 2012-03-14 22:01 qthread_win.cpp< Br>
-rw-r--r-- 1 fsp fsp 2684 2012-03-14 22:01 qwaitcondition.h
-rw-r--r-- 1 fsp fsp 6163 2012- 03-14 22:01 qwaitcondition.qdoc
-rw-r--r-- 1 fsp fsp 5730 2012-03-14 22:01 qwaitcondition_symbian.cpp
-rw-r--r-- 1 fsp fsp 6094 2012-03-14 22:01 qwaitcondition_unix.cpp
-rw-r--r-- 1 fsp fsp 6418 2012-03-14 22:01 qwaitcondition_win.cpp
-rw-r--r-- 1 fsp fsp 1259 2012-03-14 22 :01 thread.pri
# vi qthread_unix.cpp
Open the file and find that the HAVE_TLS macro is open to cause an error.
Turn off the macro and compile it. Passed.
So I made the following patch:
110 #define HAVE_TLS
111 #endif
112 #if defined(Q_CC_XLC) |
|
Defined (Q_CC_SUN)
113 #define HAVE_TLS
114 #endif
115
116 #ifdef HAVE_TLS
117# static __thread QThreadData *currentThreadData = 0;
118 #endif
zh-CN"],null,[0.97371054],zh-CN"]]]
. Using a Linux terminal is more than just entering commands. After learning these basic techniques,
1. Comparison of several file systems (1) support the file system in the Linux system: Ext2 second e
Cause The application is deployed into the virtual pool, and the virtual machine is missing the gcc
Mount windows shared directory on Linux 1.Share windows folder Create a password-enabled user before
Differences between Linux and Windows systems
Linux system transfer files between
Compression and decompression commands in Linux
What are the common commands for Linux?
Vim common commands and configurations
Linux pipeline and redirection detailed
Linux remote login and passwordless login method
How to use the command to delete and create the Linux folder
Win8.1 system font blur can not see how to do
Windows 8 system switch dynamic tile and change the size of the paste
How to solve the problem of Invalid partition table of Win8 computer boot prompt?
Win10 Mobile Preview 10536 gets the quick version configuration update
Win10 boot black screen for a long time how to do
How to prevent other hosts from accessing a certain port of the machine in the Windows 7 system
Win10 system igfxhk module has stopped working solution
Win8.1update error code 80073712 solution
Win8 system foxmail send mail prompts to receive password error solution