stride icon indicating copy to clipboard operation
stride copied to clipboard

Linux build does not include necessary library (freetype)

Open YerkoAndrei opened this issue 1 year ago • 1 comments

Release Type: Official Release

Version: 4.2.0.2149

Platform(s): Linux

Describe the bug When publish a game for linux, it does not generate the freetype library, resulting in a unplayable build.

To Reproduce Steps to reproduce the behavior:

  1. Create project including linux platform
  2. Publish on linux

Expected behavior freetype.so should appear in publish folder so the linux executable can use it.

Log and callstacks LinuxTerminal.txt

Additional context freetype.dll is equally necessary on windows, if you remove and execute the game it gives th same error. Adding windows generated freetype.dll to the folder does nothing Modifying the publish profile (SelfContained or PublishSingleFile) does nothing.

Im new to linux so i may be wrong on the reason of why the build fails. I just came to this conclusion when i realised that the error in the terminal was the same when i deleted the same dll on a windows build to test if it was used (i dont really know what it does).

YerkoAndrei avatar Jun 04 '24 20:06 YerkoAndrei

Actually, to launch the game on Linux, you need to install a couple of packages listed here : https://doc.stride3d.net/latest/en/manual/platforms/linux/setup-and-requirements.html?tabs=freetype-ubuntu%2Copenal-ubuntu%2Csdl2-ubuntu The engine will try to load them from the /usr/lib folder, so this is expected behavior. If it comes to practicality from the client side, thats the different story🤔

Jklawreszuk avatar Aug 19 '24 19:08 Jklawreszuk