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 程序构建错误

Guru**** 2549670 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/604029/processor-sdk-am57x-qt-program-build-error

器件型号:PROCESSOR-SDK-AM57X

我将 Qt 环境设置为http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT

我可以构建 URL 提到的实验。

现在我想构建一个 Qtopengl 程序、我遇到错误:

在 ui_Mainwindow.h:24:0中包含的文件中、
从 Mainwindow.cpp:2:
xiaoglwidget.h:11:1:错误:"{" token 之前的预期类名

^μ A

但我在 Windows 环境中成功构建并运行良好。

这是我 的 xiaoglwidget.h

#ifndef XIAOGLWIDGET_H
#define XIAOGLWIDGET_H

#include
#include

类 xiaoGLWidget:公共 QOpenGLWidget,受保护的 QOpenGLFunctions_4_3_compatibility

公共:
xiaoGLWidget (QWidget *父级);
受保护:
void 初始化 gl ();
void paintGl ();
void reszeGL (int w、int h);
公共:
void installShader();
void sendDataToOpenGL();
};

#endif // XIAOGLWIDGET_H


我有 include  #include  
             #include  

能否有专家告诉我问题出在哪里?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    软件团队已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、bin、

    您尝试编译的程序是为台式计算机设计的、它使用标准的 OpengGL API。 它不会在嵌入式系统上运行。

    此致、
    Kemal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我知道使用标准 OpenGL API 的程序。但为什么嵌入式系统不支持它?嵌入式 Qt 还具有与“QOpenGLFunctions_4_3_Compatibility”相关的文件,也许它缺少相对的库吗?
    我能否编译开源 QT 以使嵌入式 QT 支持标准 OpenGL API?
    如果不是,如何在 Qt 中使用 OpenGL?仅使用 QOPENGL API?