Crystal Space
Welcome, Guest. Please login or register.
November 28, 2014, 02:24:14 am

Login with username, password and session length
Search:     Advanced search
9026 Posts in 2046 Topics by 9148 Members
Latest Member: Dwighthaskin
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  compile problem with VS2010, Win7
« previous next »
Pages: [1] Print
Author Topic: compile problem with VS2010, Win7  (Read 4822 times)
jon
Newbie
*
Posts: 2


View Profile Email
« on: October 12, 2010, 11:21:33 pm »

Hi,

It has been a number of years since I last looked at CS, so I thought I would take some time and see how things
have changed.

My development system is running Window 7 x64, I am using Visual Studio 2010.  I took the VS9 solution and used the upgrade wizard to create a VS10
solution.

I am building crystalspace-src-1.4.0.  I have installed cs-win32libs-1.4_002.

First, I'll note that I am seeing a metric ton of "deprecated" warnings.  These are for things like iRange.  I'm not worrying about those
right now.  I assume that 1.4.0 compiles just fine as-is on everyone else's system.  But if it is relevant, I've mentioned it.

What I am concerned about are errors like the following:

Code:
1>------ Build started: Project: libcrystalspace, Configuration: Release (with DLLs) Win32 ------
1>Build started 10/12/2010 4:54:05 PM.
1>InitializeBuildStatus:
1>  Touching "..\..\out\release9\build\libcrystalspace\libcrystalspace.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  All outputs are up-to-date.
1>ResourceCompile:
1>  All outputs are up-to-date.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\Projects\crystalspace-src-1.4.0\mk\msvc9\..\..\out\release9\build\libcrystalspace\libcrystalspace.dll) does not match the Linker's OutputFile property value (E:\Projects\crystalspace-src-1.4.0\crystalspace-1.4-vc9.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(libcrystalspace) does not match the Linker's OutputFile property value (crystalspace-1.4-vc9). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>Link:
1>  All outputs are up-to-date.
1>  libcrystalspace.vcxproj -> E:\Projects\crystalspace-src-1.4.0\mk\msvc9\..\..\out\release9\build\libcrystalspace\libcrystalspace.dll
1>PostBuildEvent:
1>  The system cannot find the file specified.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "md ..\..\out\release9\bin 2> nul
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: copy /y "E:\Projects\crystalspace-src-1.4.0\mk\msvc9\..\..\out\release9\build\libcrystalspace\libcrystalspace.dll" ..\..\out\release9\bin\
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.48
2>------ Build started: Project: plgbullet, Configuration: Release (with DLLs) Win32 ------
2>Build started 10/12/2010 4:54:06 PM.
2>InitializeBuildStatus:
2>  Touching "..\..\out\release9\build\plgbullet\plgbullet.unsuccessfulbuild".
2>ClCompile:
2>  All outputs are up-to-date.
2>ResourceCompile:
2>  All outputs are up-to-date.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(E:\Projects\crystalspace-src-1.4.0\mk\msvc9\..\..\out\release9\build\plgbullet\plgbullet.dll) does not match the Linker's OutputFile property value (E:\Projects\crystalspace-src-1.4.0\bullet.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(plgbullet) does not match the Linker's OutputFile property value (bullet). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2>Link:
2>  All outputs are up-to-date.
2>  plgbullet.vcxproj -> E:\Projects\crystalspace-src-1.4.0\mk\msvc9\..\..\out\release9\build\plgbullet\plgbullet.dll
2>PostBuildEvent:
2>  The system cannot find the file specified.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "md ..\..\out\release9\bin 2> nul
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: copy /y "E:\Projects\crystalspace-src-1.4.0\mk\msvc9\..\..\out\release9\build\plgbullet\plgbullet.dll" ..\..\out\release9\bin\
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073:
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: :VCEnd" exited with code 1.
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:00.27
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

The path warning is pretty self-explanatory.  I sort of expected that the paths would be set out of the box.

Here is the linker command line:

Code:
/OUT:"..\..\bullet.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:"..\..\win32libs\lib" /LIBPATH:"..\..\libs\csutil\win32\libs" /DLL "delayimp.lib" "zlib.lib" "bulletcollision-vc9.lib" "bulletdynamics-vc9.lib" "bulletmath-vc9.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "E:\Projects\crystalspace-src-1.4.0\out\release9\libs\libcrystalspace.lib" /NODEFAULTLIB:"LIBC" /NODEFAULTLIB:"LIBCD" /NODEFAULTLIB:"LIBCMT" /NODEFAULTLIB:"LIBCMTD" /MANIFEST /ManifestFile:"..\..\out\release9\build\plgbullet\plgbullet.dll.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"..\..\out\release9\build\plgbullet\bullet.pdb" /OPT:REF /OPT:ICF /PGD:"E:\Projects\crystalspace-src-1.4.0\out\release9\build\plgbullet\plgbullet.pgd" /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"..\..\out\release9\build\plgbullet\plgbullet.lib" /MACHINE:X86 /ERRORREPORT:QUEUE


libcrystalspace.lib is at CS/out/release9/libs
I'm not seeing any DLLs.  The out/release9/build/plgbullet folder has a lib, exp.  No DLL.  I have done a rebuild on this project.

I'm probably overlooking some important piece of info, but trying to think of what I'd like to know if I were on the receiving end.

I'm hoping to avoid editing 200+ project files.  Hopefully someone has been down this road already.

PS, since you asked:

GeForce 8800 GT, Driver version 197.45.  DirectX 11.0  (June 2010 SDK)
Logged
Wysardry
Newbie
*
Posts: 17


View Profile
« Reply #1 on: October 17, 2010, 01:58:11 pm »

I compiled CS 1.4 with cs-win32libs-1.4_002 on Windows XP with VS 2008 Express for the first time yesterday and got a ton of warnings too (but no errors).

I am now in the process of compiling a CVS snapshot version of 1.9 with cs-win32libs-1.9_006 (after uninstalling cs-win32libs-1.4_002), which so far is giving a lot fewer warnings.

I noticed that projects and solutions for VS 2010 are included, so you might want to try the same thing.
Logged
jon
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: October 18, 2010, 09:20:54 pm »

Thanks, this is good to know.  If someone has created (and checked in) a VS2010 project, they they have likely built it under VS2010.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.52 seconds with 16 queries.