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