Solution: PNG icons not included in source

Development of XChat itself. Talk about code, patches and other technical stuff. No feature requests!
Formal bug reports should go to instead.
This forum is for developers writing xchat code, not end-user questions.

Solution: PNG icons

Postby Mortal » 03 Jan 2007 13:01

Mortal wrote:Hi all.

When I'm compiling Xchat with GTK I get errors that some icon variables are undefined:
pixmaps.c: In function ‘pixmaps_init’:
pixmaps.c:103: error: ‘bookpng’ undeclared (first use in this function)
pixmaps.c:103: error: (Each undeclared identifier is reported only once
pixmaps.c:103: error: for each function it appears in.)
pixmaps.c:104: error: ‘xchatpng’ undeclared (first use in this function)
pixmaps.c:107: error: ‘hoppng’ undeclared (first use in this function)
pixmaps.c:108: error: ‘purplepng’ undeclared (first use in this function)
pixmaps.c:109: error: ‘redpng’ undeclared (first use in this function)
pixmaps.c:110: error: ‘oppng’ undeclared (first use in this function)
pixmaps.c:111: error: ‘voicepng’ undeclared (first use in this function)
pixmaps.c:114: error: ‘traymsgpng’ undeclared (first use in this function)
pixmaps.c:115: error: ‘trayhilightpng’ undeclared (first use in this function)
pixmaps.c:116: error: ‘trayfilepng’ undeclared (first use in this function)

Previously, I've just commented out the function body - however, that disables the op/voice icons in the userlist. Where can I download these png files? Where do I put them? I certainly don't hope I'll have to make them myself - I'm not the best artist ever ;) (and by the way, I like the icons I've seen in the Windows-version)

I've found the solution myself - however, I think the topic should stay, if anyone else has this problem.

I moved ./src/pixmaps/*.png and ./xchat.png into /usr/local/share/xchat (the value of XCHATSHAREDIR) and changed LOADPIX to LOADPIX_DISKONLY in pixmaps_init in pixmaps.c and the two first lines in the function to these:
LOADPIX_DISKONLY (pix_book, "xchat"EXT);
LOADPIX_DISKONLY (pix_xchat, "xchat"EXT);
Hope it can help anyone.[/u]
Posts: 1
Joined: 03 Jan 2007 12:56

Postby Khisanth » 03 Jan 2007 14:19

You should be able to just go into src/pixmaps and run make. The problem seems to crop up randomly, one possible cause is that the people having the problem is missing the gdk-pixbuf-csource program.
Posts: 1724
Joined: 10 Jun 2004 05:23

Postby peterz » 03 Jan 2007 14:26

It is a puzzle, because gdk-pixbuf-csource is checked during ./configure and shouldn't allow you to continue without it. Anyway, there is no bug or problem.
User avatar
Posts: 1035
Joined: 09 Jun 2004 13:51
Location: Australia

Postby cracker » 11 Dec 2007 22:55

I'm encountering this exact problem trying to compile XChat 2.8.2 on Ubuntu Edgy 6.10. I installed gdk-pixbuf-csource, and I tried going into src/pixmaps and running make, but make says there's nothing to be done. I investigated further, and I assume it has something to do with inline_pngs.h being empty. What should this file contain in order to compile properly, or what should I do?
Posts: 1
Joined: 11 Dec 2007 22:50

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest