Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Link Error in OpenCV



  • Hi I am trying to execute the code from https://github.com/MasteringOpenCV/code/tree/master/Chapter4_StructureFromMotion
    I have built it using cmake but i get these error

    1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
    1>Build started 3/4/2014 1:37:00 PM.
    1>InitializeBuildStatus:
    1> Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
    1>FinalizeBuildStatus:
    1> Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
    1> Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:00.07
    2>------ Build started: Project: ExploringSfMExec, Configuration: Debug Win32 ------
    2>Build started 3/4/2014 1:37:00 PM.
    2>InitializeBuildStatus:
    2> Touching "ExploringSfMExec.dir\Debug\ExploringSfMExec.unsuccessfulbuild".
    2>CustomBuild:
    2> All outputs are up-to-date.
    2>ClCompile:
    2> All outputs are up-to-date.
    2>ManifestResourceCompile:
    2> All outputs are up-to-date.
    2>LINK : fatal error LNK1104: cannot open file 'C:\Qt\4.8.0\lib\QtGuid4.lib'
    2>
    2>Build FAILED.
    2>
    2>Time Elapsed 00:00:00.18
    3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
    3>Build started 3/4/2014 1:37:00 PM.
    3>InitializeBuildStatus:
    3> Creating "Win32\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.
    3>CustomBuild:
    3> Build all projects
    3>FinalizeBuildStatus:
    3> Deleting file "Win32\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
    3> Touching "Win32\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".
    3>
    3>Build succeeded.
    3>
    3>Time Elapsed 00:00:00.07
    ========== Build: 2 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    Is some header file missing ????? Actually i dont have a file like C:\Qt\4.8.0\lib\QtGuid4.lib (iit was previously installed but i removed it later) i do have qt installed it is opensource it is installed in E:\OpenCV\dep\qt\qt-everywhere-opensource-src-4.8.4 and i have also installed PCL 1.6.0 All-In-One Installer but i checked it does not have Qt 4.8.0 in the 3rd party library. What should i do? Should i install 4.8.0


  • Lifetime Qt Champion

    Hi,

    You should update your project to use your new Qt and you should be good to go


Log in to reply