Hi,

I am trying to include the testPassiveQT4.cpp into my application. although it 
compiles fine, when I only compile the OpenSG itself, I have difficulties to 
compile it as part of my application. for some reason, GLenum and UInt32 are 
both defined as "unsigned int" which leads to a number of redefinition errors 
as the following:

<path>/include/OpenSG/OSGExceptionBinaryDataHandler.h:121: error: ‘void 
OSG::ExceptionBinaryDataHandler::putValue(const GLenum&)’ cannot be overloaded
<path>/include/OpenSG/OSGExceptionBinaryDataHandler.h:109: error: with ‘void 
OSG::ExceptionBinaryDataHandler::putValue(const OSG::UInt32&)’

Here is a second example, that is more explicit:

<path>include/OpenSG/OSGBaseFunctions.inl:2889: error: redefinition of 
‘ValueTypeT OSG::osgSwapBytes(ValueTypeT) [with ValueTypeT = unsigned int]’
<path>/include/OpenSG/OSGBaseFunctions.inl:2869: error: ‘ValueTypeT 
OSG::osgSwapBytes(ValueTypeT) [with ValueTypeT = unsigned int]’ previously 
declared here

i use cmake, and therefore, i chose to copy the FindOpenSG.cmake into my 
source-directory. to include opensg, i simply call 

find_package(OpenSG)

and then use:

IF(OpenSG_FOUND)
  include_directories(${OpenSG_INCLUDE_DIRS})
  link_directories(${OpenSG_LIBRARY_DIRS})
ENDIF(OpenSG_FOUND)

OpenSG_INCLUDE_DIRS points to the path, where I installed OpenSG (make install).

regards,
keyan

On 12 May 2011, at 19:55, Keyan wrote:

> Hi,
> 
> the testPassiveQT4 example works. i will start from that.
> 
> thanks for the advice.
> 
> regards,
> keyan
> 
> On 11 May 2011, at 16:02, Carsten Neumann wrote:
> 
>>      Hello Keyan,
>> 
>> On 05/11/2011 07:55 AM, Keyan wrote:
>>> unfortunately, my application already uses Qt4.
>>> I want to replace my rather simple OpenGL implementation by a good scene 
>>> graph manager. therefore, i am interested in the Qt4-exmaple.
>> 
>> ok, just to make sure: you can use Qt4 with OpenSG even if the QT4Window 
>> does not compile, that is what the 
>> Source/WindowSystem/QT4/testPassiveQT4.cpp example shows.
>> 
>>      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
> 
> 
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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