libdash icon indicating copy to clipboard operation
libdash copied to clipboard

error MSB6006: "cmd.exe" exited with code 3.

Open wafaaoudh opened this issue 6 years ago • 2 comments

hi i try to open Libdash library on VS 2017 , and build solution , i have this error

4>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 3.

can you help me to solve this problem plz ?

wafaaoudh avatar Sep 18 '18 23:09 wafaaoudh

Hello,

The error comes from custom build step against file qtsampleplayer.ui

The command looks like: "$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"

It looks for uic.exe at $(QTDIR)\bin so you need to download and install Qt for Windows with build tools for VS 2017, then you need to create env variable QTDIR and specify path to msvc2017, for example in my case this is C:\Qt\5.12.4\msvc2017

After that you can rebuild qtsampleplayer project with no errors but you going need to copy Qt dlls to same folder where qtsampleplayer is started from.

gmayevsky avatar Sep 10 '19 19:09 gmayevsky

Hello,

The error comes from custom build step against file qtsampleplayer.ui

The command looks like: "$(QTDIR)\bin\uic.exe" -o ".\GeneratedFiles\ui_%(Filename).h" "%(FullPath)"

It looks for uic.exe at $(QTDIR)\bin so you need to download and install Qt for Windows with build tools for VS 2017, then you need to create env variable QTDIR and specify path to msvc2017, for example in my case this is C:\Qt\5.12.4\msvc2017

After that you can rebuild qtsampleplayer project with no errors but you going need to copy Qt dlls to same folder where qtsampleplayer is started from.

Thanks It worked

gnsharans avatar Apr 30 '20 08:04 gnsharans