libagar icon indicating copy to clipboard operation
libagar copied to clipboard

Cannot run agartest or the hello.c example on Fedora Linux

Open bkeys opened this issue 2 years ago • 1 comments

I follow the tutorials here https://libagar.org/docs/inst/linux.html and when I build the example it mentions it gives me this error:

./hello: error while loading shared libraries: libag_gui.so.8: cannot open shared object file: No such file or directory

And I am unable to run agartest because I get a similar error saying it's not loading libag_math.so I am on Fedora Linux 38 right now. As a side note, would you be open to a CMake based build system?

bkeys avatar Oct 31 '23 01:10 bkeys

Can you check that /usr/local/lib exists in your /etc/ld.so.conf file? Then, run the command ldconfig to refresh your dynamic linker cache. For some reason, some Linux distributions need this.

Yes, it would be nice to offer some CMake build scripts (those could even be generated by BSDBuild), but I haven't had the time to look into it yet.

JulNadeauCA avatar Oct 31 '23 14:10 JulNadeauCA

This appears to be solved. Please feel free to reopen the issue if I missed anything. Regarding CMake, it is now available in the development sources and will be included in the 1.7.1 release.

JulNadeauCA avatar Apr 09 '24 22:04 JulNadeauCA