Trying to compile the SDK, getting an error though :(

Bezurn

Prince
Joined
Nov 23, 2005
Messages
587
I followed the directions very closely on How to Install the SDK wiki.

Downloaded the programs / files, moved them to directories, modified the makefile, created the project, set the compile options for the project

Then when I go to build the solution I get the following error.
NMAKE : fatal error U1073: don't know how to make '_precompile.cpp'

I went back to the wiki and retraced my steps, double checking that all of the things it asked me to do were correctly completed.

I get the same error when I attempt to run 'nmake /f Makefile Final_Release' in the command prompt that launches from MSVC++ 2008 Express Edition

Do I need to get a new version of MSVC++ 2008 or is there something more simple I am missing. I will post screenshots of my folders and settings options in a bit if that will assist in anyone helping me out.

Thanks in advance.
 
Are you trying to compile a standard BtS dll first? Try that first, make sure you can make a clean dll before moving on to altered source.

Download refar's guide itself:
http://forums.civfanatics.com/downloads.php?do=file&id=10018

As it's more visually engaging, it's probably easier to follow then the list of steps on the wiki page. Just ensure that you use the makefile on the wiki page instead of the one in Refar's download, as the 3.19 source needs the updated makefile.
 
Ok, I went ahead ans swapped the Makefile for the one on the Wiki, I glossed over that part twice I guess since I thought the one I got already would work.

Changed the directories to match my paths and went to compile again. Now I get the following error.

1>NMAKE : fatal error U1073: don't know how to make 'CvArea.cpp'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

I will go ahead and copy the BTS\CvGameCoreDLL files to a new working directory and step through the process from scratch. Here are images of what I have for my directories and configurations.

Spoiler :

MSVCpp_config01.jpg

MSVCpp_config02.jpg

MSVCpp_config03.jpg

MSVCpp_config04.jpg

 
That is odd. The message is correct; it is telling you (in an indirect way) that file CvArea.cpp is missing. Unless I have overlooked it in your screenshot, that is correct. Where did you get all these files, to have CvArea.cpp missing? If you are compiling a pure vanilla sdk, you should have this file. It is possible, maybe, that you have unpacked somebody else's zipfile (not pure vanilla), in which they have included only a subset of the files. In that case, unzip a pure vanilla one first, make sure that it contains CvArea.cpp, and compile the pure vanilla one. Only after that is working, then unzip whatever mod files you had and try those.
 
You don't even really need to unzip anything. Just copy the CvGameCoreDLL directory from the Beyond the Sword directory into another folder where you plan on doing your work.

Once you're able to rebuild the base game DLL, then you can start looking at modifying the code.
 
I see you're trying to compile LoR source first. Build a clean BtS dll, ensure you can do that, then move on to a modded gamecore (also the clean BtS dll will use the makefile on the wiki, when you add in LoR's source you will need to use the makefile LoR has in it's CvGameCoreDLL folder, as it has more source files that need to be included in the makefile). When you do compile the modded source, do so in a separate folder, don't do it from your SVN repository.
 
Ok thanks everyone I got the normal SDK project to work correctly. I didn't realize that your SVN files were only the modified ones and not all of the CPP / H files.
 
I didn't realize that your SVN files were only the modified ones and not all of the CPP / H files.

This is why I include all of the SDK files in BULL--even the ones I haven't modified. If anyone really cares exactly which were modified, they can use diff/WinMerge.
 
Back
Top Bottom