On Tue, Jul 22, 2003 at 04:49:01AM -0300, caio ferreira wrote:
> On Sat, 19 Jul 2003 22:36:29 -0300
> "Gustavo R. Montesino" <[EMAIL PROTECTED]> wrote:
> 
> >     Estou tentando instalar um software atraves de código fonte, mas
> > quando  executo o comando ./configure aparece a seguinte mensagem de erro
> > checking for Qt... configure: error: Qt (>= Qt 3.0.2) (headers and
> > libraries) not found. Please check your installation! 
> > For more details about this problem, look at the end of config.log.
> >     Mas eu instalei a qt, dpkg -l | grep libqt
> > libqt3-compat- 3.1.1-8        Qt 1.x and 2.x compatibility includes
> > libqt3-dev     3.1.1-8        Qt development files
> > libqt3-headers 3.1.1-8        Qt3 header files
> > libqt3c102     3.1.1-8        Qt Library
> > libqt3c102-mt  3.1.1-8        Qt GUI Library (Threaded runtime version)
> > 
> > Você têm o pacote libqt3-mt-dev instalado? 
> 
>       Se por acaso eu instalo o pacote libqt3-mt-dev ele remove o pacote
> libqt3-dev. Mesmo instalando qualquer um deles a mensagem de erro continua
> aparecendo.

Pelo que eu sei, o pacote libqt3-dev é disponibilizado apenas por
compatibilidade, e aplicativos "novos" devem ser compilados com o
libqt3-mt-dev, que tem suporte a multithreading.

De qualquer maneira...

> 
> > Quais são as linha relevantes do config.log?
> 
> conftest.C:2:21: qglobal.h: No such file or directory
> conftest.C:3:26: qapplication.h: No such file or directory
> conftest.C:4:21: qcursor.h: No such file or directory
> conftest.C:5:27: qstylefactory.h: No such file or directory
> conftest.C:6:34: private/qucomextra_p.h: No such file or directory
> conftest.C:8:2: #error 1
> conftest.C: In function `int main()':
> conftest.C:12: error: `QStyleFactory' undeclared (first use this function)
> conftest.C:12: error: (Each undeclared identifier is reported only once for
>    each function it appears in.)
> conftest.C:12: error: syntax error before `::' token
> conftest.C:13: error: `QCursor' undeclared (first use this function)
> configure: failed program was:
> #include "confdefs.h"
> #include <qglobal.h>
> #include <qapplication.h>
> #include <qcursor.h>
> #include <qstylefactory.h>
> #include <private/qucomextra_p.h>
> #if ! (QT_VERSION >= 302)
> #error 1
> #endif

...ambos os arquivos parecem ter os cabeçalhos que o gcc diz não ter
achado, segundo a sua mensagem acima... isso significa que o configure
não deve estar passando o diretório de inclusão certo para ele...

Dê um '$ ./configure --help', deve ter alguma opção parecida com
'--with-qt-includes' ou similar. use $ ./configure (essa
opção)=/usr/include/qt

Acho que também têm uma variável de ambiente que deveria apontar para os
cabeçalhos do QT, mas não me lembro o nome...

-- 
Gustavo R. Montesino                      
"And may the source be with you"           
                                            
GPG KEY BACAB6C2    pgp.mit.edu               
Debian GNU/Linux    www.debian.org

Attachment: pgpVel8CYKVUC.pgp
Description: PGP signature

Responder a