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. Compiling a library on a system with no qmake installation
QtWS25 Last Chance

Compiling a library on a system with no qmake installation

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 1.7k 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.
  • V Offline
    V Offline
    valandil211
    wrote on last edited by
    #1

    I'm trying to compile a library that I wrote in Qt Creator using qmake on a remote machine which does not have qmake installed. I thought that running "make" on the qmake-generated Makefile would work without qmake present, but apparently it doesn't.

    Is there a way to generate a Makefile on a machine and using this same Makefile on another machine to compile the library?

    Thanks!

    Joey Dumont

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

      You would still need moc to be present for the build to succeed.

      (Z(:^

      1 Reply Last reply
      0
      • V Offline
        V Offline
        valandil211
        wrote on last edited by
        #3

        The library does not depend on any way on Qt. I just wanted to use the IDE.

        Joey Dumont

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

          Why use qmake then? There is Scons, Cmake, and many other build systems to choose from :)

          Going back to your question - take a look at the Makefile. It is certainly possible to reuse it on a different machine, but it's also very probable that some paths are wrong. You can safely edit and adjust the file by hand to match the target machine.

          (Z(:^

          1 Reply Last reply
          0
          • V Offline
            V Offline
            valandil211
            wrote on last edited by
            #5

            Well, at first, I didn't know I would have to compile on machine without qmake!

            Anyway, I found that the easiest way was to manually compile the library. It's not big, so it's pretty usable.

            Thanks for your time!

            Joey Dumont

            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