Compiling the SDK Issues

That is very odd. The Access Denied certainly seems to be a path issue which Visual Studio is interpreting as the folder not existing. Try running VS as admin to see if you get a different error.

As for nmake not knowing how to build CvArea.cpp, where are you running nmake from? Are you in the folder that has makefile and CvArea.cpp? It's acting like it cannot find CvArea.cpp and is thus trying to build it. Since there's no target for it, it gives you that error.
 
Which same error? The old "file Final_Release not found" or the newer "don't know how to build CvArea.cpp" one?
 
Try this from the command line:

nmake Final_Release/FAssert.obj​

It will probably say that it doesn't know how to build FAssert.cpp.

How do you have your directory structure laid out? You don't have to list out every source file, but say where the source files are in relation to the project, makefile, PSDK, VC++ toolkit, etc.
 
You were right, it gave me the same CvArea.cpp error only it was FAssert.cpp Now I get to show just how much of a noob I am. By directory structure, you mean the C:\yadayadayada right? If you do I have all of the sources files in C:\Users\Michael\Desktop\Mine\MyMod SDKs\BTS SDK, I copied them out to put them in the GameCoreDLL folder as the instructions said to.
 
That's what I mean, but I need more detail than that. Here's my layout:

Code:
[B]C:\Coding\Civ\SDK\[/B]
  [B]CvGameCoreDLL\[/B]
    *.cpp
    *.h
    Makefile
    CvGameCoreDLL.rc
    CvGameCoreDLL.vcproj
    [B]Debug\[/B]
    [B]Final_Release\[/B]    [I](your directory here is probably empty)[/I]
      *.obj
      CvGameCoreDLL.dll
      CvGameCoreDLL.exp
      CvGameCoreDLL.lib
 
Use the Windows Explorer so you can look at the files on your system. Navigate to the folder you wrote above and then look at the files in it. The other option is to use the command-line, but that's not as easy if you're not already familiar with it.

The Folders View (if it's available in Vista) in the Windows Explorer will help with the layout.
 
Ok, following it from C:\ to Final_Release it looks like this:

Spoiler :
C:\Users\Michael\Desktop\Mine\MyMod SDKs\

CvGameCoreDLL\
CvGameCoreDLL.ncb
CvGameCoreDLL.sln
CvGameCoreDLL.vcproj
CvGameCoreDLL.vcproj.Michael-PC.Michael.user
readme.txt

Debug\
BuildLog.htm

Final_Release\
BuildLog.htm


again thank you for bearing with me on this
 
I don't see the most important files: the Makefile, the source (*.cpp) files, and header (*.h) files. For example, where are CvArea.cpp and CvArea.h?

BTW, I'm glad to help. I've noticed more people getting into SDK modding lately, and it can be very difficult to start out.
 
They are in the BTS SDK folder that is a "sibling" of the CvGameCoreDLL folder. Is that what my problem is? I don't have them in the CvGameCoreDLL folder?

Note: Well, if I actually do get a Mod posted you damn sure are getting credit even if I don't use anything you made
 
Correct, the *.cpp, *.h, and Makefile files all must be in the CvGameCoreDLL folder that contains the CvGameCoreDLL.vcproj file. I modified my posting above to match your folder name to better illustrate where things need to go.
 
So I tried to build the project after moving all the .cpp and .h and the boost folder and the python24 folder and now it is giving me a crazy error.

Spoiler :
1> "C:\Program File (x86)\Microsoft Visual Studio 9.0\vc\bin/bin/cl.exe" /nologo /MD /Gd /G7 /GR /02 /W3 /EHsc /DWIN32 /DNDEBUG /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /DFINAL_RELEASE /IBoost-1.32.0/include /IPython24/include /I"C:\Program File (x86)\Microsoft Visual Studio 9.0\vc\bin/include" /I"C:\Program Files (x86)/Include" /c CvArea.cpp /FoFinal_Release/CvArea.obj
1>'C:\Program' is not recognized as an internal or external command,
1>operable program or batch file.
1>NMAKE : fatal error U1077: '"C:\Program File (x86)\Microsoft Visual Studio 9.0\vc\bin/bin/cl.exe' : return code '0x1'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"


and it put another BuildLog in CvGameCoreDLL\Final_Release. What did I do wrong this time?
 
This is very good progress! The makefile simply tells nmake how and when to issue standard DOS commands, and DOS commands don't like spaces in files. You need to have double quotes (") around any path that might have spaces in it.

Looking at the makefile you posted, however, I don't see any commands that are missing them. Moreover, the command being executed in the log you posted shows that there are quotes around the cl.exe call. And cl.exe is the one issuing the error, so it must be getting run.

Have you changed the makefile from what you posted at all? I notice that the path to cl.exe shown in the build log doesn't match what's in the makefile you posted. BTW, the build log file will get created each time you build; that's normal.
 
It looks like Visual Studio's compiler is getting used instead of the one from VC++ 2003 Toolkit. Try doing the command-line run again.
 
I must have changed it, because I downloaded the one I uploaded and they didn't match. However, I changed it back and now it once again doesn't know how to make CvArea.cpp. I really hope that TheLopez mods that I chose to merge are frigging awesome for all of this confusion (not saying your help is confusing, saying I picked some insanity to break my C++ cherry)
 
That makes me think you put the makefile in the wrong place again. It says that because it cannot find the CvArea.cpp file and is looking for a matching target in the makefile that will create CvArea.cpp. Obviously that's not what we want since it already exists.
 
Correct me if I am wrong, but the makefile needs to be in the CvGameCoreDLL folder with all of the .cpp files and the .h files right? You know, the top two lines in the makefile look unaltered from the makefile I got with the pdf instructions, which it says in the instructions that I was supposed to change to the path of my "Visual C++ 2003 toolkit" and "Microsoft PSDK". What would be the basic equivalents of those for Visual Studio 2008?
 
Did you install the VC++ 2003 Tookit? I think you are using the wrong compiler. You can use Visual Studio to edit the files (I do), but you must install VC++ 2003 to do the compilation.

Check out this new thread for details. I assumed the instructions said to download and install VC++ 2003, but perhaps not. Or it is seeing VS on the path before VC++. In any case, follow the instructions at the very end of the post and point the makefile to where you install VC++ 2003.
 
Back
Top Bottom