mercredi 2 novembre 2016

C++ program can't start because a .dll is missing, but it should be looking for a .lib

I'm using QT Creator to develop an app. Running the code in QTC results in the program crashing so I went to the path of the program's executable. When I try to run it, I get the message: "The program can't start because libname.dll is missing from your computer." This is strange because libname.dll doesn't exist, though libname.lib does.

In the .pro file of my app, the following lines were automatically inserted when linking the appropriate library:

    unix:!macx|win32: LIBS += -L$$PWD/../../libname/lib/ -luhd

    win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../libname/lib/uhd.lib
    else:unix:!macx|win32-g++: PRE_TARGETDEPS +=   $$PWD/../../libname/lib/libuhd.a

I looked through the qmake files and there is no mention of a libname.dll so is there anything I could be missing here?

Aucun commentaire:

Enregistrer un commentaire