Qt Creator Issues

In Qt Creator 3.0.0, when including the file <QString>, or any other header file in the Qt Widgets library, there is a dark green squiggly line below it (i.e., an error), which says:

QString: No such file or directory

I am also having some Compiler issues:
cannot find -lGL
collect2: error: ld returned 1 exit status

I do not know if the Compiler errors and the <QString> file problem are related, but if they are, I will report it here.
Google the errors and see if you find any solutions. If you don't find a solution, then come back here or got to a Qt specific forum to find help. I did a google search and found several results for that error.

As for GL, are you sure you have the Open GL library installed on your computer? If so, are the files included in your compiler and linker search path?
It seams that the standard Qt libraries are not recognized by Qt Creator, do you have any idea how to fix that?
Did you set the path for the Qt installation when you set up Qt Creator? Are you making a Qt project, not just a plain C/C++ project? Do you have Qt installed at all? Any number of things could be wrong, we can't help unless you give us more information. As for -lGL, I don't really know, but google appears to know all: http://qt-project.org/forums/viewthread/22848 , http://ubuntuforums.org/showthread.php?t=1480282 , http://stackoverflow.com/questions/15355837/installing-qt-on-linux-cannot-find-lgl
Last edited on
Qt Creator is fixed.

Somehow, it recognizes the Qt libraries again. I also installed libgl-dev, so that fixed the openGL error.

The error:

collect2: error: ld returned 1 exit status

came up because something was wrong with the code.

Thanks, everybody.
Topic archived. No new replies allowed.