Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-11 Thread Christopher Wang
Hi,
Brian, the quote on the post of Wed Jun 10, 2009 3:48 has the error in the 
quote, it long!  Also running cmake, I did verify that the header files and 
library files where located where it was searching.
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-11 Thread Brian Keener
Alberto Luaces wrote:
> on the Cygwin list just told me that my OSG package would only be 
> included in Cygwin if it used the X subsystem instead of the native
> windows one.

I may be confusing two issues but seems I got OSG to build some of the 
examples (osgViewer using GraphicsWindowX11.cpp).  It took a little 
tweaking in the cmake config - paths are real critical.  Is that just 
building X apps with OSG as opposed to OSG being built as X.  Even 
though you use a configuration heavy on X - it still build OSG as 
native 
Windows.  

It would help if Christopher would post the errors - I've had enough 
issues over time - I've probably seen it.  I see he has posted a dump.

Bk


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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-11 Thread Christopher Wang
Hi,
Thanks for all the help guys.  I've been trying what I can think of also.
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Jason Daly

Christopher Wang wrote:

Hi,

I'm pretty sure that I've been using one manage too long that the compiler gods 
are trying to get back at me.
  


:-)




I have no idea what I just did but there are a TON of lines.
  


It's a dump of the symbols in the library.  The symbols in that file 
should be resolving the references in the OSG code that you're 
compiling.  Unfortunately, they're not doing that for some reason, hence 
the "undefined reference" errors.  I don't know what else to try.  Maybe 
someone else can do something with this information.


If I get a chance, I'll try a Cygwin install myself.

--"J"

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Jason Daly

Christopher Wang wrote:

Hi,
Sure can, here is the error messages:

  
...

CMakeFiles/osg.dir/Uniform.o CMakeFiles/osg.dir/Version.o 
CMakeFiles/osg.dir/VertexProgram.o CMakeFiles/osg.dir/View.o 
CMakeFiles/osg.dir/Viewport.o ../../lib/libOpenThreads.dll.a -lpthread 
-Wl,-Bstatic -lm -Wl,-Bdynamic /usr/lib/w32api/libglu32.a 
/usr/lib/w32api/libopengl32.a
make[2]: Leaving directory `/usr/share/OpenSceneGraph'
make[1]: Leaving directory `/usr/share/OpenSceneGraph'



Hmm, the link line seems reasonable.  I'd expect to see "-lopengl32" 
instead of "/usr/lib/w32api/libopengl32.a", but either way should work, 
I think.



What do you get if you run:

objdump -t /usr/lib/w32api/libopengl32.a


I'm not sure why you're having so much trouble here, as this is such a 
basic thing, and it works fine for others.


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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Jason Daly

Christopher Wang wrote:

Hi,
Good point Jason, I forgot about that.  I tried a reinstall and I still got the 
error.  It seems that pipe won't redirect the stderr, just stdio.  Ill have to 
do some research on that to get more error information.
Here is what stdio printed before it died.
  


Can you run "make VERBOSE=1", so we can see exactly what the compiler is 
doing?  That might give us a clue.


--"J"

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Christopher Wang
Hi,
Good point Jason, I forgot about that.  I tried a reinstall and I still got the 
error.  It seems that pipe won't redirect the stderr, just stdio.  Ill have to 
do some research on that to get more error information.
Here is what stdio printed before it died.

> [ 14%] Building CXX object src/osg/CMakeFiles/osg.dir/TransferFunction.o
> [ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/Transform.o
> [ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/Uniform.o
> [ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/Version.o
> [ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/VertexProgram.o
> [ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/View.o
> [ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/Viewport.o
> Linking CXX shared library ../../bin/cygosg-2.8.1.dll

And some of the std error

> 
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4579): undefined reference to 
> `_gl
> GetIntegerv'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x45db): undefined reference to 
> `_gl
> GetIntegerv'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x474e): undefined reference to 
> `_gl
> EnableClientState'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x47c8): undefined reference to 
> `_gl
> EnableClientState'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4ab7): undefined reference to 
> `_gl
> GetError'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4acf): undefined reference to 
> `_gl
> uErrorString'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4bf5): undefined reference to 
> `_gl
> GetError'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4c0d): undefined reference to 
> `_gl
> uErrorString'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4d4c): undefined reference to 
> `_gl
> GetError'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text+0x4d64): undefined reference to 
> `_gl
> uErrorString'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State20applyModelViewMatrixE
> PKNS_10RefMatrixdE[osg::State::applyModelViewMatrix(osg::RefMatrixd 
> const*)]+0x6
> 5): undefined reference to `_glLoadIdentity'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State21applyProjectionMatrix
> EPKNS_10RefMatrixdE[osg::State::applyProjectionMatrix(osg::RefMatrixd 
> const*)]+0
> x21): undefined reference to `_glMatrixMode'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State21applyProjectionMatrix
> EPKNS_10RefMatrixdE[osg::State::applyProjectionMatrix(osg::RefMatrixd 
> const*)]+0
> x71): undefined reference to `_glLoadIdentity'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State21applyProjectionMatrix
> EPKNS_10RefMatrixdE[osg::State::applyProjectionMatrix(osg::RefMatrixd 
> const*)]+0
> x7d): undefined reference to `_glMatrixMode'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State9applyModeEjbRNS0_9Mode
> StackE[osg::State::applyMode(unsigned int, bool, 
> osg::State::ModeStack&)]+0x3a):
>  undefined reference to `_glEnable'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State9applyModeEjbRNS0_9Mode
> StackE[osg::State::applyMode(unsigned int, bool, 
> osg::State::ModeStack&)]+0x47):
>  undefined reference to `_glDisable'
> CMakeFiles/osg.dir/State.o:State.cpp:(.text$_ZN3osg5State19disableIndexPointerEv
> [osg::State::disableIndexPointer()]+0x3c): undefined reference to 
> `_glDisableCli
> entState'
> CMakeFiles/osg.dir/Stencil.o:Stencil.cpp:(.text+0x184): undefined reference 
> to `
> _glStencilFunc'
> CMakeFiles/osg.dir/Stencil.o:Stencil.cpp:(.text+0x1a6): undefined reference 
> to `
> _glStencilOp'
> CMakeFiles/osg.dir/Stencil.o:Stencil.cpp:(.text+0x1b4): undefined reference 
> to `
> _glStencilMask'
> CMakeFiles/osg.dir/StencilTwoSided.o:StencilTwoSided.cpp:(.text+0x84f): 
> undefine
> d reference to `_glStencilOp'
> CMakeFiles/osg.dir/StencilTwoSided.o:StencilTwoSided.cpp:(.text+0x85d): 
> undefine
> d reference to `_glStencilMask'
> CMakeFiles/osg.dir/StencilTwoSided.o:StencilTwoSided.cpp:(.text+0x87f): 
> undefine
> d reference to `_glStencilFunc'
> CMakeFiles/osg.dir/StencilTwoSided.o:StencilTwoSided.cpp:(.text+0x8b4): 
> undefine
> d reference to `_glStencilOp'
> CMakeFiles/osg.dir/StencilTwoSided.o:StencilTwoSided.cpp:(.text+0x8c2): 
> undefine
> d reference to `_glStencilMask'
> CMakeFiles/osg.dir/StencilTwoSided.o:StencilTwoSided.cpp:(.text+0x8e4): 
> undefine
> d reference to `_glStencilFunc'
> CMakeFiles/osg.dir/TexEnvCombine.o:TexEnvCombine.cpp:(.text+0x4c7): undefined 
> re
> ference to `_glTexEnvi'
> CMakeFiles/osg.dir/TexEnvCombine.o:TexEnvCombine.cpp:(.text+0x4e5): undefined 
> re
> ference to `_glTexEnvi'
> CMakeFiles/osg.dir/TexEnvCombine.o:TexEnvCombine.cpp:(.text+0x50f): undefined 
> re
> ference to `_glTexEnvi'
> CMakeFiles/osg.dir/TexEnvCombine.o:TexEnvCombine.cpp:(.text+0x52d): undefined 
> re
> ference to `_glTexEnvi'
> CMakeFiles/osg.dir/TexEnvCombine.o:TexEnvCombine.cpp:(.text+0x54b): undefined 
> re
> ference to `_glTexEnvi'
> CMakeFiles/osg.dir/TexEnvCombine.o:TexEnvCombine.cpp:(.text+0x569): more 
> undefin
> ed references to `

Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Jason Daly

Christopher Wang wrote:

Hi,
Sadly I am the first person from the office to have to do anything with OSG, 
they are using cygwin for other projects.
To give some idea of the errors, I will pipe my make into a file and post the 
beginning of the errors.  Also, I am rebuilding cygwin.  I noticed I had 2 
versions of OpenGL, GLUT3 and freeglut.  That maybe an issue.
  


Just to be clear, GLUT is not OpenGL.  GLUT stands for GL Utility 
Toolkit, and is a layer on top of OpenGL intended for writing quick and 
simple OpenGL applications.  OpenSceneGraph has nothing to to with GLUT 
(unless you use the old osgGLUT nodekit, which isn't recommended for 
most people).


You shouldn't need to install GLUT at all if you're only interested in 
compiling OpenSceneGraph.


--"J"

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Christopher Wang
Hi,
Sadly I am the first person from the office to have to do anything with OSG, 
they are using cygwin for other projects.
To give some idea of the errors, I will pipe my make into a file and post the 
beginning of the errors.  Also, I am rebuilding cygwin.  I noticed I had 2 
versions of OpenGL, GLUT3 and freeglut.  That maybe an issue.
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Alberto Luaces
El Miércoles 10 Junio 2009ES 17:02:11 Paul Melis escribió:
> > Hi,
> > Sadly everyone else is using cygwin, so for compatibility sake I need to
> > keep to that. ...
> >  
>
> But doesn't that give you more than one reference to figure out how
> they compiled OSG with cygwin?

This is true, specially since then you can compare the CMakeCache.txt files 
and the compilation output issuing "make VERBOSE=1".

Regards,

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Alberto Luaces
Hi Bryan,

El Miércoles 10 Junio 2009ES 16:48:54 Thrall, Bryan escribió:
> I see on the Cygwin list that Alberto Luaces is proposing to add an OSG
> package:
>
> http://cygwin.com/ml/cygwin-apps/2009-06/msg00095.html
>
> So within the next couple of days you should be able to see how he built
> it.

There's no secret, really :) I have built OSG with versions 1.5 and 1.7 and 
gcc 4 and 3 without any problem. My CDash build is a proof of it. Maybe 
Christopher is mixing X OpenGL headers with the windows ones, but I can't say 
if I can't see any error messages.

Since I was building OSG in a daily basis on Cygwin I though it could be 
useful volunteer in order to add it into precompiled packages. Sadly, someone 
on the Cygwin list just told me that my OSG package would only be included in 
Cygwin if it used the X subsystem instead of the native windows one. That 
would render the library without hardware acceleration, so I'm thinking if 
in that way the package could be useful at all.

Regards,

Alberto


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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Paul Melis

Christopher Wang wrote:

Hi,
Sadly everyone else is using cygwin, so for compatibility sake I need to keep 
to that.
... 
  
But doesn't that give you more than one reference to figure out how 
they compiled OSG with cygwin?


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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Christopher Wang
Hi,
Sadly everyone else is using cygwin, so for compatibility sake I need to keep 
to that.
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Robert Osfield
Hi Christopher,

Could you be specific about the build failure you are now getting.

Robert.

On Wed, Jun 10, 2009 at 2:26 PM, Christopher Wang wrote:
> Hi,
> That didn't either.  Maybe I missing some step in the setup.
>
> What I did was:
>
> Ran Cygwin's setup.exe to install OpenGl, Cygwin, GCC, and several of the 
> pre-reqs
> I unzipped the latest source (2.8.1) into /home/username/OpenSceneGraph-2.8.1
> I made a folder /home/username/buildOSG
> Did ccmake ../OpenSceneGraph-2.8.1
> Did a configure
> Fixed the OpenGL path to it pointed to the parent of the folder GL
> Did another configure
> Did a generate
> Did a make
>
> Then it fails about 15% on make!!  I ideas what step I'm missing?
> ...
>
> Thank you!
>
> Cheers,
> Christopher
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=13830#13830
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Thrall, Bryan
Christopher Wang wrote on Wednesday, June 10, 2009 8:27 AM:

> Hi,
> That didn't either.  Maybe I missing some step in the setup.
> 
> What I did was:
> 
> Ran Cygwin's setup.exe to install OpenGl, Cygwin, GCC, and several of
the
> pre-reqs I unzipped the latest source (2.8.1) into
> /home/username/OpenSceneGraph-2.8.1 
> I made a folder /home/username/buildOSG
> Did ccmake ../OpenSceneGraph-2.8.1
> Did a configure
> Fixed the OpenGL path to it pointed to the parent of the folder GL
> Did another configure
> Did a generate
> Did a make
> 
> Then it fails about 15% on make!!  I ideas what step I'm missing?

I see on the Cygwin list that Alberto Luaces is proposing to add an OSG
package:

http://cygwin.com/ml/cygwin-apps/2009-06/msg00095.html

So within the next couple of days you should be able to see how he built
it.

-- 
Bryan Thrall
FlightSafety International
bryan.thr...@flightsafety.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Paul Melis

Christopher Wang wrote:

Hi,
That didn't either.  Maybe I missing some step in the setup.

What I did was:

Ran Cygwin's setup.exe to install OpenGl, Cygwin, GCC, and several of the 
pre-reqs
I unzipped the latest source (2.8.1) into /home/username/OpenSceneGraph-2.8.1
I made a folder /home/username/buildOSG
Did ccmake ../OpenSceneGraph-2.8.1
Did a configure
Fixed the OpenGL path to it pointed to the parent of the folder GL
Did another configure
Did a generate
Did a make

Then it fails about 15% on make!!  I ideas what step I'm missing?
... 


Thank you!
  
In case you get tired of this and are not specifically tied to cygwin 
try MinGW. I've had more success with OSG and MinGW in the past...


Paul

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-10 Thread Christopher Wang
Hi,
That didn't either.  Maybe I missing some step in the setup.

What I did was:

Ran Cygwin's setup.exe to install OpenGl, Cygwin, GCC, and several of the 
pre-reqs
I unzipped the latest source (2.8.1) into /home/username/OpenSceneGraph-2.8.1
I made a folder /home/username/buildOSG
Did ccmake ../OpenSceneGraph-2.8.1
Did a configure
Fixed the OpenGL path to it pointed to the parent of the folder GL
Did another configure
Did a generate
Did a make

Then it fails about 15% on make!!  I ideas what step I'm missing?
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang

Alberto Luaces wrote:
> Hi,
> 
> El Martes 09 Junio 2009ES 15:21:42 Christopher Wang escribió:
> 
> > and for those values I got
> > OPENGL_INCLUDE_DIR               /usr/include
> > OPENGL_gl_LIBRARY                /usr/lib/w32api/libopengl32.a
> > OPENGL_glu_LIBRARY               /usr/lib/w32api/libglu32.a
> > 
> 
> take into account that Philip and me have /usr/include/w32api as the value 
> for 
> OPENGL_INCLUDE_DIR and not only /usr/include like you.
> 
> Regards,
> 
> Alberto
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum


Thanks for the suggestion, I have tried adding the w32api folder in the config 
and re-generating and the w32api/GL and re-generating.

I just thought of an idea of doing a clean, deleting all my files and then 
doing a configuration from scratch.  Perhaps I'm having a cache issue.

I'll let you guys know how that goes.
Thanks!
Chris

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Robert Osfield
Hi Christopher,

I can't help directly as I have no Cygwin/Mingw experience, but I can
say there is a nightly build of both up on the OSG CDash page:

http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph

There aren't any errors being reported for either Cygwin so it should
be possible to get things building on your machine given the right set
up of Cygwin.  Hopefully this should provide a little encouragement
that it is possible, exactly what to tweak I'll have to defer to those
who've set things up under Cygwin.

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang

Alberto Luaces wrote:
> You'd better write what the fix was in order to help others in the future :)
> 
> Regards,
> 
> Alberto
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum


Sorry, what I meant was I changed it to point to OpenGL, and its still not 
working.  I am still getting the same errors.

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Alberto Luaces
You'd better write what the fix was in order to help others in the future :)

Regards,

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang
Hi,
Grr, fixed it and still have an issue...
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-09 Thread Christopher Wang
Hi,
Thanks for all the help guys!!
I have ccmake 2.6 patch 4
and for those values I got
OPENGL_INCLUDE_DIR   /usr/include
OPENGL_gl_LIBRARY/usr/lib/w32api/libopengl32.a
OPENGL_glu_LIBRARY   /usr/lib/w32api/libglu32.a

I'm sure I missing some stupid step, hope you guys can help out!
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-08 Thread Philip Lowman
On Mon, Jun 8, 2009 at 8:54 PM, Christopher Wang wrote:

> Hi,
> I did, I installed free glut.  I got a small opengl program compiling.
>  Perhaps something is missing from the configure script?
> ...
>

I don't really use Cygwin much but I do have it installed here.  Could you
try the following...

Instead of configure type
$ ccmake --version
(and tell us the version... then run)

$ ccmake .

Hit "c" to configure
Hit "t" to toggle advanced mode

Search down until you find OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY, and
OPENGL_glu_LIBRARY.  What are their values?

Mine are (respectively):
/usr/include/w32api
/usr/lib/w32api/libopengl32.a
/usr/lib/w32api/libglu32.a

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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-08 Thread Christopher Wang
Hi,
I did, I installed free glut.  I got a small opengl program compiling.  Perhaps 
something is missing from the configure script?
... 

Thank you!

Cheers,
Christopher

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





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


Re: [osg-users] Cygwin Compile Question OSG 2.8.1

2009-06-08 Thread Jason Daly

Christopher Wang wrote:

Hi,
  I hope nobody minds me spawing another thread on this question, but I think 
I've moved onto a new question.

I am trying to Compile OSG and I'm getting some OpenGL issues.
My system:
CYGWIN 1.5.25 
GCC 3.4.4 
LibGlut 2.4.0 


some of the many pages of errors
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x2a1): undefined reference to `_glTexGendv' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x2b8): undefined reference to `_glTexGendv' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x2d2): undefined reference to `_glTexGendv' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x2f1): undefined reference to `_glTexGendv' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x30d): undefined reference to `_glTexGeni' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x329): undefined reference to `_glTexGeni' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x340): undefined reference to `_glTexGeni' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x35c): undefined reference to `_glTexGeni' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x391): undefined reference to `_glTexGeni' 
CMakeFiles/osg.dir/TexGen.o:TexGen.cpp:(.text+0x3ad): more undefined references to `_glTexGeni' follow 
CMakeFiles/osg.dir/TexMat.o:TexMat.cpp:(.text+0x1a): undefined reference to `_glMatrixMode' 


I'm pretty rusty on C++.  Any work around solutions?
  


Did you install the OpenGL package when you installed Cygwin?  All of 
the missing functions there are OpenGL functions.


--"J"

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