Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. VS2012 .vcxproj file not working as accepted
QtWS25 Last Chance

VS2012 .vcxproj file not working as accepted

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    scarleton
    wrote on last edited by
    #1

    I have been trying to track down this linker error for a whole now that is titled "VS2012 & mismatch detected for ‘_MSC_VER’":http://qt-project.org/forums/viewthread/26292/

    Well, I do generate the project file from a .pro and .pri file, so I thought I would try compiling it via jom and it links just fine, no issues. I regenerated the .vcxproj file and tried a clean build but I keep getting the same error, well there are two errors actually. The first error I get is this:

    1>LINK : fatal error LNK1117: syntax error in option 'manifest:embed'

    I am able to get around that one by going into Properties --> Manifest Tools --> Input and Output and setting Embed Manifest to No. But I still get the mismatch detected for _MSC_VER. Here is my pro and pri file:

    pro:
    @TARGET = SalesCenter
    QT += xml sql gui core script svg network printsupport widgets
    CONFIG += debug_and_release
    DEFINES += QT_LARGEILE_SUPPORT QT_SQL_LIB _USE_32BIT_TIME_T
    QTPLUGIN += qjpeg
    INCLUDEPATH += ./../../../include ./GeneratedFiles ../../3rdPartyLibraries/NCReport/src/ncreport ../../3rdPartyLibraries/NCReport/src/ncreport ../../3rdPartyLibraries/NCReport/src/preview .
    LIBS += -L../../3rdPartyLibraries/NCReport/lib -L./../../../lib -lLicenseLibMD
    PRECOMPILED_HEADER = stdafx.h
    DEPENDPATH += .
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles

    CONFIG(debug, debug|release) {
    DESTDIR = ../Debug
    LIBS += -L../Debug -lncreportd
    OBJECTS_DIR += Debug
    MOC_DIR += ./GeneratedFiles/Debug
    INCLUDEPATH += ./GeneratedFiles/Debug
    } else {
    DEFINES += QT_NO_DEBUG_OUTPUT
    DESTDIR = ../Release
    LIBS += -L../Release -lncreport
    OBJECTS_DIR += Release
    MOC_DIR += ./GeneratedFiles/Release
    INCLUDEPATH += ./GeneratedFiles/Release
    }

    win32:RC_FILE = SalesCenter.rc

    RESOURCES += ncreport/preview.qrc

    include(SalesCenter.pri)@

    SalesCenter.pri
    @HEADERS += ./aboutform.h
    ./Action2TakeModel.h
    ./CustomerMdiChild.h
    ./CustomerSqlModel.h
    ./DataTransferObjects.h
    ./DBManager.h
    ./EventPriceListMgrForm.h
    ./EventPriceListSqlModel.h
    ./FavoriteCenter.h
    ./FavoriteCustomerSqlModel.h
    ./FavoriteDialog.h
    ./FavoriteImageData.h
    ./FavoriteImageModel.h
    ./FavoriteMgrWindow.h
    ./GeneralUtils.h
    ./ImageCopyDTO.h
    ./ImageManager.h
    ./InvoiceCenter.h
    ./InvoiceCenterSqlModel.h
    ./InvoiceEditorDelegate.h
    ./InvoiceEditorForm.h
    ./InvoiceImageMgr.h
    ./InvoiceItemDelegate.h
    ./InvoiceItemNotesForm.h
    ./InvoiceItemSqlModel.h
    ./InvoiceModel.h
    ./InvoicePriceListSqlModel.h
    ./InvoicePrintDialog.h
    ./InvoiceProcessor.h
    ./InvoiceSqlModel.h
    ./LogBrowser.h
    ./LogBrowserDialog.h
    ./OptionForm.h
    ./PaymentTypeModel.h
    ./PriceListDelegate.h
    ./PriceListItemDelegate.h
    ./PriceListItemSqlModel.h
    ./PriceListMgrForm.h
    ./PrintingCfg.h
    ./PrintingCfgFactory.h
    ./ProductMgrForm.h
    ./ProductSqlModel.h
    ./ReportFactory.h
    ./ReportForm.h
    ./ReportInvoiceFactory.h
    ./RIFOrderItemModel.h
    ./SalesCenterHttpClient.h
    ./stdafx.h
    ./SystemSettings.h
    ./TaxCalculator.h
    SOURCES += ./aboutform.cpp
    ./Action2TakeModel.cpp
    ./CustomerMdiChild.cpp
    ./CustomerSqlModel.cpp
    ./DBManager.cpp
    ./EventPriceListMgrForm.cpp
    ./EventPriceListSqlModel.cpp
    ./FavoriteCenter.cpp
    ./FavoriteCustomerSqlModel.cpp
    ./FavoriteDialog.cpp
    ./FavoriteImageData.cpp
    ./FavoriteImageModel.cpp
    ./FavoriteMgrWindow.cpp
    ./GeneralUtils.cpp
    ./ImageManager.cpp
    ./InvoiceCenter.cpp
    ./InvoiceCenterSqlModel.cpp
    ./InvoiceEditorDelegate.cpp
    ./InvoiceEditorForm.cpp
    ./InvoiceImageMgr.cpp
    ./InvoiceItemDelegate.cpp
    ./InvoiceItemNotesForm.cpp
    ./InvoiceItemSqlModell.cpp
    ./InvoiceModel.cpp
    ./InvoicePriceListSqlModel.cpp
    ./InvoicePrintDialog.cpp
    ./InvoiceProcessor.cpp
    ./InvoiceSqlModel.cpp
    ./LogBrowser.cpp
    ./LogBrowserDialog.cpp
    ./main.cpp
    ./OptionForm.cpp
    ./PaymentTypeModel.cpp
    ./PriceListDelegate.cpp
    ./PriceListItemDelegate.cpp
    ./PriceListItemSqlModel.cpp
    ./PriceListMgrForm.cpp
    ./PrintingCfg.cpp
    ./PrintingCfgFactory.cpp
    ./ProductMgrForm.cpp
    ./ProductSqlModel.cpp
    ./ReportFactory.cpp
    ./ReportForm.cpp
    ./ReportInvoiceFactory.cpp
    ./RIFOrderItemModel.cpp
    ./SalesCenterHttpClient.cpp
    ./stdafx.cpp
    ./SystemSettings.cpp
    FORMS += ./aboutform.ui
    ./CustomerMdiChild.ui
    ./EventPriceListMgrForm.ui
    ./FavoriteCenter.ui
    ./FavoriteDialog.ui
    ./FavoriteMgrWindow.ui
    ./InvoiceCenter.ui
    ./InvoiceEditorForm.ui
    ./InvoiceItemNotesForm.ui
    ./InvoicePrintDialog.ui
    ./OptionForm.ui
    ./PriceListMgrForm.ui
    ./ProductMgrForm.ui
    ./ReportForm.ui
    RESOURCES += ncreport/preview.qrc
    salescenter.qrc@

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      And you're 100% sure that your Qt is also built with msvc2012 AND the according MKSPEC?!

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • S Offline
        S Offline
        scarleton
        wrote on last edited by
        #3

        I am 100% sure I am using VS2012, not so much on following the spec, considering I didn't know there was a speck to follow. Might you provide a link to more details?

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          what i meant was if Qt was configured with configure ... -platform "win32-msvc2012"
          (assuming you use Qt5)

          Also you could try to link against a already "compiled package":http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-windows-opensource-5.0.2-msvc2012_64-x64-offline.exe.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved