Another Compiling Problem. Visual C++ 2010
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stratagus |
Fix Released
|
Undecided
|
Joris Dauphin |
Bug Description
I've got Visual C++ 2010, and all the newest MSVC Libraries and Include files.
I've figured out how to use Bazaar and have downloaded the latest incarnation of the Stratagus Source Code. I also figured out how to use CMAKE to pre-compile the Source into OBJ files. Now, when I loaded the OBJ project up in both VC 2005 and VC 2010, it failed to compile using these files.
I have now decided to go back and copy the most recent source code into the project directory, thereby having the source up-to-date with the most recent version, which for me is the 8011 revision. I am purely trying to just get the code to compile, and the only thing - in both 2005 or 2010 versions of VC++ that is stopping the compiling from completing successfully, is a heap of "lua_objlen" and "LUA_GLOBALSINDEX" in the "ai.cpp" and "script_ai.cpp" files. At the moment there are no other errors besides these, and they are the only errors stopping a successful compile and link-to-exe from happening.
I've checked online to see where these two variables are defined, and they are in the "lua.h" header file that ships with the LUA include folder. I will have another look over my include and lib lookups in VC and also make sure the "lua.h" file has these definitions, even though I am quite certain it does. If so, why is it not picking them up? is it something to do with the Microsoft Compiler? I read somewhere that this mod is going to try and rely less on the new LUA++ libraries/
Changed in stratagus: | |
status: | New → Fix Released |
Changed in stratagus: | |
milestone: | none → 2.2.7 |
The full error message should be more helpful. (compile error: link error ?)
Does CMake report any error ?
To generate vcProj, you should use command line like INSTALL_ PREFIX= /path/to/ 3rd/ -G "Visual Studio 9 2008" -DENABLE_STATIC=ON
cmake -DCMAKE_
where /path/to/3rd/ have bin/, lib/ include/ of 3rd dependencies.