Important: Please read the Qt Code of Conduct -

Cannot open file opencv_hal310d.lib

  • 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:

    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


  • 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?

Log in to reply