Re: [Iup-users] error on IupImageLibOpen

2015-11-20 Thread Antonio Scuri
Hi, I think the solution is just change the ifdef to test for 3.9, since your version is 3.8. Thanks for the fix. Just committed to SVN. Best, Scuri On Thu, Nov 19, 2015 at 11:30 PM, Grieb wrote: > By the way, if you need any help in testing (because of the > specific environment) just

Re: [Iup-users] error on IupImageLibOpen

2015-11-19 Thread Grieb
By the way, if you need any help in testing (because of the specific environment) just tell me! I will be glad to help. On Thu, 19 Nov 2015 23:19:13 -0200 Grieb wrote: > OK, I spent some time on it to be sure I wasn't missing something... > and then I found something!!! ;) > > Not the final sol

Re: [Iup-users] error on IupImageLibOpen

2015-11-19 Thread Grieb
OK, I spent some time on it to be sure I wasn't missing something... and then I found something!!! ;) Not the final solution, but if I get the original iupgtk_image.c file (svn At revision 3453) and comment out lines 373 to 387 and 382 (remove the #if and let only the #else code) all works as expe

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Antonio Scuri
Ok. The problem is right there. Maybe you can try using debug symbols to identify the wrong calls. All you need to to is to rebuild the main IUP library but defining DBG=Yes before doing it. "make rebuild". Tecmake is just a GNU make script with several thing pre-defined. There is actual no in

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Grieb
Hi, Commented out the code and recompiled. Things changed a bit now! No crash/abort BUT no icons too! I'm using the tutorial example 3.5 as test. And I should see the icons in the toolbar, right? OFF-TOPIC: to compile iup in my environment I need to edit tecmake.mak and add -lncurses at line 1

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Antonio Scuri
That's not a typical libpng problem. I forgot about one thing, in GTK the IupImageLib uses the GTK stock images. Try commenting lines 460-466 of "iup/src/gtk/iupgtk_image.c". The Ubuntu versions I'm using are using GTK 2 or GTK >= 3.10. Since your GTK is 3.8 there could be the problem since

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Grieb
Just to add some info... libpng (mentioned by Scuri): 1.4.12 What I did: cd /tmp mkdir -p cd tar -xpvzf lua5_1_5_Sources.tar.gz tar -xpvzf im-3.10_Sources.tar.gz tar -xpvzf cd-5.9_Sources.tar.gz tar -xpvzf iup-3.16_Sources.tar.gz (I tried with svn version too) cd lua5.1/src make cd ../

Re: [Iup-users] error on IupImageLibOpen

2015-11-18 Thread Antonio Scuri
Hi, IupImageLib is harmless. Probably the problem is somewhere else. Depending on how the IM library was built and which GTK is installed, there could be a problem in libPNG used internally in GTK. But this problem does not depends on IupImageLib. Could be the IUP-IM lib? Best, Scuri On