Project

General

Profile

Bug #1172

Wrong library includes for Debug builds in VS2010

Added by j0s almost 12 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Build System
Target version:
Start date:
06/12/2012
Due date:
% Done:

0%

Estimated time:
1.00 h
Version:
0.8-pre
OS:
Windows

Description

I was trying to build Quassel on Windows using Visual Studio 2010 (because I found a bug and want to fix it).
The MinSizeRelease works fine, but there are problems with the Debug build!
It seems like CMake generates settings to link to every Qt lib in both versions, Debug and Release!
This is clearly not going to work.
After fixing that in the project settings, everything works fine!
I don't know enough about CMake to fix it there, so I leave that for someone else!
Here is the config line from quassel.vcxproj
It is easily visible, that all the Qt libs without the d shouldn't be there!
Also a lot of the other libs are doubled, but this is not a problem!

<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib;imm32.lib;winmm.lib;dbghelp.lib;Secur32.lib;Version.lib;dwmapi.lib;shlwapi.lib;qtui\Release\mod_qtui.lib;uisupport\Release\mod_uisupport.lib;client\Release\mod_client.lib;core\Release\mod_core.lib;common\Release\mod_common.lib;D:\Coding\Qt\vs10\4.8.2\lib\*QtCore4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\*QtGui4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\QtGuid4.lib;D:\Coding\Qt\vs10\4.8.2\lib\*QtNetwork4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\QtNetworkd4.lib;D:\Coding\Qt\vs10\4.8.2\lib\*QtScript4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\QtScriptd4.lib;D:\Coding\Qt\vs10\4.8.2\lib\*QtSql4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\QtSqld4.lib;D:\Coding\Qt\vs10\4.8.2\lib\*QtWebKit4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\QtWebKitd4.lib;D:\Coding\Qt\vs10\4.8.2\lib\*QtXmlPatterns4.lib*;D:\Coding\Qt\vs10\4.8.2\lib\QtXmlPatternsd4.lib;D:\Coding\Qt\vs10\4.8.2\lib\*qtmain.lib*;D:\Coding\Qt\vs10\4.8.2\lib\qtmaind.lib;D:\Coding\Qt\vs10\4.8.2\lib\*phonon4.lib*;+imm32.lib;winmm.lib;dbghelp.lib;Secur32.lib;Version.lib;dwmapi.lib;shlwapi.lib+</AdditionalDependencies>

Also available in: Atom PDF