Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    2
    5
    26362
    Loading More Posts
    • 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
      claudiogc last edited by

      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 Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        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 Reply Quote 0
        • C
          claudiogc last edited by

          [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 Reply Quote 0
          • JKSH
            JKSH Moderators last edited by

            [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 Reply Quote 0
            • C
              claudiogc last edited by

              [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 Reply Quote 0
              • First post
                Last post