Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: tcFan on December 19, 2017, 04:26:43 PM

Title: libPNG not found
Post by: tcFan on December 19, 2017, 04:26:43 PM
Hello,

please advise on the following problem:

Compiled an app with SDL2 but when running it, libpng.so.3 wasn't there.

- Tried all versions provided, including the old ones. (16, 15, 12)
- Tried symlinking a manually created libpng.so.3, to point to libpng16.so.
- Research suggests 2 possible solutions:
  1) if I were using a 64 bit version to run a 32 bit code (which I'm not), then install the 32 bit;
  2) I ought to install libpng3, which isn't in the repo so will try manually downloading it next.

Any suggestion is appreciated.

Regards.
Title: Re: libPNG not found
Post by: Juanito on December 19, 2017, 08:49:20 PM
What architecture of tinycore are you using (x86, x86_64, armv6, armv7) and what version?
Title: Re: libPNG not found
Post by: tcFan on December 26, 2017, 08:40:27 AM
hi

Code: [Select]
$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux

the version I think is 8.0? couple releases back.. how do I confirm?

Tested a hypothesis that the experiments with different PNG versions could be the culprit, by checking ldd on the executable and, sure enough, it was linking to libpng12.. I rebooted and tried loading only 16 and it is now linking to that but still same complaint (libpng, png-bin and dev, are all loaded).

As an aside, though I don't think this is causing any problems (yet) is ldd now suggests a similar problem with SDL2, since it is linking to sdl1.2. However I cannot resolve this the same way, because the program needs SDL_Image, which is bundled together with all the other ones in SDL1.2.
Title: Re: libPNG not found
Post by: coreplayer2 on December 26, 2017, 02:36:15 PM
hi

Code: [Select]
$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux

the version I think is 8.0? couple releases back.. how do I confirm?
Enter at the terminal
Code: [Select]
version
Title: Re: libPNG not found
Post by: Juanito on December 27, 2017, 11:27:37 PM
However I cannot resolve this the same way, because the program needs SDL_Image, which is bundled together with all the other ones in SDL1.2.

You can compile SDL_Image 2.0 for x86 or use the sdl2_image extension in x86_64.

Which sdl app are you trying to compile?
Title: Re: libPNG not found
Post by: Juanito on December 28, 2017, 03:12:30 AM
sdl2_image posted to x86 repo