 |
|
Fromafar
|
|
According to the MSDN library, SysAllocString and SysFreeString are from oleaut32.lib.
|
|
|  |
 |
|  |
 |
|
Flinx
|
 |
Toronto, ON CANADA
Nov 2001 time: 00:34
|
|
Following the steps in ctplinuxfan's very helpful Getting Started Guide, I did the following:
- 2.1.2 Install Civilization Call to Power II
- already done, now using playtest
- 2.1.3 Install the CtP2 1.11 patch
- already done, now using playtest
- 2.1.4 Backup your CtP2 directory
- did not do
- 2.1.5 Install MS Visual C++ 6.0
- installed Standard Edition, Service Pack 4 which came with it and MSDN Library that came with it. Downloaded and installed Visual Studio 6.0 Service Pack 6
- 2.1.6.2 Alternative 2: Using the latest DirectX SDK
- Downloaded and installed DirectX 9.0 Complete Software Development Kit (SDK) and then downloaded and installed DirectX 9.0 SDK Update - (October 2004) to a different folder because it forced me to.
- The directories were already in the IDE options when I looked, Oct'04 first then complete then the VC directories.
The DirectShow BaseClasses workspace file, ...\DirectShow\BaseClasses\baseclasses.dsw was only in the first DXSDK not the Oct'04 one. I successfully built the two .lib files and added the include directories under options.
Should I download and install the other 2 DX 9.0 SDK Updates, and add them to the include directories?
- 2.1.7 Optional: Install Simple DirectMedia Layer libraries
- Did not do
- 2.1.8 Unpacking the source
- Already done.
- 2.1.9 Setup your environment variables
- Already done.
- 2.1.10 Create a tmp directory
- Already done.
- 2.1.11 Reboot
- Skipped
- 2.1.12 Obtain latest ALL patch from CtP2 Source Code Project
- 2004-09-13 All already added
- 2.1.13 Optional: Get up to date until latest post
- 1 or 2 alreaded added.
- 3.1.3.1 Set the active configuration and 3.1.3.2 Start the build

code: --------------------Configuration: Crater - Win32 Debug--------------------
Compiling...
Crater.cpp
Linking...
Creating library Crater_0/Crater.lib and object Crater_0/Crater.exp
--------------------Configuration: fault - Win32 Debug--------------------
Compiling...
FaultGen.cpp
Linking...
Creating library fault__0/fault.lib and object fault__0/fault.exp
--------------------Configuration: geometric - Win32 Debug--------------------
Compiling...
FaultGen.cpp
Geometric.cpp
Linking...
Creating library geometr0/geometric.lib and object geometr0/geometric.exp
--------------------Configuration: Plasma2 - Win32 Debug--------------------
Compiling...
PlasmaGen2.cpp
Linking...
Creating library Debug/plasma2.lib and object Debug/plasma2.exp
--------------------Configuration: dbgen - Win32 Debug--------------------
Performing Custom Build Step on .\ctpdb.y
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\windows\system32\cmd.exe.
CivCTP_dbg.exe - 1 error(s), 0 warning(s)
OK something is having a problem with the space in 'Program Files'
|
|
|  |
 |
|  |
 |
|
Peter Triggs
|
|
Gone Fishin, Canada
Jan 2000 time: 05:34
|
|
quote:
Performing Custom Build Step on .\ctpdb.y
|
Vovan and RalphTrickey pointed this out in the "Getting the source to compile"
thread:
quote:
Something I found out is that the custom build steps don't like spaces in your
path, like RalphTrickey said. I had the following error when building:
"C:/Documents" not found. Or something along these lines. The solution was to
copy the bison and yacc files into a folder with no spaces, like "C:\cdk_dir"
and put that into the CDKDIR environment variable
The next problem was that my sources were also in a path with spaces in it
And sure enough yacc didn't like it... And sure enough, into a directory with
no spaces the source went. That's a bit of copying around, but hey, I didn't
have to do the yacc and bison stuff manually.
|
I didn't notice that either and if you check that thread, you'll find me
banging my head against the screen some pages later wondering why it won't
work for me.
Anyway, when I set the project up as C:\Activision\CTP2\... it worked fine.
|
|
|  |
 |
|  |
 |
|
ctplinuxfan
|
|
Did you try Rebuild All after that?
Solver had a similar error with std::max being undefined and sint32 errors, Fromafars suggestion to Rebuild All helped here
Anyway, i updated the documentation to contain the space problem.
If anybody else encounters that problem, he could try to quote the path in the CDKDIR variable, first, e.g.
code:
set CDKDIR="C:\Program Files\CTP2 Source Directory"
or use the DOS 8.3 names (or both):
code:
set CDKDIR="C:\PROGRA~1\CTP2~1"
Updated pdf is at this post, sources in altered source files thread.
|
|
|  |
 |
|
tombom
|
|
Pining for the fjords
Oct 2004 time: 05:34
|
|
quote: Originally posted by Martin Gühmann
Any ideas except removing strmbasd.lib or amstrmid.lib?
-Martin |
No. I removed strmbasd.lib and everything has worked fine.
|
|
|  |
 |
|
Uchuu-kun[SM42]
|
|
You know, an easier way than moving all the directories would have been shortening the directory name to 8 characters - c:\Program Files\ would become c:\progra~1\ and so on. Of course, if you have multiple directories starting with Progra- then you'd have to change the numbers... but that's generally not the case.
In the references, I mean - not actually renaming the directories. First six non-space characters, then the ~1 ending.
|
|
|  |
All times are GMT. The time now is 05:34. Apolyton Time is 00:34. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|