Results 1 to 2 of 2

Thread: Error compiling QT4.4.0 in Fedora 9 GCC 4.3.0

  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Error compiling QT4.4.0 in Fedora 9 GCC 4.3.0

    Hi friends,

    I'm having a problem to compile the QT4.4.0 in Fedora 9. I 'm with GCC 4.3.0 and using the following parameters for compilation:

    Qt Code:
    1. ./configure -prefix /usr/share/qt4 -plugin-sql-ibase -lfbclient -I/opt/firebird/include -L/opt/firebird/lib
    To copy to clipboard, switch view to plain text mode 

    The error that appears are these:

    g++ -c -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include/QtSql -I../../../../include -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qsql_ibase.o ../../../sql/drivers/ibase/qsql_ibase.cpp
    ../../../sql/drivers/ibase/qsql_ibase.cpp:481: error: explicit template specialization cannot have a storage class
    ../../../sql/drivers/ibase/qsql_ibase.cpp: In function ‘char* readArrayBuffer(QList<QVariant>&, char*, short int, short int*, ISC_ARRAY_DESC*, QTextCodec*)’:
    ../../../sql/drivers/ibase/qsql_ibase.cpp:505: warning: suggest a space before ‘;’ or explicit braces around empty body in ‘for’ statement
    ../../../sql/drivers/ibase/qsql_ibase.cpp: At global scope:
    ../../../sql/drivers/ibase/qsql_ibase.cpp:636: error: explicit template specialization cannot have a storage class
    gmake[3]: ** [.obj/release-shared/qsql_ibase.o] Erro 1
    gmake[3]: Saindo do diretório `/home/marcelo/Download/qt-x11-opensource-src-4.4.0/src/plugins/sqldrivers/ibase'
    gmake[2]: ** [sub-ibase-make_default] Erro 2
    gmake[2]: Saindo do diretório `/home/marcelo/Download/qt-x11-opensource-src-4.4.0/src/plugins/sqldrivers'
    gmake[1]: ** [sub-sqldrivers-make_default] Erro 2
    gmake[1]: Saindo do diretório `/home/marcelo/Download/qt-x11-opensource-src-4.4.0/src/plugins'
    gmake: ** [sub-plugins-make_default-ordered] Erro 2
    How can I fix it?

    Thanks

    Marcelo Estanislau
    Brazil
    Last edited by jpn; 19th May 2008 at 14:10. Reason: missing tags

  2. #2
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb Re: Error compiling QT4.4.0 in Fedora 9 GCC 4.3.0

    Follow bellow fix from Trolltech.
    Thanks Tiago Macieira for Trolltech.
    Attached Files Attached Files

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.