[Qt-interest] g++ headers not found in Ubuntu

uanacho uanacho at gmail.com
Sat Apr 17 15:59:47 CEST 2010


gcc and g++ it's already installed on ubuntu Linux.

The headers are in: usr/include and /usr/include/g++/4.4.1

I'll copy an excerpt of the makefile generated by QtCreator

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
INCPATH       = -I../qtsdk-2010.02/qt/mkspecs/linux-g++ -I.
-I../qtsdk-2010.02/qt/include/QtCore -I../qtsdk-2010.02/qt/include/QtGui
-I../qtsdk-2010.02/qt/include/QtOpenGL -I../qtsdk-2010.02/qt/include
-I/usr/X11R6/include -I.
LINK          = g++
LFLAGS        = -Wl,-rpath,/home/uanacho/qtsdk-2010.02/qt/lib
LIBS          = $(SUBLIBS)  -L/home/uanacho/qtsdk-2010.02/qt/lib
-L/usr/X11R6/lib -lQtOpenGL -L/home/uanacho/qtsdk-2010.02/qt/lib
-L/usr/X11R6/lib -lQtGui -lQtCore -lGLU -lGL -lpthread
AR            = ar cqs
RANLIB        =
QMAKE         = /home/uanacho/qtsdk-2010.02/qt/bin/qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = $(COPY)
COPY_DIR      = $(COPY) -r
STRIP         = strip
INSTALL_FILE  = install -m 644 -p
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = install -m 755 -p
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p

####### Output directory


You could see that in INCPATH label and LIB label references to X11R6
directory. I think this is the problem, it cannot find the usr/lib and
usr/include directory.

How can configure this paths in the QtCreator, because the makefile is
generated automatically by QtCreator?

Thanks
Ignacio

On Fri, Apr 16, 2010 at 6:24 PM, Thiago Macieira <thiago at kde.org> wrote:

> Em Sexta-feira 16. Abril 2010, às 21.46.22, uanacho escreveu:
> > Hello all.
> >
> > I'm sorry if this post was answered but I did'nt find it.
> >
> > I have installed Qt sdk 10.2... (the last one) in Ubuntu 9.10.
> >
> > The problem is when I tried to compile my project but it does't find many
> > g++ libraries, for example math.h, vector and others. I have to mention
> > that g++ is installed.
> >
> > How can I tell to the Qt to find this libraries?
>
> Where are the headers?
>
> My guess is that they are nowhere. So you have to install them first.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100417/b1cb930a/attachment.html 


More information about the Qt-interest-old mailing list