Hi John,

> wxLua does not have switches "--with-libpng" are you talking about
> building the wxWidgets library?

yes; my apologies this wasn't clear.

>> I ended up patching the makefile
>> (luamodule/CMakeFiles/wxLuaModules.dir/link.txt), but would prefer
>> something a bit more robust.
>
> This is not a good idea.

I agree; it wasn't my preference.

> to fix it by using the system libs. Hint: don't specify --with-libpng
> at all and last few lines of the output of configure tells you what
> will be used. Don't forget to clean or preferably delete the old

I'll try that, but I wanted to be explicit in my file that I want to
use the system library.

>>> force) to exclude wxpng from the link command, but failed. Ideally
>>> wxlua should somehow check if the library is configured as "builtin"
>>> or "sys", but for now I just need to check if this is going to work
>
> Check what and from whom?

> http://wxlua.sourceforge.net/docs/install.html#C2.5

Check that wxpng-* library should not be linked into wx.so. I did read
the documentation, but I missed a warning in the ./configure output
that indicated that "system png library will not be used without
system zlib" and as the result wxwidgets was using system png library,
so I was fighting against that.

Thank you John for clarifying this. I'm rebuilding with (more)
appropriate settings...

Paul.

On Mon, Mar 18, 2013 at 3:28 PM, John Labenski <jlaben...@gmail.com> wrote:
> On Mon, Mar 18, 2013 at 1:55 AM, Paul K <paulclin...@yahoo.com> wrote:
>> Hi John,
>>
>> I ended up patching the makefile
>> (luamodule/CMakeFiles/wxLuaModules.dir/link.txt), but would prefer
>> something a bit more robust.
>
> This is not a good idea.
>
>> On Sun, Mar 17, 2013 at 9:58 AM, Paul K <paulclin...@yahoo.com> wrote:
>>> Hi John,
>>>
>>> I ran into an issue with configuring wxlua to use system libpng
>>> library. I tried both --with-libpng=builtin and --with-libpng=sys, but
>>> I get exactly the same result.
>
> wxLua does not have switches "--with-libpng" are you talking about
> building the wxWidgets library?
>
>>> This discussion
>>> (https://groups.google.com/forum/?fromgroups=#!topic/wx-users/2QWQD0qUVUc)
>>> indicates that it's better to use a system library, but I can't
>
> Yes, it nearly always is best to use the system libraries for such
> basic libs (zlib, png, tiff, jpeg, and gtk).
>
> Reread that thread, it explains exactly what your problem is and how
> to fix it by using the system libs. Hint: don't specify --with-libpng
> at all and last few lines of the output of configure tells you what
> will be used. Don't forget to clean or preferably delete the old
> wxWidgets build dir to be sure that you're getting what you think
> you're getting.
>
>>> configure wxlua to *not* link builtin library as can be see from this
>>> output from cmake:
>>>
>>> -- * - wxWidgets_LIBRARIES         =
>>> -L/home/paul/zbs/build/deps/lib;-pthread;;;/home/paul/zbs/build/deps/lib
>>> /libwx_gtk2u_stc-2.9.a;/home/paul/zbs/build/deps/lib/libwx_gtk2u_aui-2.9.a;/home/paul/zbs/build/deps/lib
>>> /libwx_baseu_net-2.9.a;/home/paul/zbs/build/deps/lib/libwx_gtk2u_html-2.9.a;/home/paul/zbs/build/deps/lib
>>> /libwx_gtk2u_adv-2.9.a;/home/paul/zbs/build/deps/lib/libwx_gtk2u_core-2.9.a;/home/paul/zbs/build/deps/lib
>>> /libwx_baseu-2.9.a;-lwxscintilla-2.9;-pthread;-lgthread-2.0;-lrt;-lX11;-lXxf86vm;-lgtk-x11-2.0;-lgdk-x11-2.0;-latk-
>>> 1.0;-lgio-2.0;-lpangoft2-1.0;-lpangocairo-1.0;-lgdk_pixbuf-2.0;-lcairo;-lpango-1.0;-lfreetype;-lfontconfig;-lgobject-
>>> 2.0;-lglib-2.0;-lwxregexu-2.9;-lwxjpeg-2.9;-lwxpng-2.9;-lwxzlib-2.9;-ldl;-lm
>>>
>>> (note the last last that includes -lwxpng-2.9). I tried (using brute
>>> force) to exclude wxpng from the link command, but failed. Ideally
>>> wxlua should somehow check if the library is configured as "builtin"
>>> or "sys", but for now I just need to check if this is going to work
>
> Check what and from whom?
>
>>> for me, so, I'm fine with modifying it manually. I need to exclude
>>> libpng as it creates problems with systems libraries required by GTK
>>> on Linux.
>>>
>>> What is the way for me to tell wxlua *not* to include wxpng-2.9? Thank you.
>
> wxLua links to whatever libraries that wxWidgets was linked to. Please
> see the docs below and run the appropriate "wx-config" command to
> understand how your wxWidgets libs were built and where the values in
> wxWidgets_LIBRARIES come from.
>
> http://wxlua.sourceforge.net/docs/install.html#C2.5
>
> As I have mentioned before and as people on the Lua mailing explained
> recently (though not definitively enough) you cannot just link
> together random versions or builds of libraries together. For example,
> if you want to use the system png library then everything your app
> (wx.so) links to must have been built against that same lib. It is a
> recipe for disaster to try mix versions. It may work, but you should
> have no expectation that it should or will the next time you build it.
> The problem with using another random version/build of a png lib (for
> example) on Linux is that GTK will definitely be linked to the sys
> version and GTK cannot be easily (or maybe ever) be linked to
> staticly.
>
> Regards,
>      John
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> wxlua-users mailing list
> wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to