Tiny Core Extensions > TCE Bugs
libPNG not found
tcFan:
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.
Juanito:
What architecture of tinycore are you using (x86, x86_64, armv6, armv7) and what version?
tcFan:
hi
--- Code: ---$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux
--- End code ---
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.
coreplayer2:
--- Quote from: tcFan on December 26, 2017, 08:40:27 AM ---hi
--- Code: ---$ uname -a
Linux box 4.8.17-tinycore #2017 SMP Sun Mar 5 15:49:22 UTC 2017 i686 GNU/Linux
--- End code ---
the version I think is 8.0? couple releases back.. how do I confirm?
--- End quote ---
Enter at the terminal
--- Code: ---version
--- End code ---
Juanito:
--- Quote from: tcFan on December 26, 2017, 08:40:27 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.
--- End quote ---
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?
Navigation
[0] Message Index
[#] Next page
Go to full version