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. Install QtSerialPort to alternate location?
QtWS25 Last Chance

Install QtSerialPort to alternate location?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 1.5k 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.
  • M Offline
    M Offline
    mwoehlke-kitware
    wrote on last edited by
    #1

    I have successfully built the (old) 'stable' branch of QtSerialPort. Now I would like to install it to a custom prefix. How do I do this? Using 'qmake PREFIX=/path' did not work.

    Note that I'm trying to build it against Qt4 as a stand-alone library, and also that 5.3 currently fails to build¹ in this configuration which is why I'm building the older 'stable' instead.

    ¹ https://bugreports.qt-project.org/browse/QTBUG-41190

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      A fix is on its way

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Fixed, you can clone the repository from GIT and you should be able to build with Qt 4

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mwoehlke-kitware
          wrote on last edited by
          #4

          This wasn't about building against Qt 4, but installing to a non-default location. Has that been addressed? I didn't see any changes that seemed relevant.

          (I am now able to build against Qt 4, though; thanks for that.)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Do you mean installing one Qt module outside Qt's install folder ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mwoehlke-kitware
              wrote on last edited by
              #6

              Yes. I am trying to build QtSerialPort as part of a larger project that needs to use the serial port. This project should not be required to build all of Qt4 also, and installing QtSerialPort as root is not acceptable. I need to install QtSerialPort to a user writable directory. (Specifically, it should be installed to the prefix /project/root/build/install, where QtSerialPort itself is built in something like /project/root/projects/QtSerialPort/build.)

              It might be possible to use it without installing it, although that is not preferable and might cause other problems down the road (e.g. when we need to build installers for this project).

              For the moment I am just ignoring the qmake project files and have rolled my own build system for QtSerialPort using CMake, which natively supports an install prefix.

              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