在Ubuntu 18.04上编译Open Frameworks时出错

时间:2019-08-14 14:30:30

标签: openframeworks

我正在尝试在Ubuntu 18.04上编译OF。我安装了依赖关系没有任何问题。问题似乎来自glew.h和glext.h:

makefileCommon/compile.core.mk:238: recipe for target '/home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o' failed
make[1]: *** [/home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/3d/of3dPrimitives.o] Error 1
makefileCommon/compile.core.mk:212: recipe for target 'Debug' failed
make: *** [Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

我有很多这样的错误:

In file included from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:212:0,
             from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/ofMesh.h:6,
             from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/of3dPrimitives.h:3,
             from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glext.h:12099:90: error: 'void __glewGetFragmentMaterialivSGIX(GLenum, GLenum, GLint*)' redeclared as different kind of symbol
 GLAPI void APIENTRY glGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params);

In file included from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/utils/ofConstants.h:210:0,
             from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/ofMesh.h:6,
             from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/of3dPrimitives.h:3,
             from /home/XXX/Téléchargements/of_v0.10.1_linux64gcc6_release/libs/openFrameworks/3d/of3dPrimitives.cpp:9:
/usr/include/GL/glew.h:19357:52: note: previous declaration 'void (* __glewGetFragmentMaterialivSGIX)(GLenum, GLenum, const GLint*)'
 GLEW_FUN_EXPORT PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX;

我没有触摸这些文件,所以请分享您有关编译失败原因的想法!

1 个答案:

答案 0 :(得分:0)

好吧,我在OF论坛上找到了答案,这里是link。如果您遇到同样的问题,我将在此保留。