Re: [osg-users] osgQt error

2010-09-09 Thread lucie lemonnier
Hi,

Ok, it works.

Thank you!

Cheers,
lucie

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





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


Re: [osg-users] osgQt error

2010-09-09 Thread Magnus Kessler
On Thursday 09 September 2010 15:55:24 lucie lemonnier wrote:
> Hi,
> 
> When I compile osgQt, I have this error :
> 
> 1>moc_QGraphicsViewAdapter.cxx
> 1>.\__\__\include\osgQt\moc_QGraphicsViewAdapter.cxx(11) : fatal error
> C1189: #error :  "The header file 'QGraphicsViewAdapter' doesn't include
> ."
> 
> How do I solve it?
> 
> Thank you!
> 
> Cheers,
> lucie


This issue was fixed in commit 11634, which is part of 2.9.9. The fix should 
apply cleanly to earlier versions, if you want to cherry-pick it.

You need to pass the "-f" option to Qt's moc, if you are doing out-of-tree 
builds.

HTH,

Magnus

diff --git a/src/osgQt/CMakeLists.txt b/src/osgQt/CMakeLists.txt
index 69cc12f..6794d57 100644
--- a/src/osgQt/CMakeLists.txt
+++ b/src/osgQt/CMakeLists.txt
@@ -12,7 +12,7 @@ SET(SOURCES_H
 ${HEADER_PATH}/QGraphicsViewAdapter
 )
 
-QT4_WRAP_CPP( SOURCES_H_MOC ${SOURCES_H} )
+QT4_WRAP_CPP( SOURCES_H_MOC ${SOURCES_H} OPTIONS "-f" )
 
 
 SET(LIB_PUBLIC_HEADERS



> 
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=31468#31468
> 
> 
> 
> 
> 
> ___
> 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] osgQt error

2010-09-09 Thread lucie lemonnier
Hi,

When I remove moc_QGraphicsViewAdapter.cxx and recreate a new one, I have the 
same error.
And when I add the required header file (), I still have the same 
error. 

Thank you!

Cheers,
lucie

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





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


Re: [osg-users] osgQt error

2010-09-09 Thread lucie lemonnier
Hi,

I use Windows and Visual Studio 2008. I try to compile the developer release 
2.9.8.
What should I do?
Which file should I remove?

Thank you!

Cheers,
lucie

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





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


Re: [osg-users] osgQt error

2010-09-09 Thread Trajce (Nick) Nikolov
not a qt guru, but this seem a file generated by the moc preprocessor. try
removing it. It will create a new one from you

-Nick


On Thu, Sep 9, 2010 at 7:03 PM, Jean-Sébastien Guay <
jean-sebastien.g...@cm-labs.com> wrote:

> Hello Lucie,
>
>
>  When I compile osgQt, I have this error :
>>
>> 1>moc_QGraphicsViewAdapter.cxx
>> 1>.\__\__\include\osgQt\moc_QGraphicsViewAdapter.cxx(11) : fatal error
>> C1189: #error :  "The header file 'QGraphicsViewAdapter' doesn't
>> include."
>>
>> How do I solve it?
>>
>
> Is this on trunk updated today? Which OS/compiler? (seems Visual Studio but
> which version?)
>
> Try adding the required header, though I didn't need it and I'm also on
> Windows...
>
> J-S
> --
> __
> Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
>   http://www.cm-labs.com/
>http://whitestar02.webhop.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] osgQt error

2010-09-09 Thread Jean-Sébastien Guay

Hello Lucie,


When I compile osgQt, I have this error :

1>moc_QGraphicsViewAdapter.cxx
1>.\__\__\include\osgQt\moc_QGraphicsViewAdapter.cxx(11) : fatal error C1189: #error :  
"The header file 'QGraphicsViewAdapter' doesn't include."

How do I solve it?


Is this on trunk updated today? Which OS/compiler? (seems Visual Studio 
but which version?)


Try adding the required header, though I didn't need it and I'm also on 
Windows...


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] osgQt error

2010-09-09 Thread lucie lemonnier
Hi,

When I compile osgQt, I have this error : 

1>moc_QGraphicsViewAdapter.cxx
1>.\__\__\include\osgQt\moc_QGraphicsViewAdapter.cxx(11) : fatal error C1189: 
#error :  "The header file 'QGraphicsViewAdapter' doesn't include ."

How do I solve it?

Thank you!

Cheers,
lucie

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





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