|
楼主 |
发表于 2008-4-19 20:28:45
|
显示全部楼层
原帖由 array 于 2008-4-19 17:22 发表
呵呵,什么错误?能提供一点错误文字信息吗
以下是错误信息的一部分,我的OSG存放于D:/VR/OSG_devcpp下:
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:62: error: expected `;' before '('
token
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:65: error: expected `;' before "GLe
num"
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:65: error: `GLenum' does not name a
type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:79: error: variable or field `setCl
earMask' declared void
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:79: error: expected `;' before '('
token
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:82: error: expected `;' before "GLb
itfield"
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:82: error: `GLbitfield' does not na
me a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:135: error: variable or field `setI
mageReadPixelFormat' declared void
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:135: error: expected `;' before '('
token
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:136: error: expected `;' before "GL
enum"
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:136: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:138: error: variable or field `setI
mageReadPixelDataType' declared void
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:138: error: expected `;' before '('
token
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:139: error: expected `;' before "GL
enum"
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:139: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:207: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:208: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:227: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:228: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:229: error: `GLbitfield' does not n
ame a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:244: error: `GLenum' does not name
a type
D:/VR/OSG_devcpp/include/osgUtil/RenderStage:245: error: `GLenum' does not name
a type
In file included from D:/VR/OSG_devcpp/include/osgViewer/View:22,
from D:/VR/OSG_devcpp/include/osgViewer/Viewer:21,
from main.cpp:3:
D:/VR/OSG_devcpp/include/osgUtil/SceneView:314: error: variable or field `setDra
wBufferValue' declared void
D:/VR/OSG_devcpp/include/osgUtil/SceneView:314: error: expected `;' before '(' t
oken
D:/VR/OSG_devcpp/include/osgUtil/SceneView:317: error: expected `;' before "GLen
um"
D:/VR/OSG_devcpp/include/osgUtil/SceneView:317: error: `GLenum' does not name a
type
In file included from D:/VR/OSG_devcpp/include/osgText/Font:25,
from D:/VR/OSG_devcpp/include/osgText/Text:22,
from main.cpp:5:
D:/VR/OSG_devcpp/include/osg/TexEnv:30: error: `GL_DECAL' was not declared in th
is scope
D:/VR/OSG_devcpp/include/osg/TexEnv:30: error: enumerator value for `DECAL' not
integer constant
D:/VR/OSG_devcpp/include/osg/TexEnv:31: error: `GL_MODULATE' was not declared in
this scope
D:/VR/OSG_devcpp/include/osg/TexEnv:31: error: enumerator value for `MODULATE' n
ot integer constant
D:/VR/OSG_devcpp/include/osg/TexEnv:32: error: `GL_BLEND' was not declared in th
is scope
D:/VR/OSG_devcpp/include/osg/TexEnv:32: error: enumerator value for `BLEND' not
integer constant
D:/VR/OSG_devcpp/include/osg/TexEnv:33: error: `GL_REPLACE' was not declared in
this scope
D:/VR/OSG_devcpp/include/osg/TexEnv:33: error: enumerator value for `REPLACE' no
t integer constant
D:/VR/OSG_devcpp/include/osg/TexEnv:35: error: `GL_ADD' was not declared in this
scope
D:/VR/OSG_devcpp/include/osg/TexEnv:35: error: enumerator value for `ADD' not in
teger constant
In file included from D:/VR/OSG_devcpp/include/osgText/Text:22,
from main.cpp:5:
D:/VR/OSG_devcpp/include/osgText/Font:335: error: `GLuint' was not declared in t
his scope
D:/VR/OSG_devcpp/include/osgText/Font:335: error: template argument 1 is invalid
D:/VR/OSG_devcpp/include/osgText/Font:335: error: ISO C++ forbids declaration of
`GLObjectList' with no type
main.cpp: In function `int main(int, char**)':
main.cpp:25: error: 'class osg::Camera' has no member named 'setClearMask'
main.cpp:25: error: `GL_DEPTH_BUFFER_BIT' undeclared (first use this function)
main.cpp:27: error: `GL_LIGHTING' undeclared (first use this function)
D:/VR/OSG_devcpp/include/osg/ref_ptr: In destructor `osg::ref_ptr<T>::~ref_ptr()
[with T = osg::FloatArray]':
D:/VR/OSG_devcpp/include/osg/Shape:433: instantiated from here
D:/VR/OSG_devcpp/include/osg/ref_ptr:30: error: request for member `unref' in `*
((osg::ref_ptr<osg::FloatArray>*)this)->osg::ref_ptr<osg::FloatArray>::_ptr', wh
ich is of non-class type `int'
D:/VR/OSG_devcpp/include/osg/ref_ptr: In copy constructor `osg::ref_ptr<T>::ref_
ptr(const osg::ref_ptr<T>&) [with T = osg::FloatArray]':
D:/VR/OSG_devcpp/include/osg/Shape:438: instantiated from here
D:/VR/OSG_devcpp/include/osg/ref_ptr:28: error: request for member `ref' in `*((
osg::ref_ptr<osg::FloatArray>*)this)->osg::ref_ptr<osg::FloatArray>::_ptr', whic
h is of non-class type `int'
D:/VR/OSG_devcpp/include/osg/ref_ptr: In member function `osg::ref_ptr<T>& osg::
ref_ptr<T>:perator=(T*) [with T = osg::FloatArray]':
D:/VR/OSG_devcpp/include/osg/Shape:443: instantiated from here
D:/VR/OSG_devcpp/include/osg/ref_ptr:50: error: request for member `ref' in `*((
osg::ref_ptr<osg::FloatArray>*)this)->osg::ref_ptr<osg::FloatArray>::_ptr', whic
h is of non-class type `int'
D:/VR/OSG_devcpp/include/osg/ref_ptr:54: error: request for member `unref' in `*
tmp_ptr', which is of non-class type `int'
D:/VR/OSG_devcpp/include/osg/ref_ptr: In constructor `osg::ref_ptr<T>::ref_ptr(T
*) [with T = osg::FloatArray]':
D:/VR/OSG_devcpp/include/osg/Geometry:105: instantiated from here
D:/VR/OSG_devcpp/include/osg/ref_ptr:27: error: request for member `ref' in `*((
osg::ref_ptr<osg::FloatArray>*)this)->osg::ref_ptr<osg::FloatArray>::_ptr', whic
h is of non-class type `int'
D:/VR/OSG_devcpp/include/osg/ref_ptr: In member function `osg::ref_ptr<T>& osg::
ref_ptr<T>::operator=(const osg::ref_ptr<T>&) [with T = osg::FloatArray]':
D:/VR/OSG_devcpp/include/osg/Geometry:115: instantiated from here
D:/VR/OSG_devcpp/include/osg/ref_ptr:37: error: request for member `ref' in `*((
osg::ref_ptr<osg::FloatArray>*)this)->osg::ref_ptr<osg::FloatArray>::_ptr', whic
h is of non-class type `int'
D:/VR/OSG_devcpp/include/osg/ref_ptr:41: error: request for member `unref' in `*
tmp_ptr', which is of non-class type `int'
make: *** [main.o] Error 1 |
|