Trouble with moc when compiling with Qt Creator on Windows

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble with moc when compiling with Qt Creator on Windows

Tiansen
Hello,

I get following error when trying to compile Librecad on Windows with Qt Creator:

/usr/bin/sh: C:\Qt\5.11.2\mingw53_32\bin\moc.exe: command not found

However moc.exe can be found under this path. I think that issue may be linked to calling /usr/bin/sh to run moc.exe. I searched for references to this in Librecad project to fix this but cannot find any. Any ideas what I can try to solve this?
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with moc when compiling with Qt Creator on Windows

Tiansen
Nobody encountered this error?
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with moc when compiling with Qt Creator on Windows

LordOfBikes
Administrator
Nope, not yet.

This sounds like a Qt setup issue. Moc, the meta object compiler, is part of Qt and should work out of the box.
Is this the first time using Qt?
Have you other projects to test with Qt or tried to build a Qt example project?
Which windows version?
Which Qt 5.11 package, MinGW or VS?

Armin
Reply | Threaded
Open this post in threaded view
|

Re: Trouble with moc when compiling with Qt Creator on Windows

Shawn.Curry
In reply to this post by Tiansen
/usr/bin/sh wouldn't be a valid command on Windows unless you're in a cygwin shell or something.

You try it without that?  

By the way, I've made several changes that were just merged today, which address many issues with the windows build process.  Try starting from scratch now and follow the build instructions carefully.  By "from scratch" I mean uninstall everything including Qt.  I agree with Armin's assessment, you probably made a wrong turn somewhere with your Qt install.