Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can't Compile Project on Different Computers

Can't Compile Project on Different Computers

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 4.7k Views 1 Watching
  • 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
    AeroWRX
    wrote on last edited by
    #1

    I created the Transitions example project on my desktop which runs fine. However, when I run it from my laptop, i get a whole bunch of compilation errors. Can I not compile projects on different computers when they are created on a different one?

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      can u tell the error?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Which error do you get? What exactly are you doing? Are you working on the command line or in Qt Creator or another IDE? Do you have all the required headers/libraries installed on your laptop?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AeroWRX
          wrote on last edited by
          #4

          I am using the QT Creator and i followed the documentation to make the Transitions Project to learn. The QT project files are all saved in the My Documents Dropbox so it's shared to my online dropbox account.

          The libraries and headers are all in the Qt project file and both computers are just running the same file.

          I tried opening it with my laptop and running it but get all these errors:
          !http://img703.imageshack.us/img703/4117/erorrs2.jpg(errors)!

          I don't get it, OpenCV and Nokia QT are installed in the same directories on both computers and running the project files from literally the same spot (in my dropbox), but the desktop can run it while the laptop gets these errors.

          I also get the same errors when I download other people's sample projects and try to run it and it would tell me the same thing.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AeroWRX
            wrote on last edited by
            #5

            I deleted the folder that gets created upon compilation and the .user file that comes with the project file:
            "Transitions-build-desktop-Qt_4_8_0_for_Desktop_-_MinGW__Qt_SDK__Debug"

            After deleting these two items, I can open and run it on both computers. Which is odd, because "Transitions-build-desktop-Qt_4_8_0_for_Desktop_-_MinGW__Qt_SDK__Debug" folder and .user files get recreated each time the project is ran on either computers now anyways and it no longer prevents me from running the project on multiple computers...

            Any ideas as to what was wrong?

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              First thing: .user files can not be shared between computers.

              Second thing: If you share the build directory then you have to make sure you have the exact same compiler versions, libraries, etc. Plus everything has to be in exactly the same place. So I would strongly recommend against sharing build directories.

              Sharing sources between computers, that is what version control systems are for! Please consider using one of the many version control systems supported by Qt Creator in favor of dropbox. I promise that once you get over the initial hurdles of setting them up (check out git, mercurial and bazaar, they do not need a dedicated server), you will not want to work without one again.

              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