Page 1 of 2

compiling win32 - An idiots how to please !

Posted: Tue Jul 06, 2004 10:52 am
by Solutech
Right here goes . Unreal 3.2.1 now has module support and I need to compile to make the things work. Heres my problem.

I know nothing about c++ or compiling .

I have downloaded the pdsk toolkits and even vis studio 2005 beta .

It will not work . I do as it says in the instructions and it errors out.

What I need is someone to take pity here and give me some plain english answers.

I download the source and extract it . in my case to y:\unreal

I then bring up visual studio command prompt

I type Y:

cd Unreal

Then nmake -f makefile.win32

ok so far so good nmake starts doing its thing . Then it throws up errors about missing files libcmt.lib and such like.

I really am having trouble here . Like I said I know jack about c++ or compiling . If Im doing something wrong then feel free to call me for it . All I ask is you tell me what I did wrong and how to fix it in plain english.

Posted: Tue Jul 06, 2004 4:44 pm
by codemastr
libcmt.lib should come with VS, if it didn't, then there really isn't anything I can do to help you.

Posted: Wed Jul 07, 2004 1:30 am
by Syzop
[offtopic posts removed.. plz no holy wars ;pp]

Posted: Thu Jul 08, 2004 5:16 pm
by Solutech
Right I have removed all the sdks and toolkits etc I installed. I now have a load of Visual C++ 6.0 only installed .

I go to the command prompt and got to the unreal directory and type in

vcvars32
nmake -f makefile.win32 . Nmakes starts to churn through the files .

first error msg is this

src/win32/config.c(77) : Warning C4715 : 'main' : not all control paths return a value

nmake still keeps processing at this point and continues until it stops with this error

src/support.c (2327) : error C2065 : 'WSASYSCALLFAILURE' : undeclared identifier
src/support.c (2327) : error C2099 : initialiser is not a constant
src/support.c (2327) : warning C4047 : 'initialising' : 'int' differs in levels of indirection from 'unsigned char [20]'
NMAKE : Fatal Error U1077 : 'cl' : return code '0X2'
STOP

Soooooo what did I do wrong ?

Posted: Thu Jul 08, 2004 6:03 pm
by codemastr
The reason we say the PSDK is required is because it is!

That error is because the PSDK included with VC6 does not support that, you need to upgrade it.

Posted: Thu Jul 08, 2004 6:34 pm
by Solutech
ok Im downloading it now . :D


*edit* Woohoo! it worked *dances* thanks a lot ! Im off to compile some modules :D *edit ends*

Posted: Thu Jul 08, 2004 11:36 pm
by Solutech
right now I have compiled unreal and some modules I got from Angrywolfs site .

Am I right in thinking I can put those into any unreal build and comment them into the .conf ? or would I have to put them into the version I compiled ?

Posted: Fri Jul 09, 2004 3:37 am
by codemastr
It must be the same version of Unreal they were compiled for.

Posted: Fri Jul 09, 2004 6:49 am
by Solutech
Ok cheers for that . I had a feeling that was the case . Thanks for sticking with me through this . On another note now I have got this all compiled Im presuming that I can strip out some of the directories as they are not needed now it is compiled. If so which ones can be removed ? .

Posted: Fri Jul 09, 2004 4:49 pm
by codemastr
Well, assuming you copy all the dlls to somewhere else (like modules/) you can delete the src/ directory and the include/ directory. But remember, if you ever decide you want to compile another module, you'll need those.

Posted: Fri Jul 09, 2004 4:56 pm
by Solutech
Oh well best leave it alone then lol . Im off to /elmer my users :twisted:

Posted: Fri Jul 09, 2004 5:28 pm
by AneX
i got this error but i have the hole sdk installed.



src/win32/config.c(77) : Warning C4715 : 'main' : not all control paths return a value

nmake still keeps processing at this point and continues until it stops with this error

src/support.c (2327) : error C2065 : 'WSASYSCALLFAILURE' : undeclared identifier
src/support.c (2327) : error C2099 : initialiser is not a constant
src/support.c (2327) : warning C4047 : 'initialising' : 'int' differs in levels of indirection from 'unsigned char [20]'
NMAKE : Fatal Error U1077 : 'cl' : return code '0X2'

Posted: Fri Jul 09, 2004 5:43 pm
by codemastr
Did you run the "register environment variables" option when you installed the PSDK? And if you did, you need to reboot for the settings to take effect.

Posted: Fri Jul 09, 2004 6:07 pm
by AneX
ok thanks yea, all i needed is a reboot. What file do i edit for port and stuff?

Posted: Fri Jul 09, 2004 6:18 pm
by Solutech
by port n stuff are you referring to the unrealircd.conf . If so use the example.conf in the docs directory.