The example runs correctly under win not under linux.<br>Under linux I am not able to compile the example project.<br>I can compile and install the component package and I am able to use the component under GTK but not GTK2.<br>
<br>GTK2:<br>new project<br>I put a TOpenGLControl on a form.<br>It compiles correctly.<br>If I run the execution is immediately stopped after the compilation.<br><br>Andrea<br><br><br><div class="gmail_quote">On Mon, Mar 3, 2008 at 11:03 PM, Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de">nc-gaertnma@netcologne.de</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Mon, 03 Mar 2008 11:42:53 +0100<br>
<div class="Ih2E3d">Andrea Mauri <<a href="mailto:andrea.mauri.75@gmail.com">andrea.mauri.75@gmail.com</a>> wrote:<br>
<br>
</div>> Under GTK2 I still have problems.<br>
> Lazarus svn FPC 2.2, Ubuntu.<br>
> The TOpenGLControl is compiled and installed in the GTK2 Lazarus IDE.<br>
> I can put a TOpenGLControl on a form but when I run the project it is<br>
> compiled (see compiler messages below), but the execution is<br>
> immediately stopped, I can't see the form with the TOpenGLControl<br>
> running. It could be a problem due to some missing Linux libraries?<br>
> andrea<br>
<br>
If the example runs, then the problem is in your code.<br>
<br>
<br>
Mattias<br>
<br>
<br>
><br>
> compiler messages:<br>
><br>
> Hint: Start of reading config file /etc/fpc.cfg<br>
> Hint: End of reading config file /etc/fpc.cfg<br>
> Warning: You are using the obsolete switch -OG<br>
> Free Pascal Compiler version 2.2.0 [2007/08/30] for i386<br>
> Copyright (c) 1993-2007 by Florian Klaempfl<br>
> Target OS: Linux for i386<br>
> Compiling /home/giacca/lazarus_projects/tmp/project1.lpr<br>
> Compiling unit1.pas<br>
> Linking /home/giacca/lazarus_projects/tmp/project1<br>
> 57 lines compiled, 14.4 sec<br>
> 1 warning(s) issued<br>
> 2 hint(s) issued<br>
> Project "project1" successfully built. :)<br>
><br>
> Mattias Gaertner ha scritto:<br>
> > On Fri, 29 Feb 2008 16:41:58 +0100<br>
<div class="Ih2E3d">> > Andrea Mauri <<a href="mailto:andrea.mauri.75@gmail.com">andrea.mauri.75@gmail.com</a>> wrote:<br>
> ><br>
> ><br>
</div>> >>> It works here under gtk2.<br>
> >>><br>
> >>><br>
> >> I am not able to use TOpenGLControl on GTK2, I can place it on a<br>
> >> form, I can compile it but it doesn't run. After pressing F9 the<br>
> >> project is compiled successfully then launched and immediately the<br>
> >> "Execution Stopped" message is showed up.<br>
> >> I have also seen in the OpenGLContext unit these lines:<br>
> >> [...]<br>
> >>   Author: Mattias Gaertner<br>
> >><br>
> >>   Abstract:<br>
> >>     TOpenGLControl is a LCL control with an opengl context.<br>
> >>     It works under the following platforms:<br>
> >>       - gtk with glx    : full<br>
> >> *      - gtk2 with glx   : started, not yet working*<br>
> >>       - carbon with agl : full<br>
> >>       - windows with wgl: full<br>
> >> }<br>
> >><br>
> ><br>
> > I changed this to full.<br>
> ><br>
> ><br>
> ><br>
> >>> I know of a refresh problem when maximizing, but otherwise it<br>
> >>> should work. What problems do you have?<br>
> >>><br>
> >> When I put a TOpenGLControl on a form (windows) I obtain this:<br>
> >><br>
> ><br>
> > What lazarus version are you using? 32 or 64 bit? What fpc version?<br>
> > Can you try the svn version or at least the daily snapshot?<br>
> > I didn't try the control under windows recently, so maybe some win32<br>
> > devel broke it unknowingly. I will try to find a windows machine to<br>
> > test.<br>
> ><br>
> ><br>
> ><br>
> >> And this when I run my project:<br>
> >><br>
> >> I didn't see the same behaviour using GTK, using GTK it seems to<br>
> >> work properly.<br>
> >><br>
> ><br>
> > You need a recent lazarus 0.9.25 version to use the openglcontrol<br>
> > under gtk2.<br>
<div><div></div><div class="Wj3C7c">> ><br>
> ><br>
> > Mattias<br>
> > _______________________________________________<br>
> > Lazarus mailing list<br>
> > <a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
> > <a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
> ><br>
> ><br>
><br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br>