I am not currently on the OSG track so I'm afraid I can't be much help
at the moment. But be aware that in Snow Leopard, the default
architecture is 64-bit (assuming you are on a 64-bit machine which
almost all Intel Macs are now). All the Carbon stuff in
osgViewerCarbon will likely not compile in 64-bit. I thought there was
at least a preliminary Cocoa based viewer now, but I haven't been
following. It seems like the Cocoa one needs to be made the default
for just this problem that people are going to encounter over and over
again. (Also, if my ImageIO plugin has not been integrated yet, now is
the time do so so as the Quicktime plugin is also not going to work in
64-bit.)

Second, I don't know if the Xcode project is maintained anymore.

Third for CMake, you'll want to verify which architectures are trying
to be built. If you pick the 10.5 SDK and i386 (32-bit), I would think
you would have the best chance of it actually getting built as-is.

-Eric



On 9/15/09, stefan nortd <[email protected]> wrote:
> Hi,
>
> I just updated to osx 10.6.1 snow leopard and ran into a couple of
> problems.
>
> (1) My old osg binaries (osg 2.8.2 compiled for the 10.5 sdk) work but I
> get a ton of warning (I also needed to update to xcode 3.2). They are all
>  of the "different visibility" type.
>
> (2) Osg does not want to compile on osx 10.6. I tried both Xcode and
> Makefiles. And for each I tried the 10.5 and 10.6 sdk which does not seem
>  to change the nature of the compilation error.
>
> The attached screenshots are the errors I get with xcode.
>
> The following code snippet is the errors I get with the Makefiles. It gets
> 25% into the build and fails with the osgViewer.
>
>
> Code:
>
> Scanning dependencies of target osgViewer
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/CompositeViewer.cpp.o
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/HelpHandler.cpp.o
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/Renderer.cpp.o
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/Scene.cpp.o
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/ScreenCaptureHandler.cpp.o
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/StatsHandler.cpp.o
> [ 25%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/Version.cpp.o
> [ 26%] Building CXX object src/osgViewer/CMakeFiles/osgViewer.dir/View.cpp.o
> [ 26%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/Viewer.cpp.o
> [ 26%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/ViewerBase.cpp.o
> [ 26%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/ViewerEventHandlers.cpp.o
> [ 26%] Building CXX object
> src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowCarbon.cpp.o
> In file included from
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:18:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/include/osgViewer/api/Carbon/GraphicsWindowCarbon:122:
> warning: ‘AGLDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/include/osgViewer/api/Carbon/GraphicsWindowCarbon:128:
> warning: ‘AGLDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/include/osgViewer/api/Carbon/GraphicsWindowCarbon:132:
> warning: ‘AGLDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In function ‘OSStatus GraphicsWindowEventHandler(OpaqueEventHandlerCallRef*,
> OpaqueEventRef*, void*)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:75:
> error: ‘GetWindowPortBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:75:
> error: ‘InvalWindowRect’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:76:
> error: ‘GetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In constructor ‘osgViewer::MenubarController::MenubarController()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:231:
> error: ‘DMGetGDeviceByDisplayID’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:232:
> error: ‘GetAvailableWindowPositioningBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘void osgViewer::MenubarController::update()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:296:
> error: ‘GetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In constructor
> ‘osgViewer::OSXCarbonWindowingSystemInterface::OSXCarbonWindowingSystemInterface()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:359:
> error: invalid conversion from ‘OSErr (*)(const AppleEvent*, AppleEvent*,
> long int)’ to ‘OSErr (*)(const AppleEvent*, AppleEvent*, void*)’
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:359:
> error:   initializing argument 1 of ‘OSErr (* NewAEEventHandlerUPP(OSErr
> (*)(const AppleEvent*, AppleEvent*, void*)))(const AppleEvent*, AppleEvent*,
> void*)’
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual bool
> osgViewer::GraphicsWindowCarbon::setWindowDecorationImplementation(bool)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:538:
> error: ‘GetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:542:
> error: ‘ChangeWindowAttributes’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:543:
> error: ‘SetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:547:
> error: ‘ChangeWindowAttributes’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:548:
> error: ‘SetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:565:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:565:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:566:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:566:
> error: ‘GetWindowPort’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘void
> osgViewer::GraphicsWindowCarbon::installEventHandler()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:616:
> error: ‘GetWindowEventTarget’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual bool
> osgViewer::GraphicsWindowCarbon::realizeImplementation()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:653:
> error: ‘CreateNewWindow’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:667:
> error: ‘GetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:701:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:701:
> warning: ‘AGLDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:48)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:701:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:704:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:704:
> error: ‘GetWindowPort’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:705:
> error: ‘ShowWindow’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:730:
> error: ‘InitCursor’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual void
> osgViewer::GraphicsWindowCarbon::closeImplementation()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:783:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:783:
> warning: ‘aglSetDrawable’ is deprecated (declared at
> /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:789:
> error: ‘DisposeWindow’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘bool
> osgViewer::GraphicsWindowCarbon::handleMouseEvent(OpaqueEventRef*)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:835:
> error: ‘FindWindow’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:837:
> error: ‘IsWindowActive’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:970:
> error: ‘typeLongInteger’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:996:
> error: ‘typeLongInteger’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘bool
> osgViewer::GraphicsWindowCarbon::handleKeyboardEvent(OpaqueEventRef*)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1028:
> error: cannot convert ‘UInt32*’ to ‘ByteCount*’ for argument ‘6’ to
> ‘OSStatus GetEventParameter(OpaqueEventRef*, EventParamName, EventParamType,
> EventParamType*, ByteCount, ByteCount*, void*)’
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual void
> osgViewer::GraphicsWindowCarbon::checkEvents()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1132:
> error: ‘FindWindow’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1135:
> error: ‘MenuSelect’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1136:
> error: ‘HiliteMenu’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1153:
> error: ‘ConvertEventRefToEventRecord’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual bool
> osgViewer::GraphicsWindowCarbon::setWindowRectangleImplementation(int, int,
> int, int)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1177:
> error: ‘SetWindowBounds’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual void
> osgViewer::GraphicsWindowCarbon::grabFocus()’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1185:
> error: ‘SelectWindow’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual void
> osgViewer::GraphicsWindowCarbon::setCursor(osgViewer::GraphicsWindow::MouseCursor)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1234:
> error: ‘HideCursor’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1258:
> error: ‘SetThemeCursor’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1259:
> error: ‘ShowCursor’ was not declared in this scope
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:
> In member function ‘virtual void
> osgViewer::GraphicsWindowCarbon::setWindowName(const std::string&)’:
> /Users/noema/Downloads/OpenSceneGraph-2.8.2/src/osgViewer/GraphicsWindowCarbon.cpp:1269:
> error: ‘SetWindowTitleWithCFString’ was not declared in this scope
> make[2]: ***
> [src/osgViewer/CMakeFiles/osgViewer.dir/GraphicsWindowCarbon.cpp.o] Error 1
> make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
>
>
> Thank you!
>
> Cheers,
> stefan
>
> ------------------------
> stefan hechenberger
>
> http://linear.nortd.com
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=17399#17399
>
>
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to