Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Build QT 5 project on Linux

Build QT 5 project on Linux

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 2 Posters 3.4k 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.
  • K Offline
    K Offline
    Kalli_89
    wrote on last edited by
    #1

    Hello everyone,
    I have created a Qt project using QT creator on Windows. I want to build this project on LInux. What all steps i need to follow?
    Steps i did:

    1. cmake
    2. make
      But getting some code related error messages.
      Do i need to make any changes in the code or it should build fine directly with make?
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Show us those errors, please.

      Usually there is no need to change anything in code if your are using solely Qt APIs.

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kalli_89
        wrote on last edited by
        #3

        Please check this snapshot for
        reference.
        !https://plus.google.com/photos/106302858773546600656/albums/5898225545723964369/5898225585996320594?banner=pwa&pid=5898225585996320594&oid=106302858773546600656()!

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kalli_89
          wrote on last edited by
          #4

          Please check this spanshot for
          reference.
          !https://plus.google.com/photos/106302858773546600656/albums/5898225545723964369/5898225585996320594?banner=pwa&pid=5898225585996320594&oid=106302858773546600656()!

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            I suspect you are missing some Qt dependencies, but am not sure.

            (Z(:^

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Kalli_89
              wrote on last edited by
              #6

              Same is running on Windows with QT creator.. :(

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Well, yes. Obviously, dependencies differ depending on the platform. You seem to be missing accessible stuff.

                Have you compiled Qt yourself, or run the prepackaged installer?

                Quoting from "build guide":http://qt-project.org/wiki/Building_Qt_5_from_Git:
                [quote]Accessibility
                It is recommended to build with accessibility enabled, install libatspi 2 and libdbus-1 development packages.[/quote]

                (Z(:^

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Kalli_89
                  wrote on last edited by
                  #8

                  Yes, I am running it by myself using cmake and make under qt5 - 5.0.2

                  1 Reply Last reply
                  0
                  • sierdzioS Offline
                    sierdzioS Offline
                    sierdzio
                    Moderators
                    wrote on last edited by
                    #9

                    I'm not asking about your project - it's obvious you did compile that yourself. I am asking about Qt5 lobraries themselves: have you downloaded Qt5 source code and compiled it successfully, or are you using precompiled package? What is your OS?

                    Still, please try installing libs I talked about in my previous post, those might help.

                    (Z(:^

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      Kalli_89
                      wrote on last edited by
                      #10

                      I tried against qt 5.0.2 compiled from src for our target board.
                      OS is linux

                      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