Page 1 of 1

Compiling win32 . oh woe is me

Posted: Tue May 04, 2004 7:31 pm
by Solutech
Right first off I have done the following.

As stated I went to http://www.microsoft.com/msdownload/pla ... sdkupdate/

and downloaded and installed the core sdk .

Im running winxp so chose winxp 32bit debug as the environment .
changed the dir to z:\unreal\unreal3.2 where I downloaded the unreal.tar .

(question is here :is that the source code or am I thick?)

Type nmake -f makefile.win32

and get the error saying file nmake blah blah is not found

(The only way to do it is to use xp 54bit build environ)

With that I get this error

/out :config.exe
config.obj
acess denied

accompanied by a win error box config.exe is not a valid win32 ....

It then starts to compile and spews out files it has done until it gets to

win32gui.c
formal parameter 1 different from declaration

nmake :fatal error u1077 : 'cl' : return code '0x2'

so any ideas?

Posted: Wed May 05, 2004 2:59 am
by codemastr
What version of Visual C++ do you have?

Posted: Wed May 05, 2004 2:49 pm
by Solutech
Its the psdk downloaded from the microsoft addy . Dated Feb 2003 .

nmake does not appear to be included in any environment other than XP 64bit .

Posted: Thu May 06, 2004 2:52 am
by codemastr
Not what version of the platform SDK, the SDK is a bunch of libraries, header files, and documentation. I'm asking what version of Microsoft Visual C++ do you have? If all you downloaded was the Platform SDK, that's not a compiler, that's just libraries to along with the compiler. You need to get MSVC++. You can download a free copy of Visual C++ 7.1 (.NET 2003) from http://msdn.microsoft.com/visualc/vctoolkit2003/

Note that is the compiler *only* it does not include the IDE, just the necessary files to build a C++ program.

Posted: Thu May 06, 2004 11:08 am
by Solutech
Ok I have downloaded the toolkit as well and It does not have nmake in it . I have managed to download nmake v1.5 from microsoft and dropped that into the toolkit dir . so far so good . It now throws up a link : fatal error LNK1104 : cannot open file 'LIBCMTD.lib'
NMAKE : fatal erroe U1077: 'c:\windows\system32\cmd.exe' : return code '0x450' Stop.

Am I just better trying to get hold of Visual Studio ?

Posted: Thu May 06, 2004 1:39 pm
by aquanight
Solutech wrote:link : fatal error LNK1104 : cannot open file 'LIBCMTD.lib'
In order to use CL and LINK properly, you need to set two environment variables, INCLUDE and LIB. If you know how to set PATH these variables are the very similar. INCLUDE is like PATH but used for #include directives. It should include your INCLUDE folder in your VC installation. LIB is used by LINK to locate standard libraries like winbase.lib and libcmt.lib. It too is like PATH.
Solutech wrote:Am I just better trying to get hold of Visual Studio ?
Probably ;) . I got Visual Studio .NET 2003 from eBay for just over 100 bucks ;) .

Posted: Fri May 07, 2004 4:33 am
by codemastr
Getting visual studio isn't going to help you much at all. If you want to learn how to program, then yes, get it. If your goal is to compile Unreal and never touch it again, don't waste your money. You're going to wind up having to do the same stuff with VS.NET anyway. You still need environment variables set, and you still compile from the command line.

Also, I just downloaded that toolkit the other day, it had nmake.exe.

Posted: Fri May 07, 2004 1:40 pm
by aquanight
codemastr wrote:You're going to wind up having to do the same stuff with VS.NET anyway. You still need environment variables set, and you still compile from the command line.
VS.NET includes a batch file to set the variables for you (vcvars32.bat). Of course, you'll probably want to copy the resultant variables to your profile so you don't have to run it every time you open a command prompt ;) .

Posted: Fri May 07, 2004 5:50 pm
by codemastr
VS.NET doesn't use that file. That's for legacy support for a dual VS.NET VS6 environment. You should not use it. You should instead use one of the environment command prompts, the same ones that the free downloads give you.

Posted: Sat May 08, 2004 4:18 pm
by aquanight
codemastr wrote:That's for legacy support for a dual VS.NET VS6 environment.
It's also good if you find yourself in a normal command prompt, and all of the sudden you need to NMAKE something in a hurry.

Posted: Sun May 09, 2004 11:11 am
by null
I installed the Core SDK, and Visual C++ Toolkit 2003, and am unable to run nmake. Searching for *nmake* finds only "C:\Program Files\Microsoft SDK\Bin\Win64\nmake.exe" (this is for Windows 64-bit, right?)..

Code: Select all

C:\dev\Unreal3.2>nmake -f makefile.win32
'nmake' is not recognized as an internal or external command,
operable program or batch file.

C:\dev\Unreal3.2>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\w0g\Application Data
APPVER=5.01
Basemake=C:\Program Files\Microsoft SDK\Include\BKOffice.Mak
Bkoffice=C:\Program Files\Microsoft SDK\
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=LOCALHOST
ComSpec=C:\WINDOWS\system32\cmd.exe
CPU=i386
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\w0g
Include=C:\Program Files\Microsoft Visual C++ Toolkit 2003\include;C:\Program Files\Microsoft SDK\Include;
INETSDK=C:\Program Files\Microsoft SDK
Lib=C:\Program Files\Microsoft Visual C++ Toolkit 2003\lib;C:\Program Files\Microsoft SDK\Lib;
LOGONSERVER=\\LOCALHOST
MSSdk=C:\Program Files\Microsoft SDK
Mstools=C:\Program Files\Microsoft SDK
NODEBUG=1
NUMBER_OF_PROCESSORS=1
OPENSSL_CONF=C:\WINDOWS\OpenSSL\bin\openssl.cnf
OS=Windows_NT
Path=C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;C:\Program Files\Microsoft SDK\Bin;C:\Program Files\Microsof
t SDK\Bin\WinNT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Pa
nel
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 4 Stepping 2, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0402
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TARGETOS=WINNT
TEMP=C:\DOCUME~1\w0g\LOCALS~1\Temp
TMP=C:\DOCUME~1\w0g\LOCALS~1\Temp
USERDOMAIN=LOCALHOST
USERNAME=w0g
USERPROFILE=C:\Documents and Settings\w0g
VCToolkitInstallDir=C:\Program Files\Microsoft Visual C++ Toolkit 2003\
windir=C:\WINDOWS

C:\dev\Unreal3.2>
What should I do? Running Windows XP Professional SP1 32-bit.

Posted: Sun May 09, 2004 11:57 am
by null
k. According to all I found out from Googling, the Toolkit DOES NOT include nmake.. so, I guess I'm screwed.. ;_;

Posted: Mon May 10, 2004 11:17 am
by Solutech
You can download it from microsoft althought its not listed in the downloads. try googling for nmake.exe . Thats how I had to get it.