Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt + VS2010: The program can't start because <xyz>.dll is missing from your computer

I have created a visual studio 2010 solution from the following .pro file:

TEMPLATE    = app
CONFIG      += qt yyy zzz debug_and_release
TARGET  = XYZdepth

INCLUDEPATH += .

#HEADERS     = 
SOURCES  = main.cpp xyzMainWidget.cpp

yyy {
        LIBS += $(YYY_DIR)/release/yyy.lib
        INCLUDEPATH += $(YYY_DIR)
}

zzz {
    LIBS += $(ZZZ_DIR)/lib/x86/ZZZ.lib
    INCLUDEPATH += $(ZZZ_DIR)/inc

}

Of course, I've replaced some key words in there. It references yyy.lib, which has a corresponding DLL: yyy.dll.

I can compile XYZdepth in release mode, but when I run it it says:

The program can't start because yyy.dll is missing from your computer. Try reinstalling the program to fix this problem.

Can anyone help with this? Many thanks in advance!

like image 833
Emile Victor Avatar asked Dec 17 '22 00:12

Emile Victor


1 Answers

You likely need to copy the DLLs in question to the folder your executable is in, or ensure that the DLLs are located in a folder in the system's PATH.

like image 56
Grant Limberg Avatar answered Dec 18 '22 14:12

Grant Limberg