This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: How can I import the ipc examples ex02_messageq into QT

Part Number: AM5728

Tool/software: Linux

My project is based on linux which is coded by Qt5.8. Now, I need to use the dsp and when I migrant the examples into Qt. There are many mistakes.

The code is following:

#ifndef IPC_HOST_H
#define IPC_HOST_H

/* cstdlib header files */
#include <stdio.h>
#include <stdlib.h>

/* package header files */
#include <ti/ipc/Std.h>
#include <ti/ipc/Ipc.h>
#include <ti/ipc/transports/TransportRpmsg.h>

#include <ti/ipc/MultiProc.h>

/* local header files */
#include "IPC/App.h"

#include <QObject>

class Ipchost:public QObject
{
    Q_OBJECT
  public:
    Ipchost();

  public:
    int open_ipc(QString remoteProcName);
    int send_megq(void);
    int rece_megq(void);
    int close_ipc(QString remoteProcName);

  private:



};

#endif // IPC_HOST_H

And I copy the app.c, app.h and sharefiles into the projct.

I also refered the makefile and add the libs "-ltiipc -ltiipcutils -ltitransportrpmsg" into the .profiles.

When I build it, the log is like following:

In file included from ../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qobject.h:54:0,
                 from ../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/QObject:1,
                 from ../SmartDecoder/ipc_host.h:18,
                 from moc_ipc_host.cpp:9:
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:72:7: 错误: expected identifier before ‘void’
     F(Void, 43, void) \
       ^
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:196:5: 附注: in definition of macro ‘QT_DEFINE_METATYPE_ID’
     TypeName = Id,
     ^~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:187:5: 附注: in expansion of macro ‘QT_FOR_EACH_STATIC_PRIMITIVE_TYPE’
     QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(F)\
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:413:9: 附注: in expansion of macro ‘QT_FOR_EACH_STATIC_TYPE’
         QT_FOR_EACH_STATIC_TYPE(QT_DEFINE_METATYPE_ID)
         ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:72:7: 错误: expected ‘}’ before ‘void’
     F(Void, 43, void) \
       ^
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:196:5: 附注: in definition of macro ‘QT_DEFINE_METATYPE_ID’
     TypeName = Id,
     ^~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:187:5: 附注: in expansion of macro ‘QT_FOR_EACH_STATIC_PRIMITIVE_TYPE’
     QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(F)\
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:413:9: 附注: in expansion of macro ‘QT_FOR_EACH_STATIC_TYPE’
         QT_FOR_EACH_STATIC_TYPE(QT_DEFINE_METATYPE_ID)
         ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:196:14: 错误: expected unqualified-id before ‘=’ token
     TypeName = Id,
              ^
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:72:5: 附注: in expansion of macro ‘QT_DEFINE_METATYPE_ID’
     F(Void, 43, void) \
     ^
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:187:5: 附注: in expansion of macro ‘QT_FOR_EACH_STATIC_PRIMITIVE_TYPE’
     QT_FOR_EACH_STATIC_PRIMITIVE_TYPE(F)\
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:413:9: 附注: in expansion of macro ‘QT_FOR_EACH_STATIC_TYPE’
         QT_FOR_EACH_STATIC_TYPE(QT_DEFINE_METATYPE_ID)
         ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:490:40: 错误: ‘QMetaType::TypeFlags’尚未声明
                             QMetaType::TypeFlags flags,
                                        ^~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:498:40: 错误: ‘QMetaType::TypeFlags’尚未声明
                             QMetaType::TypeFlags flags,
                                        ^~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:503:40: 错误: ‘QMetaType::TypeFlags’尚未声明
                             QMetaType::TypeFlags flags,
                                        ^~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:529:24: 错误: expected unqualified-id before ‘const’
     explicit QMetaType(const int type); // ### Qt6: drop const
                        ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:529:24: 错误: expected ‘)’ before ‘const’
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:530:23: 错误: ‘~QMetaType’未声明为成员
     inline ~QMetaType();
                       ^
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:532:27: 错误: 非成员函数‘bool isValid()’不能拥有 cv 限定符
     inline bool isValid() const;
                           ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:533:32: 错误: 非成员函数‘bool isRegistered()’不能拥有 cv 限定符
     inline bool isRegistered() const;
                                ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:534:25: 错误: 非成员函数‘int sizeOf()’不能拥有 cv 限定符
     inline int sizeOf() const;
                         ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:535:30: 错误: 非成员函数‘TypeFlags flags()’不能拥有 cv 限定符
     inline TypeFlags flags() const;
                              ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:536:44: 错误: 非成员函数‘const QMetaObject* metaObject()’不能拥有 cv 限定符
     inline const QMetaObject *metaObject() const;
                                            ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:538:55: 错误: 非成员函数‘void* create(const void*)’不能拥有 cv 限定符
     inline void *create(const void *copy = Q_NULLPTR) const;
                                                       ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:539:37: 错误: 非成员函数‘void destroy(void*)’不能拥有 cv 限定符
     inline void destroy(void *data) const;
                                     ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:540:71: 错误: 非成员函数‘void* construct(void*, const void*)’不能拥有 cv 限定符
     inline void *construct(void *where, const void *copy = Q_NULLPTR) const;
                                                                       ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:541:38: 错误: 非成员函数‘void destruct(void*)’不能拥有 cv 限定符
     inline void destruct(void *data) const;
                                      ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:543:1: 错误: expected unqualified-id before ‘public’
 public:
 ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:659:1: 错误: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:661:22: 错误: expected unqualified-id before ‘const’
     inline QMetaType(const ExtensionFlag extensionFlags, const QMetaTypeInterface *info,
                      ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:661:22: 错误: expected ‘)’ before ‘const’
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:672:15: 错误: expected unqualified-id before ‘const’
     QMetaType(const QMetaType &other);
               ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:672:15: 错误: expected ‘)’ before ‘const’
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:673:44: 错误: ‘QMetaType& operator=(const QMetaType&)’必须是一个非静态的成员函数
     QMetaType &operator =(const QMetaType &);
                                            ^
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:674:34: 错误: ‘ExtensionFlag’不是一个类型名
     inline bool isExtended(const ExtensionFlag flag) const { return m_extensionFlags & flag; }
                                  ^~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:674:54: 错误: 非成员函数‘bool isExtended(int)’不能拥有 cv 限定符
     inline bool isExtended(const ExtensionFlag flag) const { return m_extensionFlags & flag; }
                                                      ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h: 在函数‘bool isExtended(int)’中:
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:674:69: 错误: ‘m_extensionFlags’在此作用域中尚未声明
     inline bool isExtended(const ExtensionFlag flag) const { return m_extensionFlags & flag; }
                                                                     ^~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:674:69: 附注: suggested alternative: ‘__extern_inline’
     inline bool isExtended(const ExtensionFlag flag) const { return m_extensionFlags & flag; }
                                                                     ^~~~~~~~~~~~~~~~
                                                                     __extern_inline
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h: 在全局域:
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:679:25: 错误: 非成员函数‘uint sizeExtended()’不能拥有 cv 限定符
     uint sizeExtended() const;
                         ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:680:16: 错误: ‘TypeFlags’ in ‘class QMetaType’ does not name a type
     QMetaType::TypeFlags flagsExtended() const;
                ^~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:681:45: 错误: 非成员函数‘const QMetaObject* metaObjectExtended()’不能拥有 cv 限定符
     const QMetaObject *metaObjectExtended() const;
                                             ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:682:56: 错误: 非成员函数‘void* createExtended(const void*)’不能拥有 cv 限定符
     void *createExtended(const void *copy = Q_NULLPTR) const;
                                                        ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:683:38: 错误: 非成员函数‘void destroyExtended(void*)’不能拥有 cv 限定符
     void destroyExtended(void *data) const;
                                      ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:684:72: 错误: 非成员函数‘void* constructExtended(void*, const void*)’不能拥有 cv 限定符
     void *constructExtended(void *where, const void *copy = Q_NULLPTR) const;
                                                                        ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:685:39: 错误: 非成员函数‘void destructExtended(void*)’不能拥有 cv 限定符
     void destructExtended(void *data) const;
                                       ^~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:695:30: 错误: ‘friend’用在类外
     template<typename, bool> friend struct QtPrivate::ValueTypeIsMetaType;
                              ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:695:55: 错误: 使用模板名‘QtPrivate::ValueTypeIsMetaType’时不带实参表无效
     template<typename, bool> friend struct QtPrivate::ValueTypeIsMetaType;
                                                       ^~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:695:55: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:391:12: 附注: ‘template<class T, bool <anonymous> > struct QtPrivate::ValueTypeIsMetaType’在此声明
     struct ValueTypeIsMetaType;
            ^~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:696:34: 错误: ‘friend’用在类外
     template<typename, typename> friend struct QtPrivate::ConverterMemberFunction;
                                  ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:696:59: 错误: 使用模板名‘QtPrivate::ConverterMemberFunction’时不带实参表无效
     template<typename, typename> friend struct QtPrivate::ConverterMemberFunction;
                                                           ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:696:59: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:328:8: 附注: ‘template<class From, class To> struct QtPrivate::ConverterMemberFunction’在此声明
 struct ConverterMemberFunction : public AbstractConverterFunction
        ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:697:34: 错误: ‘friend’用在类外
     template<typename, typename> friend struct QtPrivate::ConverterMemberFunctionOk;
                                  ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:697:59: 错误: 使用模板名‘QtPrivate::ConverterMemberFunctionOk’时不带实参表无效
     template<typename, typename> friend struct QtPrivate::ConverterMemberFunctionOk;
                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:697:59: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:348:8: 附注: ‘template<class From, class To> struct QtPrivate::ConverterMemberFunctionOk’在此声明
 struct ConverterMemberFunctionOk : public AbstractConverterFunction
        ^~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:698:44: 错误: ‘friend’用在类外
     template<typename, typename, typename> friend struct QtPrivate::ConverterFunctor;
                                            ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:698:69: 错误: 使用模板名‘QtPrivate::ConverterFunctor’时不带实参表无效
     template<typename, typename, typename> friend struct QtPrivate::ConverterFunctor;
                                                                     ^~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:698:69: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:371:8: 附注: ‘template<class From, class To, class UnaryFunction> struct QtPrivate::ConverterFunctor’在此声明
 struct ConverterFunctor : public AbstractConverterFunction
        ^~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:699:30: 错误: ‘friend’用在类外
     template<typename, bool> friend struct QtPrivate::AssociativeValueTypeIsMetaType;
                              ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:699:55: 错误: 使用模板名‘QtPrivate::AssociativeValueTypeIsMetaType’时不带实参表无效
     template<typename, bool> friend struct QtPrivate::AssociativeValueTypeIsMetaType;
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:699:55: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:393:12: 附注: ‘template<class T, bool <anonymous> > struct QtPrivate::AssociativeValueTypeIsMetaType’在此声明
     struct AssociativeValueTypeIsMetaType;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:700:30: 错误: ‘friend’用在类外
     template<typename, bool> friend struct QtPrivate::IsMetaTypePair;
                              ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:700:55: 错误: 使用模板名‘QtPrivate::IsMetaTypePair’时不带实参表无效
     template<typename, bool> friend struct QtPrivate::IsMetaTypePair;
                                                       ^~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:700:55: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:395:12: 附注: ‘template<class T, bool <anonymous> > struct QtPrivate::IsMetaTypePair’在此声明
     struct IsMetaTypePair;
            ^~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:701:34: 错误: ‘friend’用在类外
     template<typename, typename> friend struct QtPrivate::MetaTypeSmartPointerHelper;
                                  ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:701:59: 错误: 使用模板名‘QtPrivate::MetaTypeSmartPointerHelper’时不带实参表无效
     template<typename, typename> friend struct QtPrivate::MetaTypeSmartPointerHelper;
                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:701:59: 附注: class template argument deduction is only available with -std=c++1z or -std=gnu++1z
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:397:12: 附注: ‘template<class, class> struct QtPrivate::MetaTypeSmartPointerHelper’在此声明
     struct MetaTypeSmartPointerHelper;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:708:1: 错误: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:722:1: 错误: expected declaration before ‘}’ token
 };
 ^
Makefile:2200: recipe for target 'moc_ipc_host.o' failed
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:478:17: 警告: ‘void registerStreamOperators(const char*, SaveOperator, LoadOperator)’ declared ‘static’ but never defined [-Wunused-function]
     static void registerStreamOperators(const char *typeName, SaveOperator saveOp,
                 ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:480:17: 警告: ‘void registerStreamOperators(int, SaveOperator, LoadOperator)’ declared ‘static’ but never defined [-Wunused-function]
     static void registerStreamOperators(int type, SaveOperator saveOp,
                 ^~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:483:16: 警告: ‘int registerType(const char*, Deleter, Creator)’ declared ‘static’ but never defined [-Wunused-function]
     static int registerType(const char *typeName, Deleter deleter,
                ^~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:485:16: 警告: ‘int registerType(const char*, Deleter, Creator, Destructor, Constructor, int, int, const QMetaObject*)’ declared ‘static’ but never defined [-Wunused-function]
     static int registerType(const char *typeName, Deleter deleter,
                ^~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:492:17: 警告: ‘bool unregisterType(int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool unregisterType(int type);
                 ^~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:493:16: 警告: ‘int registerNormalizedType(const QByteArray&, Deleter, Creator, Destructor, Constructor, int, int, const QMetaObject*)’ declared ‘static’ but never defined [-Wunused-function]
     static int registerNormalizedType(const QT_PREPEND_NAMESPACE(QByteArray) &normalizedTypeName, Deleter deleter,
                ^~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:500:16: 警告: ‘int registerNormalizedType(const QByteArray&, Destructor, Constructor, int, int, const QMetaObject*)’ declared ‘static’ but never defined [-Wunused-function]
     static int registerNormalizedType(const QT_PREPEND_NAMESPACE(QByteArray) &normalizedTypeName, Destructor destructor,
                ^~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:505:16: 警告: ‘int registerTypedef(const char*, int)’ declared ‘static’ but never defined [-Wunused-function]
     static int registerTypedef(const char *typeName, int aliasId);
                ^~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:506:16: 警告: ‘int registerNormalizedTypedef(const QByteArray&, int)’ declared ‘static’ but never defined [-Wunused-function]
     static int registerNormalizedTypedef(const QT_PREPEND_NAMESPACE(QByteArray) &normalizedTypeName, int aliasId);
                ^~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:507:16: 警告: ‘int type(const char*)’ declared ‘static’ but never defined [-Wunused-function]
     static int type(const char *typeName);
                ^~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:509:16: 警告: ‘int type(const QByteArray&)’ declared ‘static’ but never defined [-Wunused-function]
     static int type(const QT_PREPEND_NAMESPACE(QByteArray) &typeName);
                ^~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:510:24: 警告: ‘const char* typeName(int)’ declared ‘static’ but never defined [-Wunused-function]
     static const char *typeName(int type);
                        ^~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:511:16: 警告: ‘int sizeOf(int)’ declared ‘static’ but never defined [-Wunused-function]
     static int sizeOf(int type);
                ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:512:22: 警告: ‘TypeFlags typeFlags(int)’ declared ‘static’ but never defined [-Wunused-function]
     static TypeFlags typeFlags(int type);
                      ^~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:513:31: 警告: ‘const QMetaObject* metaObjectForType(int)’ declared ‘static’ but never defined [-Wunused-function]
     static const QMetaObject *metaObjectForType(int type);
                               ^~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:514:17: 警告: ‘bool isRegistered(int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool isRegistered(int type);
                 ^~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:515:18: 警告: ‘void* create(int, const void*)’ declared ‘static’ but never defined [-Wunused-function]
     static void *create(int type, const void *copy = Q_NULLPTR);
                  ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:520:17: 警告: ‘void destroy(int, void*)’ declared ‘static’ but never defined [-Wunused-function]
     static void destroy(int type, void *data);
                 ^~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:521:18: 警告: ‘void* construct(int, void*, const void*)’ declared ‘static’ but never defined [-Wunused-function]
     static void *construct(int type, void *where, const void *copy);
                  ^~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:522:17: 警告: ‘void destruct(int, void*)’ declared ‘static’ but never defined [-Wunused-function]
     static void destruct(int type, void *where);
                 ^~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:525:17: 警告: ‘bool save(QDataStream&, int, const void*)’ declared ‘static’ but never defined [-Wunused-function]
     static bool save(QDataStream &stream, int type, const void *data);
                 ^~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:526:17: 警告: ‘bool load(QDataStream&, int, void*)’ declared ‘static’ but never defined [-Wunused-function]
     static bool load(QDataStream &stream, int type, void *data);
                 ^~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:569:17: 警告: ‘bool hasRegisteredComparators(int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool hasRegisteredComparators(int typeId);
                 ^~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:588:17: 警告: ‘bool hasRegisteredDebugStreamOperator(int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool hasRegisteredDebugStreamOperator(int typeId);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:646:17: 警告: ‘bool convert(const void*, int, void*, int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool convert(const void *from, int fromTypeId, void *to, int toTypeId);
                 ^~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:647:17: 警告: ‘bool compare(const void*, const void*, int, int*)’ declared ‘static’ but never defined [-Wunused-function]
     static bool compare(const void *lhs, const void *rhs, int typeId, int* result);
                 ^~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:648:17: 警告: ‘bool equals(const void*, const void*, int, int*)’ declared ‘static’ but never defined [-Wunused-function]
     static bool equals(const void *lhs, const void *rhs, int typeId, int* result);
                 ^~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:649:17: 警告: ‘bool debugStream(QDebug&, const void*, int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool debugStream(QDebug& dbg, const void *rhs, int typeId);
                 ^~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:657:17: 警告: ‘bool hasRegisteredConverterFunction(int, int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool hasRegisteredConverterFunction(int fromTypeId, int toTypeId);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:687:17: 警告: ‘bool registerComparatorFunction(const QtPrivate::AbstractComparatorFunction*, int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool registerComparatorFunction(const QtPrivate::AbstractComparatorFunction *f, int type);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:689:17: 警告: ‘bool registerDebugStreamOperatorFunction(const QtPrivate::AbstractDebugStreamFunction*, int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool registerDebugStreamOperatorFunction(const QtPrivate::AbstractDebugStreamFunction *f, int type);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:706:17: 警告: ‘bool registerConverterFunction(const QtPrivate::AbstractConverterFunction*, int, int)’ declared ‘static’ but never defined [-Wunused-function]
     static bool registerConverterFunction(const QtPrivate::AbstractConverterFunction *f, int from, int to);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../ti-processor-sdk-linux-am57xx-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore/qmetatype.h:707:17: 警告: ‘void unregisterConverterFunction(int, int)’ declared ‘static’ but never defined [-Wunused-function]
     static void unregisterConverterFunction(int from, int to);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [moc_ipc_host.o] Error 1