Results 1 to 2 of 2

Thread: Problems building Qt 5 static with MSVC 2010

  1. #1
    Join Date
    Oct 2010
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Problems building Qt 5 static with MSVC 2010

    Greetings,
    I'm having issues building Qt 5 statically. I have successfully built it in shared mode, though. I configure it with:

    configure -static -opengl desktop -debug-and-release -nomake demos -nomake examples -opensource -platform win32-msvc2010

    The process fails with:
    .
    .
    .
    C:\Qt\Qt-5.0.0-vs2010-stat32\qtactiveqt\src\tools\idc\idc.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile
    "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile.Release
    cd tools\ && ( if not exist Makefile c:\Qt\Qt-5.0.0-vs2010-stat32\qtbase\bin\qmake C:\Qt\Qt-5.0.0-vs2010-stat32\qtactiveqt\tools\tools.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile
    cd dumpdoc\ && ( if not exist Makefile c:\Qt\Qt-5.0.0-vs2010-stat32\qtbase\bin\qmake C:\Qt\Qt-5.0.0-vs2010-stat32\qtactiveqt\tools\dumpdoc\dumpdoc.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile
    "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Makefile.Debug
    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\dumpdoc.exe @C:\Users\nobody\AppData\Local\Temp\nm3C0C.tmp
    Qt5AxContainerd.lib(qaxbase.obj) : error LNK2005: "bool __cdecl QVariantToVARIANT(class QVariant const &,struct tagVARIANT &,class QByteArray const &,bool)" (?QVariantToVARIANT@@YA_NABVQVariant@@AAUtagVARIAN T@@ABVQByteArray@@_N@Z) already defined in qwindowsd.lib(comutils.obj)
    Creating library debug\dumpdoc.lib and object debug\dumpdoc.exp
    debug\dumpdoc.exe : fatal error LNK1169: one or more multiply defined symbols found

    I've also tried the suggestions given here: http://www.geometrian.com/programmin...s/setup_Qt.txt

    I've also tried building it in just release mode with the same results. Anything suggestions would be greatly appreciated.

    Ryan

  2. #2
    Join Date
    Oct 2010
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problems building Qt 5 static with MSVC 2010

    Ok, so I installed from the git repository and everything worked fine. I don't know what the original problem was, but it seems to be taken care of.

Similar Threads

  1. [MSVC 2010] Static linking and unresolved external symbols
    By Blood9999 in forum Qt Programming
    Replies: 12
    Last Post: 31st December 2014, 22:12
  2. Replies: 1
    Last Post: 17th August 2013, 01:48
  3. Building Qt 4.8.3 - cross-compile using MSVC 2010 x64 tools
    By oleg_stepanenko@bk.ru in forum Installation and Deployment
    Replies: 0
    Last Post: 4th December 2012, 10:08
  4. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 18:42
  5. Problem with compiling Qt 4.6 via MSVC 2010 Beta2 (win32-msvc specs)
    By Erik-Moscow in forum Installation and Deployment
    Replies: 2
    Last Post: 17th December 2009, 19:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.