I attempted to get OSG to compile in Cygwin and I finally got an X11
version to compile. I had problem with osgViewer which did not seem to
want to add the libraries X11 and Xrandr even though it saw them. I
could add the libraries to link.txt for the modules that failed and
then execute and they would compile. I tried determining what was
wrong with the CMakeLists.txt for osgViewer but only way I could get it
to add the X11 and Xrandr was to change this routine near the end:
IF(MINGW OR CYGWIN)
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARY} gdi32 )
ENDIF()
so that the set line reads as follows:
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARY} gdi32
${X11_X11_LIB} ${X11_Xrandr_LIB} )
And then compiled great and worked.
I then tried to get it to compile without X11 by setting
OSG_WINDOWING_SYSTEM to none and it compiled but osgViewer could not
create a window so then I change the GL references to point to the
opengl libs in w32api for cygwin which as I recall is the appropriate
think to do so it uses the win opengl libs and includes. But now when
compiling I get this error regarding GLfloat and GLdouble
[ 0%] Built target OpenThreads
[ 0%] Building CXX object
src/osg/CMakeFiles/osg.dir/ArrayDispatchers.o
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp: In member
function `void o
sg::ArrayDispatchers::init()':
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:440: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:441: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:442: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLdouble*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLdouble] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:443: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLdouble*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLdouble] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:446: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLbyte*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLbyte] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:447: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLshort*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLshort] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:448: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:449: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLdouble*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLdouble] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:451: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLubyte*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLubyte] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:452: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:453: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:454: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLdouble*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLdouble] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:455: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLdouble*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLdouble] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp: In member
function `void o
sg::ArrayDispatchers::assignTexCoordDispatchers(unsigned int)':
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:528: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:529: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:530: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:531: error: no
matching fun
ction for call to `osg::AttributeDispatchMap::assign(osg::Array::Type,
void (&)(
const GLfloat*), int)'
/usr/src/OpenSceneGraph/src/osg/ArrayDispatchers.cpp:268: note:
candidates are:
void osg::AttributeDispatchMap::assign(osg::Array::Type, void (*)(const
T*), uns
igned int) [with T = GLfloat] <near match>
make[2]: *** [src/osg/CMakeFiles/osg.dir/ArrayDispatchers.o] Error 1
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
make: *** [all] Error 2
BrianK@ATL-LT-BK /usr/develop/obj/osg
$
thanks bk
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org