Qt Creator with VS2010 toolchain: .obj file not found



  • Hi,

    I want to try out Qt Creator with the VS2010 tool chain. I have a single .pro file, which should create an application. The project compiles just fine, but during linking, I get the error message:
    @
    QtnOfficePopupWindow.obj:-1: error: LNK2019: unresolved external symbol __imp__SHAppBarMessage@8 referenced in function "public: class QPoint __thiscall Qtitan::OfficePopupWindow::getPosition(void)const " (?getPosition@OfficePopupWindow@Qtitan@@QBE?AVQPoint@@XZ)@

    Or the "pretty" variant:
    @
    "File not found: QtnOfficePopupWindow.obj"@

    (I guess it's just the first object file the linker is trying to access)

    However, the object file is exactly where it should be, in the project's OBJECTS_DIR.
    Where else might the linker be looking?

    EDIT: Qt Creator 2.4.1 based on Qt SDK
    VS2010 toolchain added simply by referring to the qmake file in my (working) Qt_VS2010 build.

    EDIT2: Further info
    linker command line:
    @ link /LIBPATH:"c:\QtVS2010\4.8.0\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"./win32msvc2010_debug.obj\HipaseTool.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /OUT:win32msvc2010_debug\HipaseTool.exe @C:\Users\shy_schr\AppData\Local\Temp\HipaseTool.exe.6096.358.jom@

    .pro file:

    @TEMPLATE = app
    TARGET = HipaseTool
    QT += core gui network xml svg opengl
    CONFIG += debug
    DEFINES += QT_LARGEFILE_SUPPORT QTITAN_LIBRARY_STATIC QT_XML_LIB QT_SVG_LIB QT_NETWORK_LIB QT_OPENGL_LIB

    win32-g++ {
    HIPASEPLATFORM="win32gnu"
    }
    win32-msvc {
    HIPASEPLATFORM="win32msvc"
    }
    win32-msvc2010 {
    HIPASEPLATFORM="win32msvc2010"
    }

    CONFIG(debug, debug|release) {
    HIPASEPLATFORM = $$join(HIPASEPLATFORM,,"","_debug")
    } else {
    HIPASEPLATFORM = $$join(HIPASEPLATFORM,,"","_release")
    }

    DESTDIR = $$join(HIPASEPLATFORM,,"./",".bin")
    OBJECTS_DIR = $$join(HIPASEPLATFORM,,"./",".obj")
    MOC_DIR = $$join(HIPASEPLATFORM,,"./",".moc")
    RCC_DIR = $$join(HIPASEPLATFORM,,"./",".rcc")
    UI_HEADERS_DIR = $$join(HIPASEPLATFORM,,"./",".ui")
    UI_SOURCES_DIR = $$join(HIPASEPLATFORM,,"./",".ui")

    INCLUDEPATH += .
    ./common/public/include
    ./extern/qtitanribbon/include
    ../../sourcen/tool/tfr/code

    LIBS += -lopengl32
    -lglu32
    DEPENDPATH += .

    include(HipaseTool.pri)
    win32:RC_FILE = HipaseTool.rc@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.