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. [SOLVED]Configuring GCC and G++ in Qt Creator.
QtWS25 Last Chance

[SOLVED]Configuring GCC and G++ in Qt Creator.

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

    Hello, guys!
    I installed Gcc and G++ 4.7 in my computer but Qt Creator(last version) doesn't detect him! I'm using Debian Squeeze 6.0.7. Could someone help me to configure it?

    I'm having this error message when i try to compile a simple program:
    [quote]:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.[/quote]

    Thank you, guys.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hello,

      First, add a compiler: http://qt-project.org/doc/qtcreator-2.7/creator-tool-chains.html
      Then, add a kit: http://qt-project.org/doc/qtcreator-2.7/creator-targets.html

      (If Qt Creator doesn't detect your version of Qt, add it before the kit: http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake.html )

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • C Offline
        C Offline
        claudiogc
        wrote on last edited by
        #3

        [quote author="JKSH" date="1367110900"]Hello,

        First, add a compiler: http://qt-project.org/doc/qtcreator-2.7/creator-tool-chains.html
        Then, add a kit: http://qt-project.org/doc/qtcreator-2.7/creator-targets.html

        (If Qt Creator doesn't detect your version of Qt, add it before the kit: http://qt-project.org/doc/qtcreator-2.7/creator-project-qmake.html )[/quote]

        Ok, i did what you said. Now the error message is:
        [quote]:-1: error: cannot find -lGL
        :-1: error: collect2: error: ld returned 1 exit status[/quote]

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [quote author="claudiogc" date="1367111462"]Now the error message is:
          [quote]:-1: error: cannot find -lGL
          :-1: error: collect2: error: ld returned 1 exit status[/quote][/quote]That error message means that your system can't find OpenGL development libraries. See http://qt-project.org/forums/viewthread/26931

          (By the way, it's useful to search for your error messages on Google/Bing/DuckDuckGo/etc. -- most probably, other people will have encountered the same error and have posted a solution for it)

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • C Offline
            C Offline
            claudiogc
            wrote on last edited by
            #5

            [quote author="JKSH" date="1367112079"][quote author="claudiogc" date="1367111462"]Now the error message is:
            [quote]:-1: error: cannot find -lGL
            :-1: error: collect2: error: ld returned 1 exit status[/quote][/quote]That error message means that your system can't find OpenGL development libraries. See http://qt-project.org/forums/viewthread/26931

            (By the way, it's useful to search for your error messages on Google/Bing/DuckDuckGo/etc. -- most probably, other people will have encountered the same error and have posted a solution for it)[/quote]

            Problem solved. Thank you very much, my friend.

            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