Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started 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.
-
What architecture of tinycore are you using (x86, x86_64, armv6, armv7) and what version?
-
hi
$ 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.
-
hi
$ 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
version
-
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?
-
sdl2_image posted to x86 repo