moc.exe fails in VisualStudio
up vote
0
down vote
favorite
When I try to compile a Qt-project in Visual Studio 2017, I stumble upon a error in moc.exe:
Error MSB3721 The command ""Qtbinmoc.exe" -i -DUNICODE -DWIN32 -DQT_THREAD_SUPPORT -DQT_CORE_LIB -o "DebugMergemoc_DbgWindow.cpp" DbgWindow.h" exited with code 1.
When I have a look into the project settings, section "Qt: Meta Object compiler" -> "Command line", the reason is quite clear, there a command
"Qtbinmoc.exe"
is specified while this path to "Qtbin" does not exist.
My question: where can I change this path? I can't find a related parameter somewhere in VS2017 settings and even when I open the solution and project file in notepad, this path is defined nowhere! So where does it come from?
Thanks!
visual-studio qt visual-studio-2017
add a comment |
up vote
0
down vote
favorite
When I try to compile a Qt-project in Visual Studio 2017, I stumble upon a error in moc.exe:
Error MSB3721 The command ""Qtbinmoc.exe" -i -DUNICODE -DWIN32 -DQT_THREAD_SUPPORT -DQT_CORE_LIB -o "DebugMergemoc_DbgWindow.cpp" DbgWindow.h" exited with code 1.
When I have a look into the project settings, section "Qt: Meta Object compiler" -> "Command line", the reason is quite clear, there a command
"Qtbinmoc.exe"
is specified while this path to "Qtbin" does not exist.
My question: where can I change this path? I can't find a related parameter somewhere in VS2017 settings and even when I open the solution and project file in notepad, this path is defined nowhere! So where does it come from?
Thanks!
visual-studio qt visual-studio-2017
Do you use a Qt VisualStudio plugin?
– vahancho
Nov 8 at 11:21
@vahancho no, just the plain studio
– Elmi
Nov 8 at 11:52
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When I try to compile a Qt-project in Visual Studio 2017, I stumble upon a error in moc.exe:
Error MSB3721 The command ""Qtbinmoc.exe" -i -DUNICODE -DWIN32 -DQT_THREAD_SUPPORT -DQT_CORE_LIB -o "DebugMergemoc_DbgWindow.cpp" DbgWindow.h" exited with code 1.
When I have a look into the project settings, section "Qt: Meta Object compiler" -> "Command line", the reason is quite clear, there a command
"Qtbinmoc.exe"
is specified while this path to "Qtbin" does not exist.
My question: where can I change this path? I can't find a related parameter somewhere in VS2017 settings and even when I open the solution and project file in notepad, this path is defined nowhere! So where does it come from?
Thanks!
visual-studio qt visual-studio-2017
When I try to compile a Qt-project in Visual Studio 2017, I stumble upon a error in moc.exe:
Error MSB3721 The command ""Qtbinmoc.exe" -i -DUNICODE -DWIN32 -DQT_THREAD_SUPPORT -DQT_CORE_LIB -o "DebugMergemoc_DbgWindow.cpp" DbgWindow.h" exited with code 1.
When I have a look into the project settings, section "Qt: Meta Object compiler" -> "Command line", the reason is quite clear, there a command
"Qtbinmoc.exe"
is specified while this path to "Qtbin" does not exist.
My question: where can I change this path? I can't find a related parameter somewhere in VS2017 settings and even when I open the solution and project file in notepad, this path is defined nowhere! So where does it come from?
Thanks!
visual-studio qt visual-studio-2017
visual-studio qt visual-studio-2017
asked Nov 8 at 6:41
Elmi
2,09864086
2,09864086
Do you use a Qt VisualStudio plugin?
– vahancho
Nov 8 at 11:21
@vahancho no, just the plain studio
– Elmi
Nov 8 at 11:52
add a comment |
Do you use a Qt VisualStudio plugin?
– vahancho
Nov 8 at 11:21
@vahancho no, just the plain studio
– Elmi
Nov 8 at 11:52
Do you use a Qt VisualStudio plugin?
– vahancho
Nov 8 at 11:21
Do you use a Qt VisualStudio plugin?
– vahancho
Nov 8 at 11:21
@vahancho no, just the plain studio
– Elmi
Nov 8 at 11:52
@vahancho no, just the plain studio
– Elmi
Nov 8 at 11:52
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53202631%2fmoc-exe-fails-in-visualstudio%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you use a Qt VisualStudio plugin?
– vahancho
Nov 8 at 11:21
@vahancho no, just the plain studio
– Elmi
Nov 8 at 11:52