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.

PROCESSOR-SDK-AM57X: Qt program build error

Part Number: PROCESSOR-SDK-AM57X

I set up my Qt environment as http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT

And I can build the Lab mentioned by the URL.

Now I want to build a Qtopengl program I meet an error:

In file included from ui_mainwindow.h:24:0,
from mainwindow.cpp:2:
xiaoglwidget.h:11:1: error: expected class-name before '{' token
{
^

but I build successful in my windows environment and run well.

Here is my xiaoglwidget.h

#ifndef XIAOGLWIDGET_H
#define XIAOGLWIDGET_H

#include <QOpenGLWidget>
#include <QOpenGLFunctions_4_3_Compatibility>

class xiaoGLWidget : public QOpenGLWidget,protected QOpenGLFunctions_4_3_Compatibility
{
public:
xiaoGLWidget(QWidget *parent);
protected:
void initializeGL();
void paintGL();
void resizeGL(int w,int h);
public:
void installShader();
void sendDataToOpenGL();
};

#endif // XIAOGLWIDGET_H


I did have include  #include <QOpenGLWidget> 
                          #include <QOpenGLFunctions_4_3_Compatibility> 

could some experts tell me what is the problem?