[fpc-pascal] Re: Link libglx library.

Michalis Kamburelis michalis.kambi at gmail.com
Thu May 14 18:54:57 CEST 2009


I wrote:
> Note also your error message:
> 
> ./exbasic: symbol lookup error: /usr/local/lib/libagl.so: undefined
> symbol: glXQueryExtension
> 
> This says something strange, the linker for some reason is looking for
> glXQueryExtension inside libagl.so. 

Actually, re-reading this error message, it looks like libagl.so wants
to be linked with something that provides glXQueryExtension. Try to
compile with "-k-lGL".

If you don't fear to modify the FPC's sources, you can also try to
change rtl/unix/dynlibs.inc to pass RTLD_GLOBAL to dlopen call, then
recompile rtl and packages. Then the symbols from libGL (this includes
glX symbols) should be available to libagl.so too.

Hope this helps,
Michalis



More information about the fpc-pascal mailing list