Compiling 1.1.4




To make balsa 1.1.3 and 1.1.4 compile I had to change the lines like 

#define new(args...) balsa_druid_page_directory_new(##args)

to 

#define new(args...) balsa_druid_page_directory_new(**args)

in balsa-druid-page-*.c

I dont know what I exactly changed since I havn't checked out the
complete source.. but it now works perfectly ..



I also had to edit src/print.c


static void            
gnome_print_show_with_charset(PrintInfo * pi, char const * text)
{       
/*      
    gchar *conv_ibuf, *conv_ibufp, *conv_obuf, *conv_obufp;
    size_t ibuflen, obuflen;
    g_return_if_fail(pi->conv_data != (iconv_t)(-1));
                 
 as iconv() changes all supplied pointers, we have to remember them...
    conv_ibuf = conv_ibufp = g_strdup (text);
    ibuflen = strlen(conv_ibuf) + 1;
    obuflen = ibuflen << 1;
 should be sufficient?

 it failed on this line: icompatible pointer type I think 
    conv_obuf = conv_obufp = g_malloc(obuflen);
    iconv(pi->conv_data, (const char **)&conv_ibuf, &ibuflen, &conv_obuf,
&obuflen);
    gnome_print_show(pi->pc, conv_obufp);
    g_free (conv_ibufp);
    g_free (conv_obufp);
*/      
}

well. now balsa 1.1.4 works for me ..

ps. I configured like this :

/configure --enable-gtkhtml

then 

make

(the errors + fixing the files like above)

make

make install

everything works now ..

except of course the function
gnome_print_show_with_charset()  (looks like I never use it anyway)



-- 
Philip van Hoof aka freax (http://www.freax.eu.org)
irc: irc.openprojects.net mailto:freax @ pandora.be





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]