Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator with VS2010 toolchain: .obj file not found
Forum Update on Monday, May 27th 2025

Qt Creator with VS2010 toolchain: .obj file not found

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 3.1k 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on 13 Jul 2012, 08:09 last edited by
    #1

    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@

    1 Reply Last reply
    0

    1/1

    13 Jul 2012, 08:09

    • Login

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