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. Compile+Build with external gcc

Compile+Build with external gcc

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 3 Posters 3.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.
  • Z Offline
    Z Offline
    zvivered
    wrote on last edited by
    #1

    Hello,

    I want to build a QT console application with external gcc toolchain (created with the crosstool-ng project)
    and not with the default gcc installed on my Centos 5.8

    Is it possible ?

    I need external gcc because my application will run under kernel 2.6.27.35
    The toolchain was build using this kernel headers.

    Centos 5.8 runs with a patched 2.6.18 kernel.

    Thanks,
    Zvika

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

      It is. If you are using Qt Creator, use Tools and Kits to set up your toolchain. If you are using just qmake, you need to adjust one of the mkspecs (or create your own) from <install dir>/mkspecs so that it uses the compiler you want, and then run your project with:
      @
      qmake -spec name-of-your-makespec
      make
      @

      (Z(:^

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

        You will need to edit the mkspec when using qmake (provided your GCC is not called gcc/g++), even if you point creator to the right tool chain: Unfortunately we can not set the compiler name that qmake will use:-/ That needs to be changed in the mkspec.

        The path to the compiler will be set by creator.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          zvivered
          wrote on last edited by
          #4

          Dear Members,

          After downloading and extracting qt-everywhere-opensource-src-4.8.3.tar.gz should I compile it using the external gcc ?

          What is the role of " -embedded " in the .configure phase ?

          Thanks,
          Zvika

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

            What is this "external gcc" you are talking about? I am not aware of any internal one, so I keep wondering:-)

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zvivered
              wrote on last edited by
              #6

              Hello,

              The "external gcc" is a gcc toolchain built with crosstool-ng project (1.5.2).
              This toolchain was used to build the kernel (2.6.27.35), device driver and application.

              I think all libraries I'm using (e.g QT) should also built with this toolchain.
              Am I right ?

              Thanks,
              Zvika

              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