Hi Alejandro,

You are hitting an issue with OSX support for building against
32bit/64bit in the same binary, in your case you are building the OSG
to build both, but then trying to compile against a Qt lib which is
32bit only.

Go into CMake and remove the x86_64 entry in the
CMAKE_OSX_ARCHITECTURES and then press 'c' to configure and 'g' to
generate the build system.  Then rebuild the OSG.  Or just build Qt
against 32 and 64bit.

Robert.

On Tue, Sep 28, 2010 at 6:58 PM, Alejandro Aguilar Sierra
<[email protected]> wrote:
> Hello:
>
> I am trying to compile 2.9.9 in a Mac OSX 10.6 snow leopard and I got
> a problem with Qt (error log below). In fact it would be better if I
> can compile it without Qt.
>
> Any hint?
>
> Regards,
>
> --
> Alejandro
>
>
> [ 98%] Building CXX object
> src/osgQt/CMakeFiles/osgQt.dir/QFontImplementation.cpp.o
> In file included from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtCore.framework/Headers/qnamespace.h:45,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtCore.framework/Headers/qobjectdefs.h:45,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qwindowdefs.h:45,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qfont.h:45,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/QFont:1,
>                 from
> /Users/ale/src/OpenSceneGraph-2.9.9/include/osgQt/QFontImplementation:19,
>                 from
> /Users/ale/src/OpenSceneGraph-2.9.9/src/osgQt/QFontImplementation.cpp:13:
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2:
> error: #error "You are building a 64-bit application, but using a
> 32-bit version of Qt. Check your build configuration."
> In file included from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qmatrix.h:46,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qtransform.h:44,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qimage.h:45,
>                 from
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/QImage:1,
>                 from
> /Users/ale/src/OpenSceneGraph-2.9.9/src/osgQt/QFontImplementation.cpp:21:
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qregion.h:
> In member function ‘OpaqueRgnHandle* QRegion::handle(bool) const’:
> /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/QtGui.framework/Headers/qregion.h:160:
> error: ‘toQDRgn’ was not declared in this scope
> lipo: can't figure out the architecture type of:
> /var/folders/qE/qEL4-gb+HEiohD3qgoFONE+++TI/-Tmp-//ccGy7LHP.out
> make[2]: *** [src/osgQt/CMakeFiles/osgQt.dir/QFontImplementation.cpp.o] Error 
> 1
> make[1]: *** [src/osgQt/CMakeFiles/osgQt.dir/all] Error 2
> make: *** [all] Error 2
> Alejandro-Aguilar-Sierras-iMac:OpenSceneGraph-2.9.9 ale$ ccmake .
> _______________________________________________
> 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