打印

QT环境搭建

[复制链接]
190|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
无幻|  楼主 | 2018-9-1 10:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
编译qt-4.8.5,已经建立好pc版和x86块,编译到arm的时候出现了这个问题

thread/qthread_unix.cpp:124: error: thread-local storage not supported for this target

thread/qthread_unix.cpp: In function `void setCurrentThreadName(pthread_t, const char*)':

thread/qthread_unix.cpp:287: error: `PR_SET_NAME' undeclared (first use this function)

thread/qthread_unix.cpp:287: error: (Each undeclared identifier is reported only once for each function it appears in.)

make[1]: *** [.obj/release-shared-emb-arm/qthread_unix.o] 错误 1

make[1]:正在离开目录 `/usr/local/qt-arm/src/corelib'

make: *** [sub-corelib-make_default-ordered] 错误 2

编译时配置如下

./configure \

-prefix /usr/local/Trolltech/QtEmbedded-4.8.5-arm\

-opensource \

-confirm-license \

-release -shared \

-embedded arm \

-xplatform qws/linux-arm-g++\

-depths 16,18,24\

-fast \

-optimized-qmake \

-pch \

-qt-sql-sqlite \

-qt-libjpeg \

-qt-zlib \

-qt-libpng \

-qt-freetype \

-little-endian -host-little-endian \

-no-qt3support \

-no-libtiff -no-libmng \

-no-opengl \

-no-mmx -no-sse -no-sse2 \

-no-3dnow \

-no-openssl \

-no-webkit \

-no-qvfb \

-no-phonon \

-no-nis \

-no-opengl \

-no-cups \

-no-glib \

-no-xcursor -no-xfixes -no-xrandr -no-xrender \

-no-separate-debug-info \

-nomake examples -nomake tools -nomake docs \

-qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib



交叉工具的路径也是设置好了,求大神帮忙解答

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

431

主题

436

帖子

0

粉丝