<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#1b6acb" vlink="#2e3436"><div>OK, I'll have a trial with build depends on package libgl1.</div><div><span><pre>-- </pre><pre>Cheers,
Abou Al Montacir
</pre></span></div><div><br></div><div>On Wed, 2021-02-24 at 20:56 +0100, Michalis Kamburelis wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>tools/texture-font-to-pascal/texture-font-to-pascal_compile.sh calls</pre><pre><br></pre><pre>    castle-engine compile</pre><pre><br></pre><pre>The castle-engine is our command-line build tool. In theory it should</pre><pre>not depend on OpenGL, but in practice it does, just because it was</pre><pre>easier to make. Of course it doesn't open any OpenGL context, but it</pre><pre>requires that OpenGL library is present on the system (just like any</pre><pre>other GUI OpenGL application would require).</pre><pre><br></pre><pre>The error message means that it fails to open OpenGL at runtime, that</pre><pre>is dlopen('libGL.so.1', ...) fails (it is done inside FPC GL unit).</pre><pre><br></pre><pre>IOW, build-dependencies of CGE must require an OpenGL installed. (No</pre><pre>need for any libxxx-dev packages in case of OpenGL, we open it using</pre><pre>dlopen, but the OpenGL library 'libGL.so.1' must be available, as for</pre><pre>any other OpenGL-using application.) I'm not sure what is the best way</pre><pre>to declare it in Debian, but any other OpenGL application may serve as</pre><pre>example I guess (e.g. extremetuxracer depends on libgl1).</pre><pre><br></pre><pre>As for version: CGE works with basically any OpenGL version, using</pre><pre>various OpenGL 2 or 3 features if available, but also supports even</pre><pre>OpenGL 1.2 for ancient GPUs. On Linux, as far as I know, the</pre><pre>'libGL.so.1' is traditionally the main OpenGL library which everybody</pre><pre>opens, and then you access proper OpenGL API based on</pre><pre>"glGetString(GL_VERSION)" information we get at runtime.</pre><pre><br></pre><pre>Regards,</pre><pre>Michalis</pre><pre><br></pre><pre><br></pre><pre>wt., 23 lut 2021 o 23:54 Abou Al Montacir <</pre><a href="mailto:abou.almontacir@sfr.fr"><pre>abou.almontacir@sfr.fr</pre></a><pre>> napisaƂ(a):</pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre><br></pre><pre>I'm trying to build CGE 7.0-alpha for experimental and hit the following issues:</pre><pre><br></pre><pre>Compiling tools/build-tool/code/toolios.pas</pre><pre><br></pre><pre>Compiling tools/build-tool/code/tooliospbxgeneration.pas</pre><pre><br></pre><pre>Compiling tools/build-tool/code/toolandroidmerging.pas</pre><pre><br></pre><pre>Compiling tools/build-tool/code/toolnintendoswitch.pas</pre><pre><br></pre><pre>Compiling tools/build-tool/code/toolmacros.pas</pre><pre><br></pre><pre>Compiling tools/build-tool/code/toolpackagecollectfiles.pas</pre><pre><br></pre><pre>Linking tools/build-tool/castle-engine</pre><pre><br></pre><pre>723852 lines compiled, 21.5 sec</pre><pre><br></pre><pre>tools/texture-font-to-pascal/texture-font-to-pascal_compile.sh</pre><pre><br></pre><pre>An unhandled exception occurred at $00000000008AC60B:</pre><pre><br></pre><pre>Exception: Could not load OpenGL from libGL.so.1</pre><pre><br></pre><pre>  $00000000008AC60B</pre><pre><br></pre><pre><br></pre><pre>There are no additional information.</pre><pre>Can that be because build should depends on a specific OpenGL version?</pre><pre><br></pre><pre>--</pre><pre><br></pre><pre>Cheers,</pre><pre>Abou Al Montacir</pre><pre><br></pre><pre>_______________________________________________</pre><pre>Pkg-pascal-devel mailing list</pre><a href="mailto:Pkg-pascal-devel@alioth-lists.debian.net"><pre>Pkg-pascal-devel@alioth-lists.debian.net</pre></a><pre><br></pre><a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-pascal-devel"><pre>https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-pascal-devel</pre></a><pre><br></pre></blockquote><pre><br></pre><pre>_______________________________________________</pre><pre>Pkg-pascal-devel mailing list</pre><a href="mailto:Pkg-pascal-devel@alioth-lists.debian.net"><pre>Pkg-pascal-devel@alioth-lists.debian.net</pre></a><pre><br></pre><a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-pascal-devel"><pre>https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-pascal-devel</pre></a><pre><br></pre></blockquote></body></html>