• 14782阅读
  • 1回复

急!qt-everywhere-opensource-src-4.6.2编译问题-ubuntu9.04 [复制链接]

上一主题 下一主题
离线xujinhui197
 

只看楼主 倒序阅读 楼主  发表于: 2010-04-24
make[3]: Entering directory `/home/king/qtsdk-2010.02/qt/src/plugins/phonon/gstreamer'
g++ -c -pipe -g -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtGui -I../../../../include/phonon -I../../../../include -I. -I../../../../include/phonon_compat -I.moc/release-shared -o .obj/release-shared/devicemanager.o ../../../3rdparty/phonon/gstreamer/devicemanager.cpp
In file included from ../../../../include/QtOpenGL/QGLFormat:1,
                 from ../../../3rdparty/phonon/gstreamer/glrenderer.h:26,
                 from ../../../3rdparty/phonon/gstreamer/devicemanager.cpp:23:
../../../../include/QtOpenGL/qgl.h:77:20: error: GL/gl.h: No such file or directory
../../../../include/QtOpenGL/qgl.h:79:23: error: GL/glu.h: No such file or directory
In file included from ../../../../include/QtOpenGL/QGLFormat:1,
                 from ../../../3rdparty/phonon/gstreamer/glrenderer.h:26,
                 from ../../../3rdparty/phonon/gstreamer/devicemanager.cpp:23:
../../../../include/QtOpenGL/qgl.h:315: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:317: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:320: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:322: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:324: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:326: error: ‘GLuint’ has not been declared
../../../../include/QtOpenGL/qgl.h:328: error: ‘GLuint’ has not been declared
../../../../include/QtOpenGL/qgl.h:328: error: ‘GLenum’ has not been declared
../../../../include/QtOpenGL/qgl.h:329: error: ‘GLuint’ has not been declared
../../../../include/QtOpenGL/qgl.h:329: error: ‘GLenum’ has not been declared
../../../../include/QtOpenGL/qgl.h:328: error: ‘GL_TEXTURE_2D’ was not declared in this scope
../../../../include/QtOpenGL/qgl.h:329: error: ‘GL_TEXTURE_2D’ was not declared in this scope
../../../../include/QtOpenGL/qgl.h:484: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:486: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:489: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:491: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:494: error: ‘GLuint’ does not name a type
../../../../include/QtOpenGL/qgl.h:496: error: ‘GLuint’ has not been declared
../../../../include/QtOpenGL/qgl.h:498: error: ‘GLuint’ has not been declared
../../../../include/QtOpenGL/qgl.h:498: error: ‘GLenum’ has not been declared
../../../../include/QtOpenGL/qgl.h:499: error: ‘GLuint’ has not been declared
../../../../include/QtOpenGL/qgl.h:499: error: ‘GLenum’ has not been declared
../../../../include/QtOpenGL/qgl.h:498: error: ‘GL_TEXTURE_2D’ was not declared in this scope
../../../../include/QtOpenGL/qgl.h:499: error: ‘GL_TEXTURE_2D’ was not declared in this scope
In file included from ../../../3rdparty/phonon/gstreamer/devicemanager.cpp:23:
../../../3rdparty/phonon/gstreamer/glrenderer.h:57: error: ‘GLenum’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:57: error: ‘GLenum’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:57: error: ‘GLsizei’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:57: error: expected ‘,’ or ‘...’ before ‘*’ token
../../../3rdparty/phonon/gstreamer/glrenderer.h:57: error: ISO C++ forbids declaration of ‘GLvoid’ with no type
../../../3rdparty/phonon/gstreamer/glrenderer.h:58: error: ‘GLenum’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:58: error: ‘GLuint’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:59: error: ‘GLsizei’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:59: error: expected ‘,’ or ‘...’ before ‘*’ token
../../../3rdparty/phonon/gstreamer/glrenderer.h:59: error: ISO C++ forbids declaration of ‘GLuint’ with no type
../../../3rdparty/phonon/gstreamer/glrenderer.h:60: error: ‘GLsizei’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:60: error: ‘GLuint’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:61: error: ‘GLenum’ has not been declared
../../../3rdparty/phonon/gstreamer/glrenderer.h:85: error: ‘GLuint’ does not name a type
../../../3rdparty/phonon/gstreamer/glrenderer.h:88: error: ‘GLuint’ does not name a type
make[3]: *** [.obj/release-shared/devicemanager.o] Error 1
make[3]: Leaving directory `/home/king/qtsdk-2010.02/qt/src/plugins/phonon/gstreamer'
make[2]: *** [sub-gstreamer-install_subtargets] Error 2
make[2]: Leaving directory `/home/king/qtsdk-2010.02/qt/src/plugins/phonon'
make[1]: *** [sub-phonon-install_subtargets] Error 2
make[1]: Leaving directory `/home/king/qtsdk-2010.02/qt/src/plugins'
make: *** [sub-plugins-install_subtargets-ordered] Error 2
离线lejcey

只看该作者 1楼 发表于: 2010-04-25
../../../../include/QtOpenGL/qgl.h:77:20: error: GL/gl.h: No such file or directory

请看文档:
OpenGL Dependencies

The configure script will autodetect if OpenGL headers and libraries are installed on your system, and if so, it will include the QtOpenGL module in the Qt library.

If your OpenGL headers or libraries are placed in a non-standard directory, you may need to change the QMAKE_INCDIR_OPENGL and/or QMAKE_LIBDIR_OPENGL in the config file for your system.

The QGL documentation assumes that you are familiar with OpenGL programming. If you're new to the subject a good starting point is http://www.opengl.org/.
快速回复
限100 字节
 
上一个 下一个