Qt Creator on iMAC and Windows 10
-
I've been working on my iMAC for a long time using Qt Creator. My iMAC:
macOS Monterey
Version 12.7.1
iMac (Retina 5K, 27-inch, Late 2015)
Processor 4 GHz Quad-Core Intel Core i7
Memory 16 GB 1867 MHz DDR3
Graphics AMD Radeon R9 M395X 4GBQt on iMAC:
Qt Creator 11.0.3
Based on Qt 6.4.3 (Clang 13.0 (Apple), x86_64)
Built on Sep 27 2023 06:47:32
From revision 68359f96a9Today I've set-up Oracle VirtualBox on my iMAC with Windows 10, updated it and then installed Qt Creator and Microsoft Visual Studio Community edition. Qt on Windows 10 VM:
Qt Creator 12.0.0
Based on Qt 6.6.0 (MSVC 2019, x86_64)
Built on Nov 22 2023 07:38:51
From revision 27055e4c39I've copied the project folder from the iMAC to the VM, I then tried to open the project file, XMLMPAM.pro
A dialog is displayed containing:
No Valid Settings Found - Qt Creator
No valid settings file could be found
All settings files found in directory "D:\XMLMPAM\XMLMPAM.pro.user" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because a different settings path was used.Can anyone help? I don't plan to develop the application on Windows but I do want to build it and try it out to see how it looks.
-
-
The pro.user file is not part of your sources - you can and must not use it on another computer.
-
@Christian-Ehrlicher , thank you, these are the steps, which I've repeated for this post:
- Start Windows 10 VM
- Launch Qt Creator
- Click Open Project...
- Select XMLMPAM.pro using the file explorer, this is not XMLMPAM.pro.user
A dialog is displayed containing:
No Valid Settings Found - Qt Creator
No valid settings file could be found
All settings files found in directory "D:\XMLMPAM\XMLMPAM.pro.user" were unsuitable for the current version of Qt Creator, for instance because they were written by an incompatible version of Qt Creator, or because a different settings path was used.Thats it.
-
Again: XMLMPAM.pro.user must not be checked in into your sources - remove it.
-
@Christian-Ehrlicher , thanks, I think I've found the problem, after launching the maintenance wizard Qt5.15.2 wasn't installed which is what my project requires, I'm installing that now and will remove the .pro.user file then try again...
The dialog could have been a bit more helpful.
-
@SPlatten said in Qt Creator on iMAC and Windows 10:
for instance because they were written by an incompatible version of Qt Creator, or because a different settings path was used.
If this is not enough hint that the pro.user file is wrong and must not be checked in in your source repository I don't know what to write else...
-
I've progressed further, however on the Windows VM I'm using the community version of MSVC 2022, is there any guide lines on how to set-up Qt to use this as a C++ compiler ?
I'm using Qt 5.15.2
[EDIT] Found this https://www.youtube.com/watch?v=TfEttsC1vEA and working through it.
-
I am a little further along, having installed MSVC 2019 Community edition and Qt 5.15.2, now the issue when I try to build the project:
D:\XMLMPAM\clsDebugService.cpp:5: error: C1083: Cannot open include file: 'errno.h': No such file or directory D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstddef:12: error: C1083: Cannot open include file: 'stddef.h': No such file or directory D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstddef:12: error: C1083: Cannot open include file: 'stddef.h': No such file or directory D:\XMLMPAM\clsModule.cpp:6: error: C1083: Cannot open include file: 'errno.h': No such file or directory D:\XMLMPAM\clsModHelper.h:69: error: C1083: Cannot open include file: 'stdio.h': No such file or directory D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\cstddef:12: error: C1083: Cannot open include file: 'stddef.h': No such file or directory D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\yvals.h:12: error: C1083: Cannot open include file: 'crtdbg.h': No such file or directory
Obviously something is wrong with the configuration, however I'm not sure what I need to do to fix it.