[osg-users] compiling examples

2008-09-20 Thread Maurizio Vitale

I've been away from osg for long enough to forget how to compile the
examples. I've found an oldish message from Robert explaining the
procedure, but couldn't find the same information in the documentation
or the wiki. It would be good if the getting started guide included
Robert's explanation instead of simply saying to execute runtest.bat,
which cannot work without building the examples first.

Here's Robert's message:

   The examples aren't build by default  - there are nearly a hundred of
   them so its good to keep build time down for those who don't need
   them.

   The examples can be built by running:
  cd OpenSceneGraph
 ccmake .

 And then in console GUI presented toggling on the 
BUILD_OSG_EXAMPLES
 to ON, the press 'c' to configure, then 'g' to generate the final
 build system.

 Then just run make as sual.

Regards,

Maurizio

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


Re: [osg-users] Compiling examples using osg.

2007-09-12 Thread Robert Osfield
Hi James,

If you are using the SVN version of the OSG could you please do an svn
update and report back.

On 9/12/07, James Dickson [EMAIL PROTECTED] wrote:
 I have been trying to compile the examples and found that under vs2005 I get
 the following error when I just include osgViewer:

 e:\openscenegraph\include\osg\math(199) : error C2668:
 'log' : ambiguous call to overloaded function
 c:\program files\microsoft visual studio 8\vc\include\math.h(567):
 could be 'long double log(long double)'
 c:\program files\microsoft visual studio 8\vc\include\math.h(519):
 or 'float log(float)'
 c:\program files\microsoft visual studio 8\vc\include\math.h(121):
 or 'double log(double)'
 while trying to match the argument list '(int)'

 --
 James Dickson
 ___
 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] Compiling examples using osg.

2007-09-12 Thread Paul Martz
If you're using the current SVN head, then please see the thread: Please
test SVN version of OpenSceneGraph. Issues such as these are being
discussed there.
   -Paul
 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Dickson
Sent: Wednesday, September 12, 2007 11:00 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Compiling examples using osg.


I have been trying to compile the examples and found that under vs2005 I get
the following error when I just include osgViewer:

e:\openscenegraph\include\osg\math(199) : error C2668: 'log' : ambiguous
call to overloaded function 
c:\program files\microsoft visual studio 8\vc\include\math.h(567):
could be 'long double log(long double)'
c:\program files\microsoft visual studio 8\vc\include\math.h(519):
or 'float log(float)' 
c:\program files\microsoft visual studio 8\vc\include\math.h(121):
or 'double log(double)'
while trying to match the argument list '(int)'

-- 
James Dickson 

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


Re: [osg-users] Compiling examples using osg.

2007-09-12 Thread James Dickson
SVN update fixed the problem. :)

On 9/12/07, Robert Osfield [EMAIL PROTECTED] wrote:

 Hi James,

 If you are using the SVN version of the OSG could you please do an svn
 update and report back.

 On 9/12/07, James Dickson [EMAIL PROTECTED] wrote:
  I have been trying to compile the examples and found that under vs2005 I
 get
  the following error when I just include osgViewer:
 
  e:\openscenegraph\include\osg\math(199) : error C2668:
  'log' : ambiguous call to overloaded function
  c:\program files\microsoft visual studio
 8\vc\include\math.h(567):
  could be 'long double log(long double)'
  c:\program files\microsoft visual studio
 8\vc\include\math.h(519):
  or 'float log(float)'
  c:\program files\microsoft visual studio
 8\vc\include\math.h(121):
  or 'double log(double)'
  while trying to match the argument list '(int)'
 
  --
  James Dickson
  ___
  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




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


Re: [osg-users] compiling examples

2007-08-03 Thread Robert Osfield
Hi Peter,

On 8/3/07, Peter Gebauer [EMAIL PROTECTED] wrote:
 The mouse is working, the keyboard does not. To make the keyboard work again
 I have to click on the border of a window.

This is just a focus issue, its not that keyboard isn't working.

 Might be the WM, although, only OSG apps hit this problem.


Have you tried examples like osgviewerFLTK, osgviewerQT to see if they
have the same problem.

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


Re: [osg-users] compiling examples

2007-08-03 Thread Peter Gebauer
Hi again, Robert!

Yes, I know it's a focus problem, just can't figure out what. There's no 
problem when using FLTK, GLUT or SDL.

/Peter


On 2007-08-03 (Fri) 13:59, Robert Osfield wrote:
 Hi Peter,
 
 On 8/3/07, Peter Gebauer [EMAIL PROTECTED] wrote:
  The mouse is working, the keyboard does not. To make the keyboard work again
  I have to click on the border of a window.
 
 This is just a focus issue, its not that keyboard isn't working.
 
  Might be the WM, although, only OSG apps hit this problem.
 
 
 Have you tried examples like osgviewerFLTK, osgviewerQT to see if they
 have the same problem.
 
 Robert.
 ___
 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] compiling examples

2007-08-03 Thread Peter Gebauer
Ok, it's odd. Must be IceWM that is not behaving correctly. Thanks for 
testing!

/Peter


On 2007-08-03 (Fri) 17:24, Robert Osfield wrote:
 Hi Peter,
 
 On 8/3/07, Peter Gebauer [EMAIL PROTECTED] wrote:
  Yes, I know it's a focus problem, just can't figure out what. There's no
  problem when using FLTK, GLUT or SDL.
 
 I have just tried osgviewer in various ways and focus always returns
 to the console that I fired up osgviewer from, doesn't matter if I
 open up full screen, or toggle back to window, or run across two
 separate screens.
 
 Robert.
 ___
 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] compiling examples

2007-08-02 Thread Felix Bwire
Hi there,

whenever I try to run an example or code, I get the warning that could not
find plugins to read objects from file. Then it also says osgviewer: no
data loaded. How do I go about it, it seems there is something I didn't do
right.

Thanx,
Felix

On 8/2/07, Robert Osfield [EMAIL PROTECTED] wrote:

 Hi Dave,

 The examples aren't build by default  - there are nearly a hundred of
 them so its good to keep build time down for those who don't need
 them.

 The examples can be built by running:
cd OpenSceneGraph
ccmake .

 And then in console GUI presented toggling on the BUILD_OSG_EXAMPLES
 to ON, the press 'c' to configure, then 'g' to generate the final
 build system.

 Then just run make as sual.

 Robert.

 On 8/1/07, Dave Pugmire [EMAIL PROTECTED] wrote:
  Hi,
  Newbie here.
  Just installed the 2.0 on linux, did a make:
 
  ./configure
  make
 
  But it didn't make the examples.
  cd examples
 
  cmake .
 
  gave me a 'Unknown Cmake command SETUP_EXAMPLE'
 
  I'm not finding anything in particular about building the examples.
  Should it happen automatically when building the OSG source?
  Not seeing anything in the make files either
 
  Thanks for your help-
  -dave
 
  ___
  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

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


Re: [osg-users] compiling examples

2007-08-02 Thread Robert Osfield
Hi Felix,

On 8/2/07, Felix Bwire [EMAIL PROTECTED] wrote:
 whenever I try to run an example or code, I get the warning that could not
 find plugins to read objects from file. Then it also says osgviewer: no
 data loaded. How do I go about it, it seems there is something I didn't do
 right.

You need install the OSG apps/libraries, or set your paths up to find them.

With the data you also need to download OpenSceneGaph-Data and point
the OSG_FILE_PATH env var at this directory.

This is explain in the docs on the website.

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


Re: [osg-users] compiling examples

2007-08-02 Thread Dave Pugmire
Thanks.
That did it.

Having an odd problem now. When I press esc to kill the app, it locks 
my computer. Is there some other setting I missed?
As a work around I have OSG_WINDOW set so that it doesn't run in full 
screen mode so I can kill it from the xterm.

Thanks,
-dave


Robert Osfield wrote:
 Hi Dave,
 
 The examples aren't build by default  - there are nearly a hundred of
 them so its good to keep build time down for those who don't need
 them.
 
 The examples can be built by running:
cd OpenSceneGraph
ccmake .
 
 And then in console GUI presented toggling on the BUILD_OSG_EXAMPLES
 to ON, the press 'c' to configure, then 'g' to generate the final
 build system.
 
 Then just run make as sual.
 
 Robert.
 
 On 8/1/07, Dave Pugmire [EMAIL PROTECTED] wrote:
 Hi,
 Newbie here.
 Just installed the 2.0 on linux, did a make:

 ./configure
 make

 But it didn't make the examples.
 cd examples

 cmake .

 gave me a 'Unknown Cmake command SETUP_EXAMPLE'

 I'm not finding anything in particular about building the examples.
 Should it happen automatically when building the OSG source?
 Not seeing anything in the make files either

 Thanks for your help-
 -dave

 ___
 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

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


Re: [osg-users] compiling examples

2007-08-02 Thread Dave Pugmire
It would give back keyboard, provided that I didn't run in full screen 
mode, and could ^C it at the xterm to kill it. In full screen, I had to 
give it the vulcan death grip to kill the X server.

However, I just installed the latest NVIDIA driver, and all works now.

Thanks all for your help. I hope that as I learn, I can contribute back. 
So far, OSG seems very nice.

-dave


Peter Gebauer wrote:
 Hello there!
 
 I have a similar problem where it seems that the OSG apps refuse to give 
 back keyboard control to the window manager, could you be experiencing 
 something simlar? Does mouse control still work after quiting?
 
 /Peter
 
 
 On 2007-08-02 (Thu) 09:51, Dave Pugmire wrote:
 Thanks.
 That did it.

 Having an odd problem now. When I press esc to kill the app, it locks 
 my computer. Is there some other setting I missed?
 As a work around I have OSG_WINDOW set so that it doesn't run in full 
 screen mode so I can kill it from the xterm.

 Thanks,
 -dave


 Robert Osfield wrote:
 Hi Dave,

 The examples aren't build by default  - there are nearly a hundred of
 them so its good to keep build time down for those who don't need
 them.

 The examples can be built by running:
cd OpenSceneGraph
ccmake .

 And then in console GUI presented toggling on the BUILD_OSG_EXAMPLES
 to ON, the press 'c' to configure, then 'g' to generate the final
 build system.

 Then just run make as sual.

 Robert.

 On 8/1/07, Dave Pugmire [EMAIL PROTECTED] wrote:
 Hi,
 Newbie here.
 Just installed the 2.0 on linux, did a make:

 ./configure
 make

 But it didn't make the examples.
 cd examples

 cmake .

 gave me a 'Unknown Cmake command SETUP_EXAMPLE'

 I'm not finding anything in particular about building the examples.
 Should it happen automatically when building the OSG source?
 Not seeing anything in the make files either

 Thanks for your help-
 -dave

 ___
 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
 ___
 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

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