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.

AM572X QT环境搭建

你好,现在我这边想用QT+OPENGL来实现一个三维点云的显示,请问我该如何在虚拟机上建立我的QT环境呢?

用Qtcreator+QT源码编译成ARM版本能实现我的功能吗?

是否有相应的文档可以提供呢?

  •  这里有一篇是基于AM335x平台的用户指导手册:Sitara Linux Training: Hands on with QT

    和AM572x的平台一样,讲述的是基于Processor Linux SDK的QT搭建玩转流程,你可以参考一下。应该差异不大。

    http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT?keyMatch=QT%20PROCESSOR%20SDK&tisearch=Search-EN

  • 感谢你的帮助,按照这篇文档的指导,我已经了解了AM572X 的QT环境搭建。

    但我现在遇到一个新的问题,我尝试编译一个QTOPENGL的程序,而且我在windows的QT环境已经成功编译并运行。

    但在AM572X的QT环境下却出现编译失败:

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

    这个错误似乎是说我没把父类的头文件加入进来,但我的源程序却已经是包含了所需头文件的。

    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

    这让我很困惑,QT是一个一次编写,随处编译的软件。我已经在windows下编译成功了,却在Linux编译失败了。