compiling win32 - An idiots how to please !

These are old archives. They are kept for historic purposes only.
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

compiling win32 - An idiots how to please !

Post 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.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

libcmt.lib should come with VS, if it didn't, then there really isn't anything I can do to help you.
-- codemastr
Syzop
UnrealIRCd head coder
Posts: 2121
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

[offtopic posts removed.. plz no holy wars ;pp]
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

Post 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 ?
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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.
-- codemastr
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

Post 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*
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

Post 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 ?
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

It must be the same version of Unreal they were compiled for.
-- codemastr
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

Post 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 ? .
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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.
-- codemastr
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

Post by Solutech »

Oh well best leave it alone then lol . Im off to /elmer my users :twisted:
AneX
Posts: 5
Joined: Fri Jul 09, 2004 12:11 am

Post 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'
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post 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.
-- codemastr
AneX
Posts: 5
Joined: Fri Jul 09, 2004 12:11 am

Post by AneX »

ok thanks yea, all i needed is a reboot. What file do i edit for port and stuff?
Solutech
Posts: 296
Joined: Thu Mar 18, 2004 11:38 pm

Post by Solutech »

by port n stuff are you referring to the unrealircd.conf . If so use the example.conf in the docs directory.
Post Reply