|
From: <tim...@en...> - 2006-06-18 02:47:14
|
Timoth=E9e Lecomte wrote: > Timoth=E9e Lecomte wrote: >> Ethan Merritt wrote: >> =20 >>> On Friday 16 June 2006 04:33 pm, you wrote: >>> =20 >>>> Ethan Merritt wrote: >>>> =20 >>>>> Procedure: >>>>> ./prepare >>>>> ./configure --readline=3Dgnu >>>>> make distclean >>>>> >>>>> Non-fatal error message during the "make check" part >>>>> ---------------------------------------------------- >>>>> Can't load PNG icon(s) of the toolbar. >>>>> =20 >>>> I can only solve that by using XPM files included at compile time. >>>> =20 >>> I don't see why that should be. Isn't it just a matter of setting=20 >>> an environmental variable >>> during the "make check" run so that the icons are picked up >>> from the build directory rather than their eventual install >>> directory? >>> That's what it does with GNUPLOT_DRIVER_DIR (to pick up gnuplot_x11). >>> =20 >> Oh yes, I forgot that option. I can do that. >> >> Timoth=E9e >> =20 > Hmm. It turns out not to be as easy as it seems. Well, with the help of the wxWidgets guys on IRC, I finally came up with=20 a very nice solution, which combines both simplicity, small executable=20 size, and no path nightmare : You can embed a PNG file in the source code after having converted to a=20 C array. Thus you profit from the compression of the PNG format=20 (compared to including XPM files) and you don't have to care about the=20 paths as the files are included at compile time. The size of the executable really does not change much : - before : 2785700 bytes - after : 2786862 bytes ... 1162 bytes, I think we can afford that instead of an ugly code to=20 retrieve the paths from different ways ... I will commit that soon. Timoth=E9e |