交叉编译问题,急 - OMAP-L138 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站
点击跳转“创龙科技服务通”

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5458|回复: 1
打印 上一主题 下一主题

交叉编译问题,急

[复制链接]

3

主题

4

帖子

1045

积分

金牌会员

Rank: 6Rank: 6

积分
1045
跳转到指定楼层
楼主
发表于 2015-1-12 14:22:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我对syslink进行交叉编译到arm,但是出现如下错误:
. Q2 {2 X. ?4 {. {. D/ y/home/tl/Projects/Xdl-build-arm/../../qt/Qt4.7/include/QtCore/qtconcurrentrunbase.h:65: error: two or more data types in declaration of 'parameter': X9 ~" L" s( J# r6 S( b3 h: I2 V

& B1 g/ X# y5 N' r- ^* x) m这个头文件内容如下:# {8 C, t: C& q' J! y
#ifndef QTCONCURRENT_RUNBASE_H# H& `; ~/ N. v; h/ l1 h/ o  [, E
#define QTCONCURRENT_RUNBASE_H) d; d# @, H  U; @$ n" Y
+ I* w: a0 u, M3 {0 f( ^
#include <QtCore/qglobal.h>
/ L' r9 a; t1 n% |; Q' S+ E# r
0 R2 ?; s, `+ T#ifndef QT_NO_CONCURRENT
  |$ M; J4 Y3 P$ G& E, C+ i7 ^$ ~( ]/ S4 Q! A
#include <QtCore/qfuture.h>. O3 k4 u: I: ?: a$ u# s' a
#include <QtCore/qrunnable.h>- C7 \9 x0 m9 I/ O6 g' E# Y* c
#include <QtCore/qthreadpool.h>: a1 j: S* c8 U0 y6 ^

$ j7 I- @& N# v: C1 _QT_BEGIN_HEADER" \4 F* v! D) g3 V
QT_BEGIN_NAMESPACE* ?9 w+ z" E" k

7 b1 x, v# F" G' ZQT_MODULE(Core)  r: X5 E# i5 z# ^0 j6 g8 C

: K$ F# X+ F! [#ifndef qdoc0 O' l4 f9 z! `! `. B5 [4 |
7 B! z2 z: G/ O3 s$ K/ P
namespace QtConcurrent {
5 |8 d1 I8 Y$ E; _7 v% k! m1 A; I8 _* E& ~# a2 c+ b( a
template <typename T>
7 c9 ~- b/ b, j9 A9 astruct SelectSpecialization
6 H, {9 Z( q* m. D5 t* \{2 b* ~7 S8 f- g* y9 ~' `
    template <class Normal, class Void>
$ z( b: k& v- |: u0 ^3 a    struct Type { typedef Normal type; };
+ G1 N; E. X# C8 C) i};* a5 c+ \. e) Z0 E; N0 r
$ g5 }+ X+ z8 J9 L* ~' t6 X
template <>
9 w9 G8 m# \. Jstruct SelectSpecialization<void>% L, E$ g! l( x
{( d1 I- \0 H% d+ l; J; |
    template <class Normal, class Void>
6 L0 B  G) ~( A% p& Y, o3 Z! q    struct Type { typedef Void type; };
8 ?* i, t0 R  A};$ L6 A( p' |' R: ^
1 f# Y# t& g" i! Y
template <typename T>
3 c! r" ~, f( y) [: V% L7 gclass RunFunctionTaskBase : public QFutureInterface<T> , public QRunnable
, Q5 C9 f' l& x+ y' A  z{! J6 E: n& N5 s7 G! \' _- d. G. \5 m
public:. y  N( f+ ?" @1 L: C" r
    QFuture<T> start()
. ]8 f" N8 B/ |% f+ k0 [    {
9 [: k$ E7 h/ t; \        this->setRunnable(this);, Y* m& L4 _: Q# I8 f. M; V
        this->reportStarted();
4 U' N- N) Y- b' S: r6 h% g7 S! N        QFuture<T> future = this->future();/ m, T2 ]+ r5 \5 G
        QThreadPool::globalInstance()->start(this, /*m_priority*/ 0);
/ x! S# |( ]! x9 \2 E( v        return future;
' K) q3 k; F5 q9 Z' h' D# C9 u. g7 }    }
$ e8 z- W; h) d+ H8 u
0 d) a' C- F. p3 `* e    void run() {}1 a" B/ a. u; A6 `: h
    virtual void runFunctor() = 0;5 P2 M! N6 z! w$ W
};/ I1 b1 J% E. o. L  U

8 g. Z) Y4 d. A, q$ ~1 |6 ?template <typename T>% e2 }* n5 b, I; a! y+ Q
class RunFunctionTask : public RunFunctionTaskBase<T>1 C+ i. H$ v+ N' O
{( E9 A0 O$ P+ ~
public:
% B0 G# a5 Z+ a/ k    void run(): W) M# ]7 H: I, ?: B8 L4 w8 ]/ x" C2 w
    {
6 Q( @* H- e; v4 ], D$ ~+ ^        if (this->isCanceled()) {
, U$ t  ~) O3 ]% K            this->reportFinished();) l! X( {1 ^  Y. }0 \
            return;9 P4 ]# G- R" ?
        }
+ T' y  @  G4 H        this->runFunctor();; n& b% a6 M- K3 {1 n
        this->reportResult(result);; j4 o$ P6 @- ^$ z! _0 g. `2 U$ Q9 r
        this->reportFinished();' m- l6 F2 A$ f) A/ Z3 D
    }& n5 F/ y& |0 g4 @' r
    T result;$ C" R9 s; G9 z9 q- K' L( R- h: B
};
0 R, y* ?1 ~4 e& B# W+ R: N; y' K) h7 l
template <>
8 K" _' G- B6 Vclass RunFunctionTask<void> : public RunFunctionTaskBase<void>% b* v+ u9 Q& ]5 Z" g
{
5 i) A, X; E, c0 Kpublic:
( H; ^4 Y* [' f. {4 H. H0 q. l    void run()# f( U3 T* Y, `2 k
    {
. R  y/ T8 m7 ?7 C9 ?- _        if (this->isCanceled()) {
. B9 s! }; t* z4 f0 C5 z            this->reportFinished();
  x3 M# s, O$ h* x. K            return;
6 e# ^$ w) Q3 [3 t9 p) V        }7 ?, a9 [" \  P0 D  x8 o4 ?
        this->runFunctor();
  K4 n* F8 A$ x! k* _, t        this->reportFinished();
1 k% L* q% Y0 V$ ?    }
2 o" B" [# M' D- c% n; g: {8 J' s7 E- P};' C' m9 h" x' L4 X+ }  A5 X) o) c
" A; d* W& U- ~" Z0 l$ f0 C5 O
} //namespace QtConcurrent$ L5 O. V/ Z7 }; R& t3 g* L+ `* S
  z9 q2 k# t6 @* N) G5 b: h
#endif //qdoc
; F4 L$ h6 f& A6 j5 s) S1 g. E  P+ H* U/ @6 n6 j# y
QT_END_NAMESPACE) e+ u+ r9 I% J9 R$ ~) E- d
QT_END_HEADER1 {8 l/ y7 G5 C3 ?3 k
& f- j: z& }# U: ^  x4 O$ D
#endif // QT_NO_CONCURRENT
: b* l; a* [8 g% {% i. f5 x0 W; ~  o. e
#endif
/ s7 A0 P6 N5 S( w' U4 v
6 k8 K9 g6 E+ Z; }  O- ?3 k6 G
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖
回复

使用道具 举报

14

主题

102

帖子

821

积分

创龙

Rank: 8Rank: 8

积分
821
沙发
发表于 2015-1-12 22:22:32 | 只看该作者
是做创龙哪个文档的实验呢?没看出来!可以将编译命令、步骤写出来吗?
8 c- z$ }- y$ U& `' M
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

点击跳转“创龙科技服务通”

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2026-4-6 18:44 , Processed in 0.041215 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表