我在一个运行armbian (杰西)桌面映像(5.11)的orangepi上编译时遇到了一个问题(参见1)。
我已经设置了一个Makefile (见2),除了链接调用之外,它工作得很好。
我的main.cpp文件目前只包含ogles_gpgpu主头文件。
以下错误在链接过程中发生了很多次。
g++ -o main main.cpp *.o -O0 -g -D__ORANGEPIPC__ -I./ogles_gpgpu -I./ogles_gpgpu/common/ -I./ogles_gpgpu/common/gl -L/usr/lib/mali -lGLESv2 -lEGL -lGL -lglut -lGLEW -lm
In file included from ogles_gpgpu/common/../platform/orangepipc/gl_includes.h:15:0,
from ogles_gpgpu/common/common_includes.h:23,
from ogles_gpgpu/ogles_gpgpu.h:20,
from main.cpp:19:
/usr/include/GLES2/gl2ext.h:761:15: error: expected ‘)’ before ‘*’ token
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
^
/usr/include/GLES2/gl2ext.h:762:15: error: expected ‘)’ before ‘*’ token
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
^这是一个构建日志文件,详细信息请参见(请参见2)。
gl2ext.h文件作为C头文件导入,这是由文件本身引起的。
有没有人得到任何提示?
https://stackoverflow.com/questions/38424263
复制相似问题