Qt VS Tools Cross-Compile Raspberry Pi won't build
-
I've been trying to build the default QtWidget project for both the Raspberry Pi and Windows.
Unfortunately I've been experiencing the below issue.
What is the problem here and how do I solve it? I can get it to build for Windows just fine but no luck with the Raspberry PI.
Are there any up-to-date guides on how to set this up properly step-by-step?Thanks in advance for any help.
The only generated files says the following:
-
I managed to fix most of the errors but not the "The "HostExec" task failed unexpectedly." and as such I still cannot built the project for the Raspberry Pi.
The other errors I fixed by manually including the linux built qt version like this:
Followed by changing the C++ versions to C++17 like this:
And finally by undefining the following:
I also had to manually open QtDemo.ui in the Qt Designer and save the generated file by going to Form->View C++ Code->Save in the main directory of the projects. Lastly add the file to the actual project as well.
-
Nobody knows how to sort this out?
I had been working on making an app on windows with the intention of using it on the Raspberry Pi. I was expecting this step to be a walk in the park but it obviously isn't...
Anybody knows of an alternative solution if this can't be sorted out? Or where else can I ask for help about this?
-
Hello Exioncore,
I can't help you because I haven't gotten to where you are yet! Maybe you can help me, how did you add wt mvc in Qt Vs Tools? I've been trying for days but I can't find solutions. This is the error in visual Studio 2022vcvars: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat Exception "Illegal characters in path.": at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.IO.Path.Combine(String path1, String path2) at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at QtVsTools.Core.HelperFunctions.SetVCVars(VersionInformation VersionInfo, ProcessStartInfo startInfo) at QtVsTools.Core.QMake.Run(Boolean setVCVars) Error reading VS project settings Stacktrace: at QtVsTools.Core.VersionInformation..ctor(String qtDirIn) at QtVsTools.Core.VersionInformation.Get(String qtDir) at QtVsTools.Options.QtVersionsPage.SaveSettingsToStorage() in C:\dev\source\qtlabs\vstools\QtVsTools.Package\Options\QtVersionsPage.cs:line 93
Thanks.