RenaissanceFan
Warlord
- Joined
- Mar 15, 2011
- Messages
- 125
Will this work with Colonization too?
SOURCES=$(SOURCES) CxImage\CxImage.cpp
Debug_OBJS=$(Debug_OBJS) Debug\CxImage.obj
Release_OBJS=$(Release_OBJS) Debug\CxImage.obj
Debug\CxImage.obj: $(CPP) /nologo $(Debug_CFLAGS) $(Debug_INCS) /FoDebug\CxImage.obj /c CxImage\CxImage.cpp
Release\CxImage.obj: $(CPP) /nologo $(Release_CFLAGS) $(Release_INCS) /FoRelease\CxImage.obj /c CxImage\CxImage.cpp
I doubt anyone on the BUG/BAT team is dumb![]()
Thanks for the tip. I'm using EF's compiled CxImage.lib, though, and VS can't find the files, no matter where I put them. It also refuses to use the Platform SDK. Instead it keeps using the Windows v7.0A SDK, where it used to be pointed, even though I made a new project.I'm guessing CxImage.cpp is not in the same folder as the other source files.
The makefile (based on DannyDaemonic's one) compiles and links all *.cpp files in its folder.
If there are source files which are not there, you can either copy them to this folder or add them manually to the makefile.
If, for example, CxImage.cpp is in a subfolder called CxImage, you can add something like that (after the "#### Auto SOURCES/OBJS ####" section):
Code:SOURCES=$(SOURCES) CxImage\CxImage.cpp Debug_OBJS=$(Debug_OBJS) Debug\CxImage.obj Release_OBJS=$(Release_OBJS) Debug\CxImage.obj Debug\CxImage.obj: $(CPP) /nologo $(Debug_CFLAGS) $(Debug_INCS) /FoDebug\CxImage.obj /c CxImage\CxImage.cpp Release\CxImage.obj: $(CPP) /nologo $(Release_CFLAGS) $(Release_INCS) /FoRelease\CxImage.obj /c CxImage\CxImage.cpp
PROJECT_LIBS=/LIBPATH:Python24/libs /LIBPATH:boost-1.32.0/libs/ boost_python-vc71-mt-1_32.lib [B]/LIBPATH:<Whatever_Path_it_is_in>/CxImage.lib[/B]
nmake /NOLOGO /K [B]/f <makefile path>[/B] Debug
Thanks again for the pointers. I'll try them out.If it's a lib you can add it to the PROJECT_LIBS define in the makefile.
When you use a makefile project, the folders pointed to by VS are ignored (as is the entire VS build process), unless VS2010 changes it somehow... Googling seems to indicate that it should be fine.Code:PROJECT_LIBS=/LIBPATH:Python24/libs /LIBPATH:boost-1.32.0/libs/ boost_python-vc71-mt-1_32.lib [B]/LIBPATH:<Whatever_Path_it_is_in>/CxImage.lib[/B]
So are you saying your project uses the wrong makefile? VS runs NMAKE in the same folder as the project file, and looks for the makefile in that folder. But if you're not sure, you can change the build command (in Project->Properties) to:
Does the makefile you're trying to use point to the correct platform SDK?Code:nmake /NOLOGO /K [B]/f <makefile path>[/B] Debug
As for the intellisense - try deleting the intellisense database file (up until VS2008 it was .ncb, I think in VS2010 it's .sdf) in the solution file's folder (do it after you close VS and reopen it).
It will cause a rebuild of the intellisense DB (at least it did in older versions).
1) I used to run a Windows XP machine with the full version of VS .NET 2003 to work on my Civ 4 mods. However I currently run a Windows 7 64-bit machine. I have tried running VS 2003 in Windows XP mode on my Win 7 rig and it is not happy. Can I use VS 2008 to code and compile, and also debug (by attaching to a running process)? Should I use VS 2010?
2) Is this tutorial specific to BtS, in particular the project and makefile? What changes should I make to work with my Warlords 2.13 DLL?
The build succeeded, but you are missing some XML tags somewhere...These are the errors I am getting after tring to compile the newest bug bat ai
Assert Failed
File: CvXMLLoadUtilitySet.cpp
Line: 1295
Expression: bSuccess
Message:
It looks like it suceeded?