嵌入式开发者社区

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

作者: smallknife_hb    时间: 2015-1-12 14:22
标题: 交叉编译问题,急
我对syslink进行交叉编译到arm,但是出现如下错误:
, |7 T% ?6 P7 ^9 ^0 x/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter'; F# X& j+ A! e  ?2 C

4 u7 k+ d: V4 o% }' Q" A* |这个头文件内容如下:+ p* _3 W+ t) a9 q6 \
#ifndef QTCONCURRENT_RUNBASE_H
% K1 P3 v. O6 s#define QTCONCURRENT_RUNBASE_H! w/ v/ m' p7 Z9 b9 u) h% I
* u# U7 O, t& p
#include <QtCore/qglobal.h>
) R! ?! `2 v6 Z& C: b* y8 s# ~' o; s* p. Q& W9 v
#ifndef QT_NO_CONCURRENT
7 e% W/ S9 O: S
- M2 f" R$ F/ e% @#include <QtCore/qfuture.h>
7 U1 s6 ~( C( d$ ]% ]#include <QtCore/qrunnable.h>( [/ F0 x, \9 Z- g1 C
#include <QtCore/qthreadpool.h>; C% e. \8 R& ^6 W

7 m3 r3 ]' L7 t* k& |, FQT_BEGIN_HEADER
/ q8 y) K' S3 r, ?; |QT_BEGIN_NAMESPACE0 l0 B- C- v0 `4 {4 ~; M" `' J

1 K% I" Y' D! \5 _- UQT_MODULE(Core)( f% X. p, [; q- ^2 z' S' m2 D

1 e; s+ |3 U: b5 {3 q#ifndef qdoc! m8 s5 N# m# a6 c. Z5 i, T
8 K- Z5 G, M& c3 V: i, J
namespace QtConcurrent {. `# T& [  U7 E; A! O" y
" t2 H2 i: a& S! `% u9 |0 s4 G$ d9 N
template <typename T>2 x6 |/ k- R+ g0 Y8 Y4 a/ T
struct SelectSpecialization. `9 U- W8 I4 @( V: O
{
2 i9 F7 X. d4 b1 O% s    template <class Normal, class Void>. p2 e3 j  ~1 w! T
    struct Type { typedef Normal type; };
* l4 m- [, p$ f  S  g};
* k6 W9 o, M: I% F; C3 x4 g* s; c4 q+ D3 w# R# K6 X- Q
template <>
6 x- C" a; a% a7 qstruct SelectSpecialization<void>
  \0 l5 v& j, t9 a6 G: R{
8 h2 r' M: }$ b% b8 x. a: C9 A8 i    template <class Normal, class Void># ^8 e" X7 {; ?/ r
    struct Type { typedef Void type; };
( R8 I9 R( {& E};( u& {3 |4 v2 E& F8 Y/ A/ `
6 P6 k" c: N! p, t! J
template <typename T>
4 p9 f8 p- F8 c& fclass RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable$ ?  P1 O6 x" L7 g! Z  W+ P: T
{# o9 J- S: O# R, \0 T# h
public:
- a' b* |9 b4 C- z% ?8 j    QFuture<T> start(). _$ h# Y3 O1 P' _$ @  D  m# M
    {: \5 j. x  o1 |7 @/ d) k
        this->setRunnable(this);
8 @0 X3 m" z! E3 C# B1 F7 ]) E        this->reportStarted();1 R; Q, N9 h% Y8 x
        QFuture<T> future = this->future();
" k' d# Z5 ?* n  i        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);& [* B& n7 o# s' h' W
        return future;
5 |3 E4 ^' V6 D5 r4 V& E7 m1 y    }5 _8 m6 N# y- I

; A3 ?% N; h3 k4 P# s6 X) p    void run() {}
6 Y2 w9 [* ~! s( i; I+ x    virtual void runFunctor() = 0;
' V% T5 ]8 \/ X& {8 m5 Z0 ~};
0 D. N* W8 b3 G8 A
$ ~$ g! u2 s2 O  F) z: Qtemplate <typename T>
" V" r; U7 a, T2 F" u; z; Qclass RunFunctionTask : public RunFunctionTaskBase<T>5 X- ^& l! ]8 U4 Q$ k5 m8 I
{
+ r) q6 v& ]8 {+ L) \. q$ i8 ?4 Ipublic:7 M, @, t- ?. k* v
    void run()
8 j. x) J0 z0 V2 x! Y8 H    {
1 J! h  [! R) h' I  h5 U% D! c! r        if (this->isCanceled()) {
2 l9 o6 I% B; q$ r" z9 C* K+ w            this->reportFinished();
2 D/ d  A+ o1 D" ?& \; U            return;% `/ Y; K$ U. @+ P! [4 ]
        }
$ r' i* z! G2 I& f        this->runFunctor();+ c% C- p& Z& D
        this->reportResult(result);
2 }5 j' H* E  u        this->reportFinished();
% E2 k) b( f* f) Z: u. t  K+ e) C    }) D+ ~9 R& F* ~
    T result;
( h; W9 K& u% `$ K& M2 _};- R5 i: Y7 Z: I" U5 F
; [% H, m$ {5 b5 `. n0 q
template <>8 Q9 i4 g. V- g" _9 e+ x
class RunFunctionTask<void> : public RunFunctionTaskBase<void>$ n7 T; X& h! `+ B
{
' H$ m( ~. [0 q4 B( i1 P( fpublic:+ y, r0 f; p3 V% P
    void run()
) I( D- @! K( k% {5 l9 H    {
4 P" H  \' q/ @        if (this->isCanceled()) {) b4 X: K0 @/ a' k
            this->reportFinished();2 P8 N/ n1 \+ v( ?
            return;' J6 i( p/ D9 ]0 G0 D: M
        }
, _7 J5 U# P* O/ M( f9 a        this->runFunctor();
4 T) E9 [& c& s# B4 X7 m        this->reportFinished();7 Q/ i" j  Q/ I) O0 t' q+ W' t
    }
) ~+ |1 R* t" s: [0 K$ n};
" {2 w8 X; Z" ]8 v) B2 D+ w* I- B0 t# l2 D" H
} //namespace QtConcurrent0 p6 u; F. k3 |& P: Q

0 k. U6 J3 Q: Z- H5 e4 Z#endif //qdoc
: {% d7 \( X# G8 ~' j1 ^, x$ i* V/ f9 L& K. L
QT_END_NAMESPACE
% u2 i  r: b  Q& j2 o9 p/ AQT_END_HEADER
6 E+ A  w7 Z6 o1 l- e/ F
1 M( [4 |# w5 k6 i" G9 C#endif // QT_NO_CONCURRENT# z: k# Y6 L" \6 J
% U# e2 ?9 [' ^+ E
#endif
: }, h/ _# h3 y6 @: u0 y3 g/ t
( y" P7 a7 c1 \, B6 D1 U$ S% u
作者: 2532609929    时间: 2015-1-12 22:22
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?
1 a$ X  A. l# @1 ~




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