Unresolved external symbols when building empty QT project
-
That looks correct. I see 2 possibilities:
Kit setup in Qt Creator is wrong: please check this (Qt Creator->Tools->Preferences->Build & Run->Kits)
Another compiler was installed by Windows SDK and it is not compatible with MSVC 2010. In that case, uninstall Windows SDK (you do not need it anyway...)
-
- In Kit setup i see two kits:
- auto-detected "Desktop Qt 5.2.1 MSVC2010 32bit OpenGL" - chosen as default
- manual "Qt 5.2.1 (Src)"
Build fails with both of them.
- I'm afraid I need windows sdk (more precise - directx sdk, which is now part of windows sdk, if I'm correct). What should I do?
-
Please verify that the compiler shipped in your SDK is also MSVC 2010. If it is any other version, you will need Qt for that version, too.
-
Right, ok, you probably are ;)
I keep talking about the SDK because it seems to be the only thing that can interfere here. I know that MSVC 2010 itself works well and without problems, and is being actively used by many people.
-
Riight.. I uninstalled windows SDK. Example still doesn't build with the same error, but empty project now gives:
@
LINK : fatal error LNK1104: cannot open file 'glu32.lib'@According to "this thread":http://qt-project.org/forums/viewthread/30006 windows SDK is neccessary for Qt with opengl :)
-
I would imagine only a good driver is needed (nVidia/ AMD/ Intel). But you may be right. I am not too intimate with development on Windows.