Page 1 of 1

Remove legacy libpng 1.4 files from submodule

Posted: Sat Jan 10, 2026 2:58 pm
by Lone_Wolf
When building oolite on linux against libpng 1.6.x one issue arises at runtime:

The submodule oolite-linux-dependencies has png.h & pngconf.h in its include folder .

Some parts of oolite use this file and request libpng 1.4.7 at runtime, making the menus unreadable.
Note that the linker correctly links to libpng 1.6 .

Removing those files before building solves the issue completely .

viewtopic.php?t=21909 has a lengthy discussion about these files.

Re: Remove legacy libpng 1.4 files from submodule

Posted: Sat Jan 10, 2026 7:57 pm
by mcarans
Lone_Wolf wrote: Sat Jan 10, 2026 2:58 pm
When building oolite on linux against libpng 1.6.x one issue arises at runtime:

The submodule oolite-linux-dependencies has png.h & pngconf.h in its include folder .

Some parts of oolite use this file and request libpng 1.4.7 at runtime, making the menus unreadable.
Note that the linker correctly links to libpng 1.6 .

Removing those files before building solves the issue completely .

viewtopic.php?t=21909 has a lengthy discussion about these files.
You are right. The modern build only uses the mozilla folder in there, so much of it is outdated.