windows compiling help

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

windows compiling he

Postby timber » 08 Dec 2004 13:07

I am having some problem compiling on windows. The first problem I am having is 'gdk-pixbuf-csource' is not recognized as an internal or external command, I tried everything I can think of. I seem a couple posts here but the actual answer was not given. So how exactly do I add gdk-pixbuf-csource to Path?
:?:
timber
 
Posts: 2
Joined: 08 Dec 2004 12:58

Postby crazymind » 14 Dec 2004 10:35

If you read the instruntions you wouldn't make that question.
Just read them.
crazymind
 
Posts: 2
Joined: 27 Oct 2004 22:03

Postby Mike » 14 Dec 2004 22:15

install.w32 contains all the information that you need, it is included with the xchat source code.
Image
Mike
 
Posts: 374
Joined: 10 Jun 2004 19:05

Postby timber » 24 Dec 2004 01:35

well i read the instructions and keep running into errors. I try to find where i am making my mistake and the only thign i can find is this

* gdk-pixbuf-csource must be in PATH.

because i am unsure how it is suppose to be set correctly in PATH. I just want to know exactly what I type in to make sure I got this part right
timber
 
Posts: 2
Joined: 08 Dec 2004 12:58

Postby Grinch » 11 Jan 2005 20:23

there's a mistake in INSTALL.w32
it has to be
- Under "User variables for <user>" append ";C:\devtools\bin" to the end of the PATH Variable

now that i registered and posted something, maybe you can help me with my problem ;). I'm trying to compile xchat 2.4.1 on VS.Net and did everything that was told me in the INSTALL.w32 file, but I'm getting the following errors:
Code: Select all
cl /G5 /O1 -Dstrcasecmp=stricmp -Dstrncasecmp=strnicmp /MD /nologo /DWIN32 /DG_DISABLE_CAST_CHECKS -If:/dev/include/glib-2.0 -If:/dev/lib/glib-2.0/include /c server.c
server.c
server.c(1252) : error C2065: 'source': nichtdeklarierter Bezeichner
server.c(1252) : warning C4047: 'Funktion': Anzahl der Dereferenzierungen bei 'GIOChannel *' und 'int' unterschiedlich
NMAKE : fatal error U1077: 'cl': R³ckgabe-Code '0x2'
Stop.

but it goes on compiling other files until:
Code: Select all
cl /G5 /O1 -Dstrcasecmp=stricmp -Dstrncasecmp=strnicmp /MD /nologo /DWIN32 /DG_DISABLE_CAST_CHECKS -If:/dev/include/glib-2.0 -If:/dev/lib/glib-2.0/include -If:/dev/include/gtk-2.0 -If:/dev/lib/gtk-2.0/include -If:/dev/include/atk-1.0 -If:/dev/include/pango-1.0 -If:/dev/include/glib-2.0-If:/dev/lib/glib-2.0/incl
ude /c xtext.c
xtext.c
NMAKE : fatal error U1073: '..\common\xchatcommon.lib' konnte nicht erstellt werden
Stop.

(sorry for german but i guess the error codes should be the same in every language and maybe someone had the same and can help me)
thanks in advance

found this:
http://hao2lian.f2o.org/wiki/pmwiki.php/Articles/XChat
and it compiles, but it crashes on close or connect (only first overview network screen works)
Grinch
 
Posts: 2
Joined: 11 Jan 2005 20:15

Postby Mike » 11 Jan 2005 21:39

C2065 - Undeclared Identifier
C4047 - Differs in levels of indirection
U1077 - NMake Fatal Error Exit code 2

NMake fails to compile the lib because it could not compile all of the source files which is why you get the

NMAKE : fatal error U1073: '..\common\xchatcommon.lib' konnte nicht erstellt werden
Stop.

Might be something missing from path causing it not to find the file where 'source' is defined
Image
Mike
 
Posts: 374
Joined: 10 Jun 2004 19:05

Postby Grinch » 12 Jan 2005 18:51

"source" is defined in that file, but not in that function. I changed it to sok like suggested in the link above, but sok is another variablestype and i think this is the cause why xchat crashes on "connect"

edit: just downloaded the latest server.c via cvs. compiles fine, but still crashes.. seems to be another problem.. i'll check that :)
Grinch
 
Posts: 2
Joined: 11 Jan 2005 20:15

Postby Pu7o » 25 Apr 2005 01:06

this is bumping a really old topic but hey, whatever, just to let others interested in the solution know:

gtk is linked to msvcrt.dll, so you cannot use a vc7, vc7.1 or vc8 compiler unless:

1. you change the msvcrt.lib in the lib directory of where you installed VS to the one in silverex's page

or

2. you use a gtk2 linked with the same compiler you are using (you can get one linked against vs7.1 here -> http://severna.homeip.net/gtk-win32.php )

or

3. Use another compiler, like MinGW.
Pu7o
 
Posts: 90
Joined: 31 Aug 2004 21:37


Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests