Qt cannot find Qt3D's modules
I'm using Qt 5.7 in Windows with MSVC 2013 compiler. but when I want to compile Qt3D samples such as 'materials' I get following error:
Project ERROR: Unknown module(s) in QT: 3dcore 3drender 3dinput 3dlogic 3dextras
I've searched the Internet, and in one of the forums was wrote recompile Qt3D module and I did it. but It didn't work.
I know this question has asked for several time, and I read most of them, yet I couldn't find the answer.
OK, I found the solution:
- Recompile Qt3D from Src directory
- Copy content of 'mkspecs' directory from the build directory to the 'mkspecs' directory of Qt
- Copy content of 'lib' directory from build directory of Qt3D to the 'lib' directory of Qt