Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt VS Tools Cross-Compile Raspberry Pi won't build

Qt VS Tools Cross-Compile Raspberry Pi won't build

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 460 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Exioncore
    wrote on last edited by Exioncore
    #1

    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.
    3390af84-9932-4194-95fb-07e5b7372768-image.png

    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:
    0b28da3e-b195-4db3-adad-5fe2698e0013-image.png

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Exioncore
      wrote on last edited by Exioncore
      #2

      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:
      89ead6a2-02f0-456c-b720-9d78d4432321-image.png
      Followed by changing the C++ versions to C++17 like this:
      05f78470-3372-4f71-9527-f0718bee9e37-image.png
      And finally by undefining the following:
      4bb3a831-08c7-4a5e-a9eb-f03276f71add-image.png

      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.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Exioncore
        wrote on last edited by Exioncore
        #3

        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?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          Gio26
          wrote on last edited by
          #4

          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 2022

          vcvars: 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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved