Re: [osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-08-20 Thread Robert Osfield
Hi Brian,

On Fri, Aug 19, 2011 at 9:47 PM, Brian Keener
bkee...@thesoftwaresource.com wrote:
 So how would I tell configure and make to use the OPenSceneGraph
 version instead of the opengl and glu libraries that are already in my
 Cygwin install as it does seem to see them and want to use them but I'm
 not sure.

CMake's OpenGL find module picks both OpenGL and GLU so you'll see
both in the Cmake settings, but the OSG, from 3.0 ignores the GLU
setting so just ignore it - whatever it is set will not make a
difference to the OSG build.  It's just the OpenGL libs and headers
that the OSG will use so just make sure these are set correctly.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-08-19 Thread Brian Keener
Robert Osfield wrote:
 HI Brian,
 
 On Tue, Aug 16, 2011 at 10:12 PM, Brian Keener
 bkee...@thesoftwaresource.com wrote:
  Well that makes the X11 version perfectly with standard Cygwin
  installed and my one change to cmakelists.txt in osgViewer source.
 
  Still cannot get it to build though with opengl32 and glu and build a
  non X11 but Windows version.  I get a lot of _gl. Undefined
  functions.
 
 I can't comment on Cygwin specifically as I have no personal
 experience with it.  The only thing I can add is that OSG-3.x no
 longer needs GLU, instead a subset of GLU is now compiled from source
 inside the osg library itself.

Hi Robert,

So how would I tell configure and make to use the OPenSceneGraph 
version instead of the opengl and glu libraries that are already in my 
Cygwin install as it does seem to see them and want to use them but I'm 
not sure.

Thanks 

bk



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-08-17 Thread Robert Osfield
HI Brian,

On Tue, Aug 16, 2011 at 10:12 PM, Brian Keener
bkee...@thesoftwaresource.com wrote:
 Well that makes the X11 version perfectly with standard Cygwin
 installed and my one change to cmakelists.txt in osgViewer source.

 Still cannot get it to build though with opengl32 and glu and build a
 non X11 but Windows version.  I get a lot of _gl. Undefined
 functions.

I can't comment on Cygwin specifically as I have no personal
experience with it.  The only thing I can add is that OSG-3.x no
longer needs GLU, instead a subset of GLU is now compiled from source
inside the osg library itself.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-08-16 Thread Brian Keener
Skai Ware wrote:
 Hi Brian,
  Compiling OSG 3 with cygwin is perhaps today not feasible due
 to the objectives from cygwin team to remove the WIN32 define. 
 Have you tried to cmake OSG with
 cmake . -DCMAKE_LEGACY_CYGWIN_WIN32=1
 

Well that makes the X11 version perfectly with standard Cygwin 
installed and my one change to cmakelists.txt in osgViewer source.

Still cannot get it to build though with opengl32 and glu and build a 
non X11 but Windows version.  I get a lot of _gl. Undefined 
functions.

thanks

bk


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-08-14 Thread Skai Ware
Hi Brian,

A second question : have you installed some packages from the cygwinports 
project (which provide much more packages than the official cygwin project) ?

Cheers,
Skai

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42054#42054





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-08-14 Thread Skai Ware
Hi Brian,
 Compiling OSG 3 with cygwin is perhaps today not feasible due to the 
objectives from cygwin team to remove the WIN32 define. 
Have you tried to cmake OSG with
cmake . -DCMAKE_LEGACY_CYGWIN_WIN32=1
?
Regards,
Skai

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42053#42053





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Attempting X11 (lib issue) and Windows (GLfloat issue) compiles forOSG in Cygwin

2011-07-21 Thread Brian Keener
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