Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can't translate sub projects
I would like to translate my project, so I use Qt linguist.
After resolving "Project ERROR: Cannot run compiler 'cl'" by adding cl.exe into path,
I have the follong problem :
lupdate warning: no TS files specified. Only diagnostics will be produced for 'E:/projets/Mediacad2_ODA4.3.2/Mediacad2.pro'.
It's logic because Mediacad2.pro has no translation but its subproject does, Mediacad2.pro looks like this:
TEMPLATE = subdirs SUBDIRS += \ MdCore \ MdWidgets \ #... # where to find the sub projects - give the folders MdDC3.subdir = MdDC3 MdBatch.subdir = MdBatch MdCore.subdir = MdCore #... # what subproject depends on others MdDC3.depends = MdCore #...
What I missed ?
I also compile on MACOS and I have no problem.
What version of Qt are you using on Windows ?
Is it the same that you are using on macOS ?
Can you reproduce that with a minimal project ?
I work with Qt 5.10 on both platform.
I compile with VS2015 on windows
Then, can you reduce the project to a testable size to see what's going wrong ?
It's start after 30 minutes, and process takes lot of resources even with one of my subprojects.
Hence the proposition of creating a minimal sample project that triggers the same error.
on simple project it works.
It's very strange. Do lupdate search in "include" directories in addition to project files?
What do you mean by that ?
because it takes a lot of time (maybe it scan other directories).
I think it's a qt configuration problem on window (no problem on mac).
Maybe the resolution of "Project ERROR: Cannot run compiler 'cl'" cause another problem...
The CL problem is usually:
- Missing Visual Studio
- Wrong installation of Visual Studio i.e. C++ not selected on installation.
Is either your case ?