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. Cannot open file opencv_hal310d.lib
Qt 6.11 is out! See what's new in the release blog

Cannot open file opencv_hal310d.lib

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 934 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.
  • OmisysO Offline
    OmisysO Offline
    Omisys
    wrote on last edited by
    #1

    Hello,

    I am trying to work on a project in windows which was originally created in ubuntu. I build the opencv3 libraries with VS2013. There is no reference in my code to opencv_hal that I can find but it keeps giving me this linker error: :-1: error: LNK1104: cannot open file 'opencv_hal310d.lib'. It's driving me nuts since I can't find why it is asking for this file. Also the library file isnt in my lib directory, so I don't know why its asking for it. I hope anyone can help.

    This is my pro file for windows:

    win32{
    message("* Using settings for Windows.")
    INCLUDEPATH += C:\opencv3\build\include
    INCLUDEPATH += C:\opencv3\build\include\opencv
    INCLUDEPATH += C:\opencv3\build\include\opencv2
    LIBS += -LC:\opencv3\mybuild\lib\Debug
    -lopencv_shape310d
    -lopencv_stitching310d
    -lopencv_objdetect310d
    -lopencv_superres310d
    -lopencv_videostab310d
    -lopencv_calib3d310d
    -lopencv_features2d310d
    -lopencv_highgui310d
    -lopencv_videoio310d
    -lopencv_video310d
    -lopencv_photo310d
    -lopencv_ml310d
    -lopencv_imgproc310d
    -lopencv_flann310d
    -lopencv_core310d
    }

    Thanks.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      asanka424
      wrote on last edited by
      #2

      As it seems one of the libraries you are linking needs opencv_hal310d.lib. 'Dependency Walker' (as oppose to ldd in linux) is you friend here.

      Also do you need all these opencv libraries in your project?

      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