Compile sqlitebrowser

Help
phragles
2011-05-25
2013-05-14
  • phragles
    phragles
    2011-05-25

    Helo
    I try to compile sqlitebrowser on a Arch linux  with kernel 2.6.38-ARCH with my modification.
    I have  error after use make commnad
    Any ideas?

    g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/Qt3Support -I/usr/include -Isqlite_source -I.moc -o .obj/extendedmainform.o extendedmainform.cpp
    In file included from findform.h:24:0,
                     from form1.h:31,
                     from extendedmainform.h:4,
                     from extendedmainform.cpp:1:
    sqlitedb.h: In constructor 'DBBrowserField::DBBrowserField()':
    sqlitedb.h:44:36: error: call of overloaded 'QString(int)' is ambiguous
    sqlitedb.h:44:36: note: candidates are:
    /usr/include/QtCore/qstring.h:428:43: note: QString::QString(const QByteArray&)
    /usr/include/QtCore/qstring.h:426:43: note: QString::QString(const char*)
    /usr/include/QtCore/qstring.h:728:8: note: QString::QString(const QString&)
    /usr/include/QtCore/qstring.h:106:5: note: QString::QString(QChar)
    /usr/include/QtCore/qstring.h:105:14: note: QString::QString(const QChar*)
    sqlitedb.h: In constructor 'DBBrowserIndex::DBBrowserIndex()':
    sqlitedb.h:58:36: error: call of overloaded 'QString(int)' is ambiguous
    sqlitedb.h:58:36: note: candidates are:
    /usr/include/QtCore/qstring.h:428:43: note: QString::QString(const QByteArray&)
    /usr/include/QtCore/qstring.h:426:43: note: QString::QString(const char*)
    /usr/include/QtCore/qstring.h:728:8: note: QString::QString(const QString&)
    /usr/include/QtCore/qstring.h:106:5: note: QString::QString(QChar)
    /usr/include/QtCore/qstring.h:105:14: note: QString::QString(const QChar*)
    sqlitedb.h: In constructor 'DBBrowserTable::DBBrowserTable()':
    sqlitedb.h:73:36: error: call of overloaded 'QString(int)' is ambiguous
    sqlitedb.h:73:36: note: candidates are:
    /usr/include/QtCore/qstring.h:428:43: note: QString::QString(const QByteArray&)
    /usr/include/QtCore/qstring.h:426:43: note: QString::QString(const char*)
    /usr/include/QtCore/qstring.h:728:8: note: QString::QString(const QString&)
    /usr/include/QtCore/qstring.h:106:5: note: QString::QString(QChar)
    /usr/include/QtCore/qstring.h:105:14: note: QString::QString(const QChar*)
    make: ***  Błąd 1

     

  • Anonymous
    2011-09-09

    Edit sqlitedb.h and wherever you find this:

    name( 0 ) { }

    replace it with:

    name( "" ) { }

     
  • Warren Wright
    Warren Wright
    2012-02-14

    The name( 0 ){} replacement worked perfectly.

    Thanks so much.

     
  • Anatolii
    Anatolii
    2012-08-31

    Thank you.

     
  • Curiously I tried to find this in sqlitedb.h so I could make and commit the corrections but was unable to find any trace. Is there any chance you could post up the file you had and the corrected version?

     
  • rory
    rory
    2012-10-29

    @hackish: I think it is broken in the 2.0beta tar.gz that is offered first for download but fixed already in the svn