嵌入式开发者社区

标题: 交叉编译问题,急 [打印本页]

作者: smallknife_hb    时间: 2015-1-12 14:22
标题: 交叉编译问题,急
我对syslink进行交叉编译到arm,但是出现如下错误:
- a! K0 K+ |7 {4 n! }/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter'
: Q; `( n2 v4 c# o# ^) n. M. y  l: E/ @4 e! Z
这个头文件内容如下:9 v" E1 g) T: J2 ~
#ifndef QTCONCURRENT_RUNBASE_H9 f$ E/ R# k6 O" O* i
#define QTCONCURRENT_RUNBASE_H  ~) ]8 n  n* P  l/ S

( D  W3 J' ^: Y- R- K0 W#include <QtCore/qglobal.h>* }' h) E6 [8 S- @
7 [8 Z! ~4 O8 ~' X" i
#ifndef QT_NO_CONCURRENT  Z! e: u9 |0 W$ Y
* Z: x- A) k" \8 t& ]% C( z. i8 A
#include <QtCore/qfuture.h>! o4 \/ c. h6 X. L- }: P
#include <QtCore/qrunnable.h>8 B1 o( s) A1 I  G# p
#include <QtCore/qthreadpool.h>
: V0 W, f0 o5 V( e
$ [' Q0 ]% [2 F; j* S" Q( C: l: `QT_BEGIN_HEADER' V2 j- j4 E* t3 e+ c
QT_BEGIN_NAMESPACE
7 k& \) y+ d" f9 d. ^
$ j0 l: e6 K- e7 l+ I5 Q* ~QT_MODULE(Core)' Q, Q! z% D6 ]6 N/ d+ M& E0 m6 ]5 k
: h. h. G% m5 i0 S
#ifndef qdoc
. B3 ]* C+ x" k$ ]- ^4 D* ~6 g: @2 H; _
namespace QtConcurrent {
" A0 N! w( t' A& i
5 n7 i$ b( V# a9 {5 k- ftemplate <typename T>
& W3 @% D' }5 M, G" b" @2 x; }0 mstruct SelectSpecialization* a9 l" ], m. M( u
{
1 k$ ?) u+ p/ v6 y# m" A* H( d    template <class Normal, class Void>9 g% x  v( X( D1 a9 R
    struct Type { typedef Normal type; };
% g, i' f' H4 ]. z4 X5 f+ d7 [4 O};' W! H3 r& [  _! N/ q, m
! V$ ^8 s8 Y. ?) |$ {4 \6 e
template <>
) H$ n, o3 n5 _; j' qstruct SelectSpecialization<void>
" D1 P/ r4 a: k4 G7 d) k( W{
8 J, T/ l* D. ?. d/ t" T/ k$ x4 l    template <class Normal, class Void>) T  E: ~% d1 [
    struct Type { typedef Void type; };
% _0 F8 Z6 K& X+ R9 e9 A};
; Y+ P  T' P5 Y/ D8 e# U
& n' y! y! v* \' ^; G9 Jtemplate <typename T>
+ G* g" V- z  [2 r& [; w: A" Eclass RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable
8 e9 ?* T& L4 A# _2 a{3 `3 U+ ~: L6 K7 k/ @* j1 Q
public:
' `: F4 I( b: S" W3 n    QFuture<T> start()
6 p! S3 Q+ A. E: Y    {
& h( L9 Z) s0 H( r6 n' P: |" ~        this->setRunnable(this);
" g0 {8 m. \7 M. \0 j        this->reportStarted();
4 ?: o5 m' F3 i+ d. d' P0 ~2 }        QFuture<T> future = this->future();, H& |3 \& E* ^# d0 y/ U- {
        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);
; o: ~# c- g0 R. {7 h, z0 i; U        return future;8 E$ M2 V7 K; [7 M0 Q! K6 r9 v: U8 A
    }
2 `, ]; j2 _7 l/ j3 B: w( N6 h: Q; ?7 M( `' M, v* G
    void run() {}
$ _2 l4 a$ Q+ ]  h/ z* h) a+ j    virtual void runFunctor() = 0;9 P7 v1 B+ |# z) c0 v9 D2 A
};7 c' r4 L" i3 C& x. N: q

4 d' x4 r2 h  V: ~template <typename T>. [- s* [: X( s0 B* k
class RunFunctionTask : public RunFunctionTaskBase<T>
, z# X0 z5 n. @8 \: d9 q5 _2 i{
) c5 G9 ]' K8 f* p; E5 Mpublic:: t7 ]+ l2 ~4 A. R9 E
    void run()
4 h2 q% e/ s- e4 m    {  t& F% }6 |% L2 j/ {, L
        if (this->isCanceled()) {$ B- w% V: ]2 q) @# O
            this->reportFinished();
% W" N+ B, d' {            return;( _# L, D+ k% d; _1 ]: X8 G( l
        }5 ?3 r- i* q- m6 [
        this->runFunctor();
' s6 F& i1 b1 k+ ], |        this->reportResult(result);
6 u& s$ `, N; B  E$ Q1 y        this->reportFinished();
, D# H+ F8 Z+ j    }
8 G- {5 v) i. G7 ]) C- }    T result;1 z/ ^; ^* m1 `, B
};4 H# X1 f0 Y3 A; e
4 M+ G0 L, b% t* O
template <>' s/ u1 i: J: I3 r. \8 K" Y' A
class RunFunctionTask<void> : public RunFunctionTaskBase<void>7 w! t) ~6 o( N& Y/ R$ e, \
{
! F+ `& S' _# n# s3 E7 ppublic:
" \$ @  F1 s7 D) f* H4 I2 B: c* \    void run()
) o/ E3 d1 [! p9 Z* E+ c7 H: |8 r    {
' }1 f7 V  G  t/ t        if (this->isCanceled()) {' W' ~! g* h3 x& l1 m8 \% Y& A
            this->reportFinished();% Z$ d. \! C# u  ?5 Q
            return;  t) D  J- s* N( y: y
        }6 m0 I8 C- w" y( n- C0 O/ q" z* V
        this->runFunctor();
# }, z+ c2 Y2 Y" N. G- P        this->reportFinished();
+ [0 c/ x5 x" G) T$ D    }
4 k, v/ D$ v8 t- `, ^. ]6 k};0 O4 l$ g0 W1 _# F' f0 }' o) t. L
, O2 F" r& |1 N8 q1 O
} //namespace QtConcurrent
- _6 O+ \* J  {) V7 y0 ^; o% [  `5 }% V, i9 M
#endif //qdoc
% x# N" H% ~8 }2 {* R/ R1 r# y- T; b+ u; I$ X* Q
QT_END_NAMESPACE6 h  ^# u: C  G( N" O& F4 w6 f3 M
QT_END_HEADER
% v' L9 j3 L/ J& u, H5 |( m0 E
" P9 w% r3 W5 Y, I3 d; t- ^# A#endif // QT_NO_CONCURRENT
  P  ^  @9 M+ b$ d& c9 g1 g) w7 E% H! \0 v/ T+ ?5 c# x; z
#endif) C+ g$ D) u* p0 J2 R6 o' }. [

) l7 s% N/ _4 a7 g
作者: 2532609929    时间: 2015-1-12 22:22
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?
0 w3 r2 D' J, w7 j! B( h; X( K# I% f8 F




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4