|
|
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » The makefile of an export NOGTK project dropped an option -lpng
The makefile of an export NOGTK project dropped an option -lpng [message #29575] |
Mon, 01 November 2010 12:02  |
sevenjay
Messages: 30 Registered: October 2008 Location: Taiwan
|
Member |
|
|
The makefile dropped an option -lpng when theide exports a project with flag NOGTK.
(Build->Output mode->Export project)
When you make it will get lots of errors like "undefined reference to png_create_read_struct".
I Solve it by add an option -lpng in the Makefile.
I hope this is helpful.
|
|
|
Re: The makefile of an export NOGTK project dropped an option -lpng [message #29587 is a reply to message #29575] |
Tue, 02 November 2010 00:41   |
|
Hi Sevenjay,
Thanks for spotting this, it should be fixed now. It was caused by comparing unix style and windows style path, such a simple detail as \ vs. / makes a difference If M$ would follow the same conventions as the rest of us, none of this would happen
Funny thing is, that it didn't make any trouble in normal mode (without NOGTK), as libpng is pulled in by gtk. I guess that is one of the reasons nobody noticed that so far (the scarce usage of exported makefiles being the other reason).
Best regards,
Honza
|
|
|
|
|
|
Re: The makefile of an export NOGTK project dropped an option -lpng [message #29598 is a reply to message #29595] |
Tue, 02 November 2010 14:07   |
|
cbpporter wrote on Tue, 02 November 2010 12:02 | Question: why does linking with plugin/png not solve this problem? Why are we still relying on external .so?
|
Answer: plugin/png uses the libpng sources (plugin/png/lib/*) on win32, but on other systems, the native libpng.so is used (and only part of the plugin/png code is compiled, namely the U++ encapsulation)
I can only guess the reasons for this, but I agree with it. Libpng is available in default installation of most, if not all, Linux distributions, so there should be no problem with that.
Honza
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 22:00:54 CEST 2025
Total time taken to generate the page: 0.01168 seconds
|
|
|