Page 5 of 11 FirstFirst ... 2 3 4 5 6 7 8 ... LastLast
Results 121 to 150 of 308

Thread: COMPILE: Getting the source to compile

  1. #121
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    14:53

    Post

    Locutus my idea was to use the clean order from the menue and just recompile everything again. Afterwards I replaced my dummy mss.h with the stub from this thread and replacing the altered sound files by the original ones my VC6 rejected to rebuild the *.exe it just told that there were no errors, but there no recompiling no relinking. The file was definatly the same from last night. But fortunatly the recompiling worked. So I can try again to add the pollution graph.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

  2. #122
    ErichG
    Settler
    Join Date
    02 Nov 2003
    Posts
    1
    Country
    This is ErichG's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53

    Re: Re: VS6 to VS.NET conversion

    Originally posted by mjs0


    Well...for VS.NET this approach fixed all the custom build errors so the calls to flex, byacc, ctpdb et al ran successfully.

    Now I just have the compiler problems (3275 errors and 1486 warnings) to resolve!!

    Martin.
    How far did you get with VS.net? There have been successfuk builds with VC6. With VS.net I had trouble with STL - Looks like the Bidit template has gotten 2 more params. Has anyone got a compliable version for VC7?

  3. #123
    J Bytheway
    Emperor J Bytheway's Avatar
    Join Date
    02 Jul 2001
    Location
    England
    Posts
    3,826
    Country
    This is J Bytheway's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:53

    VS6 to VS.NET conversion

    Originally posted by ErichG
    How far did you get with VS.net? There have been successfuk builds with VC6. With VS.net I had trouble with STL - Looks like the Bidit template has gotten 2 more params. Has anyone got a compliable version for VC7?
    See http://apolyton.net/forums/showthrea...hreadid=100314

  4. #124
    MrBaggins
    King MrBaggins's Avatar
    Join Date
    03 May 1999
    Posts
    1,528
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    I've now got my Visual Studio disks, just finished installing those, plus the SP.

    Followed the info, and just compiled the debug exe successfully. *chuckles* Its pretty slow, eh?

    Just seeing if the final compiles OK.

    Having the code actually working should help my ability to contribute to the project. *smiles*

  5. #125
    Joss
    Settler
    Join Date
    03 Nov 2003
    Posts
    6
    Country
    This is Joss's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    Hi,
    Hi have the great_libary.txt problem, too. But ctp2_code and ctp2_data are at the same level:
    \ctp2\ctp2_code\ctp
    \ctp2\ctp2_data

    I think it has to do with my German version of CTP2. Can someone help me?
    Last edited by Joss; November 4, 2003 at 14:34.

  6. #126
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    14:53

    Post

    Joss go into the ..\ctp2_code\ctp\ directory and open there the civpath.txt find there a string english and replace it by german or copy the civpath.txt from your ctp2_program\ctp\ directory to the project directory.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

  7. #127
    Solver
    Deity Solver's Avatar
    Join Date
    24 Sep 2000
    Location
    Latvia, Riga
    Posts
    18,354
    Country
    This is Solver's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    15:53
    BTW, did anyone else have any problems with playing the original CtP2 after running the compiled one? I did, but was able to solve those by just replacing the Registry entries...
    Solver, WePlayCiv Co-Administrator
    Contact: solver-at-weplayciv-dot-com
    I can kill you whenever I please... but not today. - The Cigarette Smoking Man

  8. #128
    Raster
    Settler
    Join Date
    05 Nov 2003
    Posts
    1
    Country
    This is Raster's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53

    Miles sound system.

    Does CtP2 use the DLL version of the Miles Sound system? (I don't have the CD yet).

    Couldn't you build a lib from the dll, and manually rebuild the header?

    I found a source of the MSS32.dll, http://www.dll-files.com/dllindex/dll-files.shtml?mss32

    But, that should be on the cd, or somewhere on the computer after install. (possibly \Windows\System or \Windows\System32, if not in the same directory as the exe)

  9. #129
    J Bytheway
    Emperor J Bytheway's Avatar
    Join Date
    02 Jul 2001
    Location
    England
    Posts
    3,826
    Country
    This is J Bytheway's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:53

    Re: Miles sound system.

    Originally posted by Raster
    Couldn't you build a lib from the dll, and manually rebuild the header?
    Yep, and someone already has. See http://apolyton.net/forums/showthrea...16#post2459116

  10. #130
    MrBaggins
    King MrBaggins's Avatar
    Join Date
    03 May 1999
    Posts
    1,528
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    We're a couple of steps ahead of you, chief. mss32.dll was always included with the regular game. It gets installed. Being that the game will always be installed first, prior to any patch or replacement .exe that we provide, its not a problem.

    And we actually seem to have some movement on including sound, period...

    See this thread.

  11. #131
    Joss
    Settler
    Join Date
    03 Nov 2003
    Posts
    6
    Country
    This is Joss's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    @Martin Gühmann:
    Did this work by you? Now the meassagebox that he cant find greatlibary.txt doesnt appear but the assert failure is still their. Does the exe need more than the data director because i copyed only this from the install into my ctp directory?

  12. #132
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    14:53

    Post

    Joss you mean the assert that you get on startup? So far I just ignored it. But of course it needs to be fixed.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

  13. #133
    Joss
    Settler
    Join Date
    03 Nov 2003
    Posts
    6
    Country
    This is Joss's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    but then the games doesnt run :-)
    not so cool

  14. #134
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    14:53

    Post

    Joss, do you mean the ..\ctp2_code\ui\interface\greatlibrary.cpp Line: 334
    Expression: entry_pos < MAX_ENTRY - 6

    Assertion?

    If yes just press the ignore button and continue.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

  15. #135
    kaan
    Prince
    Join Date
    07 Mar 2001
    Location
    Aarhus
    Posts
    333
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    I have compiled the game as described by Mr. Ogre now.
    That means that i have no sound but everything works fine.
    I have compiled and tested the following setups:
    Release
    Debug
    Final
    NDebug
    Test
    Optimized Test

    The Release version runs fine without anything special to note.
    The Debug version needs the file anet2d.dll in the game dir, it can be found in the source dir with the .exe. While running debug the game complains about an assertion failing because some soundmanager var is NULL. I press the "Ignore"button and the game carries on unaffected until next turn when the same error pops up again.
    The Final version came with two warnings about some unused local vars and it ran fine (I actually think it was a bit faster at runtime than the release vesion).
    The NDebug version compiled with one warning and ran like the normal versions without a glitch.
    The Test version on the other hand comes up with no less than 244 errors an 15 warnings. I think it is safe to conclude that this build is far from the CD release version.
    The Optimized Test version only has 2 errors so it is probably more up to date.

    I would like to hear if anyone has got a clue to what the different builds are meant to be for.
    The Debug_browse version has an explenation earlier in this thread and the regular debug version sort of explain itself. But what about the rest?
    What is the difference between Release, Final and NDebug?
    Is Test and Optimized Test just leftovers from the past or is it a playground?
    Is Leak a testsetup for memory leaks?

    Update:
    I just had the idea to eject the CTP2 cd from the drive and see if it made any difference, and it did!
    The exe from the CD had CD check on.
    The Final exe had CD check on.
    The Debug exe had no CD check.
    The Release exe had no CD check.
    The NDebug exe had no CD check.

    Now i have tried with the 1.11 patch and there were no difference.
    The 1.11 exe had CD check on.

    kaan
    Last edited by kaan; November 8, 2003 at 20:52.

  16. #136
    ahenobarb
    Prince ahenobarb's Avatar
    Join Date
    26 Nov 2001
    Posts
    437
    Country
    This is ahenobarb's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    Well, my copy of MS VC++ finally arrived today. It should have arrived days a couple days ago, but they shutdown all our post offices for fear of anthrax (are they ever going to catch that a$$?), but I bumped into the postman and he gave me the package.

    In a few short hours I have successfully COMPILED THE CODE WITH NO ERRORS!!! Also, the sound is working perfect. Thanks jonwil!! ... and I have played several turns with no crashes!!!



    I do get the assertion failure on shutdown however, but still...
    THe advantage of building the way that is outlined in the attached file (not that this will work for everyone) is that it requires absolutely NO CHANGES TO THE SOURCE CODE to get it to compile. Therefore, it does not create a compiler compatibility problem later on.

    It took some time because most of the information on what to do is scattered all over the place. So... I went ahead and put together an .rtf file explaining how to compile the code with MS VC++ 6.0 and Windows 98SE (It seems Martin and I are in the same boat). Thanks for asking all the questions earlier in this thread Martin, I followed that like scripture!

    [aside: Where are my dancing bananas? You know, like this one -> ?]
    Attached Files Attached Files
    Last edited by ahenobarb; November 8, 2003 at 22:42.

  17. #137
    Keygen
    ACS Staff Member / Hosted Site Admin
    Join Date
    09 Jan 2000
    Posts
    7,528
    Country
    This is Keygen's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    14:53
    I followed ahenobarb's steps and the code compiled and run successfully under Windows XP Professional with Service Pack 1. I got the assertion messages too after exiting the game. Good work there gathering all the information into a single file

  18. #138
    Keygen
    ACS Staff Member / Hosted Site Admin
    Join Date
    09 Jan 2000
    Posts
    7,528
    Country
    This is Keygen's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    14:53
    Here's the log file for the CivCTP_dbg.exe compilation in case someone wants to take a quick look at the files that are associated with CivCTP_dbg.exe (the debug version of the ctp2.exe).
    Attached Files Attached Files

  19. #139
    The Big Mc
    King The Big Mc's Avatar
    Join Date
    15 Oct 2001
    Location
    Of the universe / England
    Posts
    2,061
    Country
    This is The Big Mc's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    just what i wanted ahenobarb
    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
    The BIG MC making ctp2 a much unsafer place.
    Visit the big mc’s website

  20. #140
    Maquiladora
    Emperor
    Join Date
    17 Jun 2001
    Posts
    7,714
    Country
    This is Maquiladora's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:53
    Woohoo it worked Thanks ahenobarb

    i got the same 2 exit errors too.
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

  21. #141
    ahenobarb
    Prince ahenobarb's Avatar
    Join Date
    26 Nov 2001
    Posts
    437
    Country
    This is ahenobarb's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    Happy to help!

    And it is good to see that it worked on different OS platforms.

  22. #142
    The Big Mc
    King The Big Mc's Avatar
    Join Date
    15 Oct 2001
    Location
    Of the universe / England
    Posts
    2,061
    Country
    This is The Big Mc's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    i set some time apart from my version of hell which is my life to compile the code has your guide got the sound working
    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
    The BIG MC making ctp2 a much unsafer place.
    Visit the big mc’s website

  23. #143
    Maquiladora
    Emperor
    Join Date
    17 Jun 2001
    Posts
    7,714
    Country
    This is Maquiladora's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:53
    Well i was using Win98SE and MS Visual C++ 6 too, so it was straight forward following the guide, thankfully.
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

  24. #144
    The Big Mc
    King The Big Mc's Avatar
    Join Date
    15 Oct 2001
    Location
    Of the universe / England
    Posts
    2,061
    Country
    This is The Big Mc's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    yes but did it have sound
    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
    The BIG MC making ctp2 a much unsafer place.
    Visit the big mc’s website

  25. #145
    Maquiladora
    Emperor
    Join Date
    17 Jun 2001
    Posts
    7,714
    Country
    This is Maquiladora's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:53
    yep
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

  26. #146
    The Big Mc
    King The Big Mc's Avatar
    Join Date
    15 Oct 2001
    Location
    Of the universe / England
    Posts
    2,061
    Country
    This is The Big Mc's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    good
    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
    The BIG MC making ctp2 a much unsafer place.
    Visit the big mc’s website

  27. #147
    berXpert
    King berXpert's Avatar
    Join Date
    29 Jan 2001
    Posts
    1,775
    Country
    This is berXpert's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    07:53
    Thx ahenobarb,

    I follow your directions and I've compiled on WinXP VC++ 6.0

  28. #148
    The Big Mc
    King The Big Mc's Avatar
    Join Date
    15 Oct 2001
    Location
    Of the universe / England
    Posts
    2,061
    Country
    This is The Big Mc's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    on xp did you edit Autoexec.bat
    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
    The BIG MC making ctp2 a much unsafer place.
    Visit the big mc’s website

  29. #149
    berXpert
    King berXpert's Avatar
    Join Date
    29 Jan 2001
    Posts
    1,775
    Country
    This is berXpert's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    07:53
    What file is that?

  30. #150
    The Big Mc
    King The Big Mc's Avatar
    Join Date
    15 Oct 2001
    Location
    Of the universe / England
    Posts
    2,061
    Country
    This is The Big Mc's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:53
    2. Go to the Root Directory of your computer (C:\) and open “Autoexec.bat”. In “Autoexec.bat” add the following lines:
    SET CDKDIR=C:\Activision\CTP2\bin
    SET PATH=%PATH%;C:\Activision\CTP2\bin
    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
    The BIG MC making ctp2 a much unsafer place.
    Visit the big mc’s website

Page 5 of 11 FirstFirst ... 2 3 4 5 6 7 8 ... LastLast

Similar Threads

  1. HELP needed to compile the SDK
    By Thror78 in forum Civilization IV Creation
    Replies: 1
    Last Post: August 28, 2006, 18:57
  2. Compile the source code, missing headers
    By jacquipre in forum CtP2 Source Code Project
    Replies: 18
    Last Post: June 11, 2006, 10:03
  3. COMPILE: Getting the source to compile on VS.NET
    By vovan in forum CtP2 Source Code Project
    Replies: 62
    Last Post: July 8, 2004, 00:25
  4. compile fails; OS X 10.3.3
    By zbgump in forum Freeciv
    Replies: 1
    Last Post: March 18, 2004, 04:45
  5. Can't compile FreeCiv-SDL from cvs source
    By thethawav in forum Freeciv
    Replies: 3
    Last Post: March 29, 2003, 07:23

Visitors found this page by searching for:

mss32.lib

Error spawning mt.exe visual studio 2008

reftime.h no such file or directory

Project : error PRJ0003 : Error spawning mt.exe

error LNK2001: unresolved external symbol _xGetSystemMetrics@4

error C2065: UNITS : undeclared identifier

IBasicVideo2 : base class undefined

reftime.h missing

hmonitor struct type redefinition

knock sequence unresolved identifier

file:line:oassert

error LNK2005: localtime already defined

error c2504: ibasicvideo2 : base class undefined

Build project under Microsoft Platform SDKSamplesMultimediaDirectShowBaseClasses

error prj0003 : error spawning mt.exe.

ogre dinput.h

error lnk2005: class ogre::controller

cannot open source file lex.yy.cc

file:fiq_drv.cline:188assert(dsp assert id:21)project : error prj0003 : error spawning mt.exe.error c2061: syntax error : identifier hmonitor2008 hmonitor redefinitionError 1 fatal error C1083: Cannot open include file: ddraw.h: No such file or directory c:program filesmicrosoft sdkswindowsv7.0samplesmultimediadirectshowbaseclassesstreams.h 42error LNK2001: unresolved external symbol _xGetMonitorInfo@8c1 : fatal error c1083: cannot open source file:

Bookmarks

Posting Permissions