Hi Alberto,

Thanx for pointing out my mistake in my search. Was missing the
development package.

I attempted to build OSG, built everything until last example to be
built. Compiling fails with the OSG wxWidgets viewer example. I see the
there has been changes in wxWidgets 2.9.6 relating to wxGLCanvas. I
changed the constructor to match 2.9.6 version, removed call to
wxGLCanvas::OnSize(event) in void OSGCanvas::OnSize(wxSizeEvent& event)
as method no longer available for wxGLCanvas.

The only compiling problem I have now is the change to
bool GraphicsWindowWX::makeCurrentImplementation()
{
_canvas->SetCurrent();
return true;
}

SetCurrent() needs to be changed to SetCurrent(const wxGLContext
&context). I have never created a GLCanvas in wxWidgets applications,
thus have no idea on how or where I need to create the required
wxGLContext object.

I just required to have this example fixed so I can do "make install"
for OSG, which current exits with error on the last issue described
above (SetCurrent()).

I appreciate any help to resolve this issue so I may continue compiling
all other libraries and apps that have OSG as a dependent. In my own
wxWidgets application I will be using OSG for my GL canvas, thus this
example would also serve as a reference on implementing OSG in wxWidgets
2.9.6 (3.0).

Thanx in advance,
Rizzen

Alberto Luaces wrote:
> Hi,
>
> Rizzen writes:
>
>   
>> Hi all,
>>
>> I am building OSG 2.9.6 with examples
>>
>> when I run in build/
>>
>> cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_OSG_EXAMPLES=1
>>
>> I get this response in the console output
>>
>> -- checking for module
>> 'gtkglext-x11-1.0'                                                           
>>                    
>>
>> --   package 'gtkglext-x11-1.0' not
>> found                                                                        
>>       
>>
>>
>> yet checking for the library I find it located at
>>
>> file:///usr/lib64/libgtkglext-x11-1.0.so.0 links to
>> file:///usr/lib64/libgtkglext-x11-1.0.so.0.0.0
>>
>> I am unable to find the cmake module to correct the search in order to
>> actually find the library.
>>     
>
> A quick look at CMakeLists.txt points at the command
>
> PKG_CHECK_MODULES(GTKGL gtkglext-x11-1.0)
>
> so it seems that pkg-config is not giving any results for that
> library. Either:
>
> 1. Verify that you have installed the *development* package for
> gtkglext.
> 2. Run the pkg-config query in order to see what is happening,
>
>  pkg-config gtkglext-1.0 --libs --cflags
>
> --
> Alberto
> _______________________________________________
> 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