WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libPNG not found  (Read 2574 times)

Offline tcFan

  • Newbie
  • *
  • Posts: 36
libPNG not found
« on: December 19, 2017, 07: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libPNG not found
« Reply #1 on: December 19, 2017, 11:49:20 PM »
What architecture of tinycore are you using (x86, x86_64, armv6, armv7) and what version?

Offline tcFan

  • Newbie
  • *
  • Posts: 36
Re: libPNG not found
« Reply #2 on: December 26, 2017, 11: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.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: libPNG not found
« Reply #3 on: December 26, 2017, 05: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libPNG not found
« Reply #4 on: December 28, 2017, 02:27:37 AM »
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?
« Last Edit: December 28, 2017, 05:18:07 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libPNG not found
« Reply #5 on: December 28, 2017, 06:12:30 AM »
sdl2_image posted to x86 repo