Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wafaaoudh opened this issue Sep 18, 2018 · 2 comments
Open

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

wafaaoudh opened this issue Sep 18, 2018 · 2 comments

Comments

@wafaaoudh
Copy link

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 ?

@gmayevsky
Copy link

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.

@gnsharans
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants