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. Linking CXX shared library ..\..\bin\libopencv_core341.dll CMAKE/OPENCV ERROR
Forum Update on Monday, May 27th 2025

Linking CXX shared library ..\..\bin\libopencv_core341.dll CMAKE/OPENCV ERROR

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 3.4k 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.
  • R Offline
    R Offline
    R-P-H
    wrote on 15 Mar 2018, 10:05 last edited by R-P-H
    #1

    Hi, I am trying to setup the OpenCV image processing library v3.4.1 with QT v5.10.1 and cmake-gui v3.10.2 using the guide here: How_to_setup_Qt_and_openCV_on_Windows . I am using Windows 7 64bit.

    I have followed all instructions exactly but when I run the command mingw32-make I get the following error:

    [ 37%] Linking CXX shared library ..\..\bin\libopencv_core341.dll
    CMakeFiles\opencv_core.dir/objects.a: member CMakeFiles\opencv_core.dir/objects.
    a(vs_version.rc.obj) in archive is not an object
    collect2.exe: error: ld returned 1 exit status
    modules\core\CMakeFiles\opencv_core.dir\build.make:2329: recipe for target 'bin/
    libopencv_core341.dll' failed
    mingw32-make[2]: *** [bin/libopencv_core341.dll] Error 1
    CMakeFiles\Makefile2:1675: recipe for target 'modules/core/CMakeFiles/opencv_cor
    e.dir/all' failed
    mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
    Makefile:161: recipe for target 'all' failed
    mingw32-make: *** [all] Error 2
    

    I have already tried disabling "pre-compiled-headers" in CMAKE. I have searched endlessly for a solution but nothing has worked thus far.

    OpenCV v2.4.13.6 compiles/builds without any issues

    Any help is appreciated, thanks !

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pablo J. Rogina
      wrote on 16 Mar 2018, 15:33 last edited by
      #2

      @R-P-H strictly speaking this issue is not related to Qt but to OpenCV itself :-)
      Either way, it looks like this issue might apply to you.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      R 1 Reply Last reply 16 Mar 2018, 16:00
      0
      • P Pablo J. Rogina
        16 Mar 2018, 15:33

        @R-P-H strictly speaking this issue is not related to Qt but to OpenCV itself :-)
        Either way, it looks like this issue might apply to you.

        R Offline
        R Offline
        R-P-H
        wrote on 16 Mar 2018, 16:00 last edited by
        #3

        @Pablo-J.-Rogina said in Linking CXX shared library ..\..\bin\libopencv_core341.dll CMAKE/OPENCV ERROR:

        @R-P-H strictly speaking this issue is not related to Qt but to OpenCV itself :-)
        Either way, it looks like this issue might apply to you.

        Hi, "WITH-IPP" is already disabled in my CMAKE version.

        1 Reply Last reply
        1
        • P Offline
          P Offline
          phuong
          wrote on 23 Feb 2020, 10:05 last edited by
          #4

          In cmake gui add entry OPENCV_VS_VERSIONINFO_SKIP=1. I had fixed the same error with that.

          E 1 Reply Last reply 27 Jun 2022, 12:08
          2
          • P phuong
            23 Feb 2020, 10:05

            In cmake gui add entry OPENCV_VS_VERSIONINFO_SKIP=1. I had fixed the same error with that.

            E Offline
            E Offline
            Edina
            wrote on 27 Jun 2022, 12:08 last edited by
            #5

            @phuong This has just solved my problem as well, THANK YOU!

            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