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. How may I supply the qt5 configure script with the path to the C++ compiler I wish to use?

How may I supply the qt5 configure script with the path to the C++ compiler I wish to use?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
7 Posts 3 Posters 441 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.
  • 1 Offline
    1 Offline
    1r536qvi
    wrote on last edited by
    #1

    I'd like to use a different path to my C++ compiler, but the configure script doesn't seem to honor the CXX env var. How may I achieve that?

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

      Hi and welcome to devnet,

      Which OS are you on ?
      Which compiler is that ?
      How are you calling configure ?

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

      1 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which OS are you on ?
        Which compiler is that ?
        How are you calling configure ?

        1 Offline
        1 Offline
        1r536qvi
        wrote on last edited by 1r536qvi
        #3

        @SGaist Thanks! I'm on Linux, the compiler is a freshly compiled GCC.
        This is how I call configure:
        CC='/path/to/gcc' CXX='/path/to/g++' /path/to/configure args. The make output still shows it using the regular g++.

        Edit: I've checked out 5.15.2. I cant post it properly because of the reputation block.

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

          Which version of Qt are you trying to build ?

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

          1 1 Reply Last reply
          0
          • SGaistS SGaist

            Which version of Qt are you trying to build ?

            1 Offline
            1 Offline
            1r536qvi
            wrote on last edited by 1r536qvi
            #5

            @SGaist I've checked out 5.15.2. Sorry for the late relpy, I lack the reputation to post faster.

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

              One possible way is to create a custom makspec that makes use of your particular GCC build.

              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
              1
              • KH-219DesignK Offline
                KH-219DesignK Offline
                KH-219Design
                wrote on last edited by
                #7

                Just to build on @SGaist 's remarks, some info regarding what Qt has named mkspecs:

                https://doc.qt.io/qt-5/configure-options.html#compiler-options

                www.219design.com
                Software | Electrical | Mechanical | Product Design

                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