嵌入式开发者社区

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

作者: smallknife_hb    时间: 2015-1-12 14:22
标题: 交叉编译问题,急
我对syslink进行交叉编译到arm,但是出现如下错误:
; B3 ~3 S( h7 j6 M- W/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter'
& P" {  n2 y# {; c* V5 ^
0 r; b2 P0 w) l& W这个头文件内容如下:
  y/ v- C7 h7 {+ V* b8 P#ifndef QTCONCURRENT_RUNBASE_H
  T$ Z: H7 V  @#define QTCONCURRENT_RUNBASE_H) n3 E& J3 }! Z$ Z  T1 b

  z4 E8 F! l: [+ c5 L% u#include <QtCore/qglobal.h>5 j! D2 E0 e% H3 h
- J  F" p6 c; M' n+ t+ X% t
#ifndef QT_NO_CONCURRENT  W! X# x' D0 g+ x; t# e
! U; n+ b* s- W7 W( k: B
#include <QtCore/qfuture.h>
5 J' {5 @6 h5 i8 C& k#include <QtCore/qrunnable.h>
1 J" t! R3 t0 b9 C#include <QtCore/qthreadpool.h>: f/ v6 `/ D3 `  u3 E- q& w; l: i
# R9 g6 A! Z9 k1 M
QT_BEGIN_HEADER* V$ s- i. N3 t0 |8 F
QT_BEGIN_NAMESPACE
; m! `0 Y: ], t2 J0 S" h! b( J* y  n9 f; t. N1 o
QT_MODULE(Core)! T& r9 ~0 |/ {7 J' W) }- I
7 g1 o& s+ E! |8 f
#ifndef qdoc
/ K& _3 w$ Z/ L/ h+ Q8 w% S
  |% z5 Y4 p* y! ~% N8 M- rnamespace QtConcurrent {% Z8 w( {) _% B3 l

' |* D) _1 S/ Gtemplate <typename T>
2 A$ Y( X3 Y7 e" A) q5 M  Estruct SelectSpecialization
( g3 e5 q; E* J% k, W, u{
7 |6 s. s6 Z* G+ i; x    template <class Normal, class Void>& Z6 m- W! G$ \  Y3 x, ^/ @  G
    struct Type { typedef Normal type; };' c  H# ~0 \! @4 t
};
. D$ ^/ ?" h# P1 S
. C! p0 E( ?; q+ e7 T4 Ztemplate <>
$ {. H# Q1 e, U' Tstruct SelectSpecialization<void>
0 F" z% C) s9 g: v" i{' b5 o6 Y0 q. `$ ~0 B
    template <class Normal, class Void>
9 T; O9 H! u; w0 e. T# C- Z    struct Type { typedef Void type; };' \* Q" E, g$ \0 c
};
2 j* y4 _7 K4 t, `% h! g6 m4 v9 S) a& l2 x' Y0 J% M  d% Y( {
template <typename T>. J0 G* k4 }, |6 Z4 W: K; q8 O6 f
class RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable5 x. `" D7 F/ h2 w7 K) y) U
{2 L) v, A* ^2 T; |; D) }1 A$ t! u# E3 {3 O
public:3 [& N/ N# H5 G( U& P' q3 _
    QFuture<T> start()
. L( B: Z; r% m1 D6 s    {
3 d' A7 `* H3 o: Y; \2 s0 d5 O% I        this->setRunnable(this);
; J: k' c) S7 `; ~7 g0 j+ B5 M        this->reportStarted();) ]/ D2 `' l' D# d0 u  o
        QFuture<T> future = this->future();5 S& c" G3 d7 V
        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);
7 F. A6 I$ |7 L$ b- v# ~        return future;
# ~+ J5 c1 V0 x% @: _3 `( }    }9 B: Q# [8 H" P( k" ?
& B) g5 _3 V$ B) e4 B5 T
    void run() {}9 v6 \! U5 h+ D5 _! Q5 V
    virtual void runFunctor() = 0;
7 r+ u  r1 U7 U- `5 r, Z};  V8 J5 }& X/ H' V% ~

0 V' i9 N% ~" @  e0 G* B& J- y. o: ptemplate <typename T>
& e  ~* `6 a  ^  k& [class RunFunctionTask : public RunFunctionTaskBase<T>
  L/ A6 T2 P# f3 T0 G{
  f  w+ C' i( O$ O( h$ npublic:
" s2 J1 [4 w! a8 v. }4 j  r# q2 N    void run()/ f6 m4 ~2 w3 S, K1 z0 X
    {
* a5 a' q% |% k# E+ h8 x3 Q& L        if (this->isCanceled()) {
! Z0 h, V2 H: g2 N, l            this->reportFinished();& G8 m2 L, R; V9 R- L$ U
            return;
7 T0 Z- T5 N( Q3 _        }% ?7 U5 b7 I1 F4 \' X
        this->runFunctor();
5 k0 ?0 I: M( R1 j        this->reportResult(result);6 ^# S' `2 R4 w2 L: u( S3 U2 P: Z, Q9 F
        this->reportFinished();
! c9 T0 M# X) B1 l1 R6 g    }
) K# o& H, r/ q    T result;/ o3 O0 a0 @/ \9 s2 n
};
! ?( Y8 u1 O5 D! q) u" W* w
4 |0 ^  N/ O0 T: j: \5 \, Dtemplate <>+ {3 Y  v. F! v- W" j
class RunFunctionTask<void> : public RunFunctionTaskBase<void>
2 N5 y: p- o9 J; @# F- @+ Q{
; T7 M' t5 M1 H0 N; C# Ypublic:
: a5 ]( G& n/ _! B& J) W0 \    void run()5 {* _/ D% b% o; ^' n) ^
    {
9 q# ~  f9 z$ T4 D' ?8 t        if (this->isCanceled()) {# z' J) t$ R4 x; J
            this->reportFinished();! E) M0 F! G  ~+ G( ~
            return;7 t* N/ y+ C$ M( ~3 ?
        }# J7 r/ I/ j  H" @( s! h
        this->runFunctor();* h8 K' q6 `- |0 s
        this->reportFinished();
( H# b8 t7 \. h    }
2 B6 G* M( {4 W8 o0 Y};7 F, e% I3 Q4 K
% V* X7 P" Z/ q0 Y/ D7 \/ {3 o
} //namespace QtConcurrent
* ]4 T& D5 R, }. x4 H* i, m& }. g, z! x& d& p
#endif //qdoc
- h) e8 d3 k( b9 q* U0 {& n$ p" g+ G9 q7 K; H
QT_END_NAMESPACE# D  f9 s8 `  X  @0 }. T; q
QT_END_HEADER' D  k/ t. P7 n0 h$ T; q
7 ?2 f4 N0 X' [* o; |  @" m
#endif // QT_NO_CONCURRENT
9 ^1 ~1 q! f  y$ V" k- m3 y& m9 k- s
1 k( }+ W1 \8 M2 I3 X: @#endif
1 s7 B% {. W( X: I
) p. X9 V( Z% D. }
作者: 2532609929    时间: 2015-1-12 22:22
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?
" j8 z9 ^( c2 {% q. X' K




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