Hello Keyan,

On 05/16/2011 02:31 AM, Keyan wrote:
> as a starting point, I had just copied the source of testPassiveQT4.cpp into 
> my source tree, to call it from my window manager. So the ordering of the 
> files was exactly as in the testPassiveQT4.cpp.

ok. BTW there is nothing wrong with using a PassiveWindow for rendering 
with Qt4, the only thing you can not do with that setup is move the 
OpenSG rendering to a different thread than the GUI.
I've been trying to get that working over the weekend, but it crashes in 
interesting ways - and atm I'm not sure it is necessarily OpenSG's 
fault. Looking at bugle logs of the GL calls being made, it looks ok. 
I'll play some more with this to see if i can get it to work.

> the problem is in the OSGConfig.h
>
> i had to comment the lines, that you described:
>
> //# include<AvailabilityMacros.h>
> //# if !defined(MAC_OS_X_VERSION_10_5) || (MAC_OS_X_VERSION_MAX_ALLOWED<  
> MAC_OS_X_VERSION_10_5)
> //#  define OSG_GLENUM_NEQ_UINT32
> //# endif
>
> now it works. here are the lines of my AvailabilityMacros.h, that might 
> matter:
>
> * Set up standard Mac OS X versions
> */
> #define MAC_OS_X_VERSION_10_0 1000
> #define MAC_OS_X_VERSION_10_1 1010
> #define MAC_OS_X_VERSION_10_2 1020
> #define MAC_OS_X_VERSION_10_3 1030
> #define MAC_OS_X_VERSION_10_4 1040
> #define MAC_OS_X_VERSION_10_5 1050
> #define MAC_OS_X_VERSION_10_6 1060
>
> […]
>
> /*
> * if max OS not specified, assume largerof(10.6, min)
> */
> #ifndef MAC_OS_X_VERSION_MAX_ALLOWED
>     #if MAC_OS_X_VERSION_MIN_REQUIRED>  MAC_OS_X_VERSION_10_6
>         #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_MIN_REQUIRED
>     #else
>         #define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_6
>     #endif
> #endif
>
>
> i am running mac os x 10.6.7 with macports 1.9.2.

hmm, it seems the intention of the defines in OSGConfig.h is that if 
compiling for OS X before 10.5 the #define OSG_GLENUM_NEQ_UINT32 is in 
effect.
Can someone with more OS X experience help: Did the type of GLenum 
change at some point in time? What version did this happen in?

> there was another problem. make install did not copy the library files to the 
> destination directory, and OpenSG_LIBRARIES was empty. i solved that now, by 
> copying them myself, and setting the variable by hand.

no idea why the copying failed, did you have write permission to the 
destination? After copying the files you should not need to set 
OpenSG_LIBRARIES by hand, rerunning cmake in your build dir should cause 
it to pick them up.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to