|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » libpng on linux
|
Re: libpng on linux [message #48211 is a reply to message #48209] |
Tue, 06 June 2017 06:45   |
|
Hi Luigi,
forlano wrote on Mon, 05 June 2017 21:53The question is: can I solve my problem putting the source code of the new libpng16 within the folder
/upp/uppsrc/plugin/png/lib and compile it?
Are there problems with the current plugin for this library?
Short answer: No, upgrading the plugin won't help.
Long answer: plugin/png is only used on windows. On other platforms it is linked against the libpng installed in the system. So if you want to support clients with newer libpng, you need to upgrade the system on which you build your binaries.
Alternatively, you can use flag STATIC_PNG. This will force the plugin/png to use the contained sources and link them statically. So it will use the older version (1.2.57), but there will be no runtime dependence on libpng and the binary should run anywhere, regardless of the version of libpng the client has installed.
Best regards,
Honza
|
|
|
|
Re: libpng on linux [message #48226 is a reply to message #48225] |
Tue, 06 June 2017 18:41   |
|
forlano wrote on Tue, 06 June 2017 18:08The flag option is fine and perhaps the best.
I just wonder if it must be set in the header field of theide (where I have already GUI NOGTK flags) or via the package organize and where exactly.
Yes, you can just put it in the "mainconfig" (not sure what the official name is, this is just how it is called in .upp files ), together with GUI and NOGTK flags.
Honza
|
|
|
|
Re: libpng on linux [message #48292 is a reply to message #48231] |
Thu, 15 June 2017 21:41   |
|
Hi Luigi,
Sorry for late reply, I didn't have time to test it until today.
forlano wrote on Wed, 07 June 2017 18:10The esperiment failed. STATIC_PNG missed to link statically libpng12.
How did you test this? I just tried to compile simple app with STATIC_PNG and it seems to work. There is no -lpng in the linker command and readelf -d my_test_app | grep NEEDED doesn't show libpng at all. Also, objdump -x my_test_app shows the png symbols in the executable. The only confusing thing is the output of ldd my_test_app, which still lists libpng, but I assume it is actually pulled in indirectly by another dependency. Have you actually tried to run the executable on some newer system?
forlano wrote on Wed, 07 June 2017 18:10I tried to install libpng16 and compile theide via makefile. Unfortunately the makefile complained for the missing libpng12. Not sure about that... If I remember correctly, the makefile should not mention specific version of the library, just "png". I use archlinux where libpng16 is the only version available and I actually never had a problem with it.
I'm afraid I don't have any more ideas how to solve your problem for now (if the problem still holds).
Best regards,
Honza
[Updated on: Thu, 15 June 2017 21:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Jun 10 03:57:39 CEST 2023
Total time taken to generate the page: 0.02245 seconds
|
|
|