hi,

tring on QOSGWidget example,

i ried to replace : 

#include <osgViewer/api/Carbon/GraphicsWindowCarbon>

with :

#include <osgViewer/api/Cocoa/GraphicsWindowCocoa>



but i get : 


[ 99%] Building CXX object 
examples/osgviewerQtWidget/CMakeFiles/example_osgviewerQtWidget.dir/QOSGWidget.cpp.o
/Users/sasha/source/trunk/examples/osgviewerQtWidget/QOSGWidget.cpp: In member 
function ‘void QOSGWidget::createContext(QWidget*)’:
/Users/sasha/source/trunk/examples/osgviewerQtWidget/QOSGWidget.cpp:156: error: 
‘HIViewRef’ was not declared in this scope
/Users/sasha/source/trunk/examples/osgviewerQtWidget/QOSGWidget.cpp:156: error: 
‘HIViewGetWindow’ was not declared in this scope
make[2]: *** 
[examples/osgviewerQtWidget/CMakeFiles/example_osgviewerQtWidget.dir/QOSGWidget.cpp.o]
 Error 1
make[1]: *** 
[examples/osgviewerQtWidget/CMakeFiles/example_osgviewerQtWidget.dir/all] Error 
2




the original file :

http://www.geofemengineering.it/data/QOSGWidget.cpp

but ... i tried also using a 32 build for osg (architecture i386, carbon)

this the error :

Scanning dependencies of target example_osgviewerQT
[ 98%] Building CXX object 
examples/osgviewerQT/CMakeFiles/example_osgviewerQT.dir/QOSGWidget.cpp.o
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp:61: error: 
‘WindowRef’ does not name a type
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp:62: error: 
‘osgViewer::GraphicsWindowCarbon’ has not been declared
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp:62: error: 
expected initializer before ‘WindowData’
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp: In member 
function ‘void QOSGWidget::createContext()’:
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp:163: error: 
expected type-specifier before ‘WindowData’
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp:163: error: no 
match for ‘operator=’ in ‘traits. osg::ref_ptr<T>::operator-> [with T = 
osg::GraphicsContext::Traits]()->osg::GraphicsContext::Traits::inheritedWindowData
 = (int*)operator new(4u)’
/Users/sasha/source/trunk/include/osg/ref_ptr:35: note: candidates are: 
osg::ref_ptr<T>& osg::ref_ptr<T>::operator=(const osg::ref_ptr<T>&) [with T = 
osg::Referenced]
/Users/sasha/source/trunk/include/osg/ref_ptr:47: note:                 
osg::ref_ptr<T>& osg::ref_ptr<T>::operator=(T*) [with T = osg::Referenced]
/Users/sasha/source/trunk/examples/osgviewerQT/QOSGWidget.cpp:163: error: 
expected `;' before ‘WindowData’
make[2]: *** 
[examples/osgviewerQT/CMakeFiles/example_osgviewerQT.dir/QOSGWidget.cpp.o] 
Error 1
make[1]: *** [examples/osgviewerQT/CMakeFiles/example_osgviewerQT.dir/all] 
Error 2
make: *** [all] Error 2
MacBook-Pro-15-di-Massimo-Di-Stefano:build2 sasha$ 



 Massimo.


Il giorno 08/dic/2009, alle ore 17.30, Robert Osfield ha scritto:

> Hi Massimo,
> 
> I've now spotted that you problems were no longer about the quicktime
> plugin... but Qt and WxWindows.  As Stephan mentions these examples
> will be using parts of the OSG/OSX that aren't supported under 64bit
> build.
> 
> It should be possible to modify the Qt examples to compile under 64bit
> by avoiding the use of GraphicsWIndowCarbon.  I don't know if
> GrahicsWindowCocoa can be successfully used in it's place but you
> could try.  The other route it not use the GraphicsWindow inheritance
> functionality, and instead use GraphicsWindow embedded or the full
> GraphicsWindow subclass  functionality.
> 
> Robert.
> 
> On Tue, Dec 8, 2009 at 4:06 PM, Massimo Di Stefano
> <[email protected]> wrote:
>> Hi Ronert,
>> 
>> sure i did it
>> 
>> cd trunk
>> mkdir build
>> ccmake ..
>> 
>> i changed the configuration
>> then pressed "c" to configure
>> an "g" to generate the makefile
>> 
>> in the file "CMakeCache.txt" i have :
>> 
>> //standard image plugin for os x, options are quicktime, imageio
>> OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX:STRING=imageio
>> 
>> but the make continue to try to buld quicktime.
>> 
>> Massimo.
>> 
>> Il giorno 08/dic/2009, alle ore 16.41, Robert Osfield ha scritto:
>> 
>>> Hi Massimo,
>>> 
>>> On Tue, Dec 8, 2009 at 3:38 PM, Massimo Di Stefano
>>> <[email protected]> wrote:
>>>> Hi,
>>>> 
>>>> i applied the change to cmake settings :
>>>> 
>>>>> OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX = imageio
>>>> 
>>>> but the error persists, so i make a copy of the quicktime directory and i 
>>>> removed all the files from the original on :
>>> 
>>> After setting the variable using ccmake you should then press 'c' and
>>> 'g' to configure and then generate the finale makefiles/Xcode
>>> projects.  If you miss these steps out then you'll still see the
>>> quicktime plugin building.
>>> 
>>> Robert.
>>> _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>> 
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to