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. Struggling Trying to Transfer Project from old laptop to new laptop

Struggling Trying to Transfer Project from old laptop to new laptop

Scheduled Pinned Locked Moved Unsolved General and Desktop
desktopproject configprojectproject files
8 Posts 5 Posters 1.0k 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.
  • A Offline
    A Offline
    Aditya Gupta
    wrote on 11 Dec 2022, 00:01 last edited by
    #1

    I've been trying, without success, to transfer a Qt project from my old laptop to my new one for the past several hours now. The basic idea I'm using is just to copy across the folder that contains all my source and header files, and then open the project after downloading Qt on my new laptop.

    I followed the advice here namely about deleting .pro.user files and build / release folders, etc. On my new laptop, I can open the project and see all my source files but when it comes to actually building the project I get close to 200 compile errors (none of which appear on the original laptop).

    The compile errors themselves are extremely strange. For example:

    syntax error: missing ')' before identifier 'and'

    '__cxx11': is not a member of 'std'

    From looking up some of the individual error messages online, it seems like I possibly have a circular dependence issue; however, I have no such issue in my original code on my original laptop so I have no idea where this could be coming from.

    I was using Qt 6.0.1 and Qt Creator 4.14.0 on my original laptop; I am using the latest Qt on my new laptop. I don't know if this makes a difference.

    I am really at my wit's end and I would appreciate any help whatsoever.

    J 1 Reply Last reply 11 Dec 2022, 01:26
    0
    • A Aditya Gupta
      11 Dec 2022, 00:01

      I've been trying, without success, to transfer a Qt project from my old laptop to my new one for the past several hours now. The basic idea I'm using is just to copy across the folder that contains all my source and header files, and then open the project after downloading Qt on my new laptop.

      I followed the advice here namely about deleting .pro.user files and build / release folders, etc. On my new laptop, I can open the project and see all my source files but when it comes to actually building the project I get close to 200 compile errors (none of which appear on the original laptop).

      The compile errors themselves are extremely strange. For example:

      syntax error: missing ')' before identifier 'and'

      '__cxx11': is not a member of 'std'

      From looking up some of the individual error messages online, it seems like I possibly have a circular dependence issue; however, I have no such issue in my original code on my original laptop so I have no idea where this could be coming from.

      I was using Qt 6.0.1 and Qt Creator 4.14.0 on my original laptop; I am using the latest Qt on my new laptop. I don't know if this makes a difference.

      I am really at my wit's end and I would appreciate any help whatsoever.

      J Offline
      J Offline
      jeremy_k
      wrote on 11 Dec 2022, 01:26 last edited by
      #2

      What is the first error message? Anything after that may be a cascade caused by the first error, and therefore pointless to diagnose.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      1
      • F Offline
        F Offline
        fadu
        wrote on 12 Dec 2022, 10:40 last edited by
        #3

        @Aditya-Gupta which compiler and qt version you are using in both laptops?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Aditya Gupta
          wrote on 12 Dec 2022, 21:56 last edited by
          #4

          I realised that I wasn't using mingw on my new laptop, and so tried to set it up. However, I ran into a new problem - while mingw was being recognized on my new laptop, I wasn't able to get a kit to use it. Images showing the problem can be viewed here and here.

          Thanks for the replies and once again any help would be much appreciated.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on 12 Dec 2022, 23:22 last edited by
            #5

            Have you installed a Qt version built with MingW to use with that compiler? The Qt you had previously was for MS VC++

            A 1 Reply Last reply 13 Dec 2022, 01:44
            0
            • C ChrisW67
              12 Dec 2022, 23:22

              Have you installed a Qt version built with MingW to use with that compiler? The Qt you had previously was for MS VC++

              A Offline
              A Offline
              Aditya Gupta
              wrote on 13 Dec 2022, 01:44 last edited by
              #6

              @ChrisW67 I hadn't before, but installing the same version of MingW using the Qt installer did give a new option in the kit compiler dropdown. However, once again, the red icon persisted.

              J 1 Reply Last reply 13 Dec 2022, 09:14
              0
              • C Offline
                C Offline
                ChrisW67
                wrote on 13 Dec 2022, 04:26 last edited by ChrisW67
                #7

                Is your MingW Qt version on the Qt Versions tab?
                What is selected in the lower half of the Kits panel? Is your MingW version of Qt, not the MSVC version, selected?

                1 Reply Last reply
                0
                • A Aditya Gupta
                  13 Dec 2022, 01:44

                  @ChrisW67 I hadn't before, but installing the same version of MingW using the Qt installer did give a new option in the kit compiler dropdown. However, once again, the red icon persisted.

                  J Online
                  J Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on 13 Dec 2022, 09:14 last edited by
                  #8

                  @Aditya-Gupta said in Struggling Trying to Transfer Project from old laptop to new laptop:

                  the red icon persisted

                  And what does it say if you put mouse cursor over it?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  8/8

                  13 Dec 2022, 09:14

                  • Login

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