This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Qt Database Driver

HI,

I am working in OMAPL-138 LCDK. I run the semo QT Application from File System (.../usr/bin/qtopia/demos/sqlbrowser).
Pop window appeared in the screen.It shows "No database drivers found" and below " this demo requires at least one Qt database driver,Please check the  documentation how to build the Qt SQL Plugins."
And i clicked " OK " button in that pop window.Connect box appeared and shows Connection setting are Driver,Database Name,username,password,Hostname,port.
i can not select any driver from the Driver box.
My Problem is QT database driver is not present in rootfs.
how can  i get it:
Kindly suggest any idea
.
Thanks and regards,
Vinothraj 
  • Hello,

    You can use this document to  guide you in building drivers for your Qt release: http://qt-project.org/doc/qt-4.8/sql-driver.html

    If you need guidance on building Qt in general to use with the SDK, please use this document: http://processors.wiki.ti.com/index.php/Building_Qt

    I would recommend building the SQLite driver for this.

    Regards,

    Dave

  • Hello Dave,

           Thanks Dave,As per you said,i tried that. 

    $export SQLITE=home/user/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr

             $cd $QTDIR

    ../qt-everywhere-opensource-src-4.6.2$sudo ./configure -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-omapl138-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -plugin-sql-sqlite

    [sudo] password for marudham:
    Which edition of Qt do you want to use ?

    Type 'c' if you want to use the Commercial Edition.
    Type 'o' if you want to use the Open Source Edition.

    o


    You have not explicitly asked to use pkg-config and are cross-compiling.
    pkg-config will not be used to automatically query cflag/lib parameters for
    dependencies


    This is the Qt for Embedded Linux Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.
    You are also licensed to use this software under the terms of
    the GNU General Public License (GPL) versions 3.

    Type '3' to view the GNU General Public License version 3.
    Type 'L' to view the Lesser GNU General Public License version 2.1.
    Type 'yes' to accept this license offer.
    Type 'no' to decline this license offer.

    Do you accept the terms of either license? yes

    Creating qmake. Please wait...
    make: Nothing to be done for `first'.

    The target system byte order could not be detected!
    Turn on verbose messaging (-v) to see the final report.
    You can use the -little-endian or -big-endian switch to
    ./configure to continue.

    $cd $QTDIR/src/plugins/sqldrivers/sqlite

    $qmake "INCLUDEPATH+=$SQLITE/include" "LIBS+=-L$SQLITE/lib -lsqlite"

    $ make

    rm -f libqsqlite.so
    arm-arago-linux-gnueabi-g++ -L/linux-devkit/arm-arago-linux-gnueabi/usr/lib -Wl,-rpath-link,/linux-devkit/arm-arago-linux-gnueabi/usr/lib -Wl,-O1 -Wl,--hash-style=gnu -Wl,-rpath-link,/home/marudham/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib -shared -o libqsqlite.so smain.o qsql_sqlite.o moc_qsql_sqlite.o -L/home/marudham/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib -L/home/marudham/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib -lsqlite -lQtSqlE -lQtCoreE -lpthread
    /home/marudham/SDKs/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin/../lib/gcc/arm-arago-linux-gnueabi/4.5.3/../../../../arm-arago-linux-gnueabi/bin/ld: cannot find -lsqlite
    collect2: ld returned 1 exit status
    make: *** [libqsqlite.so] Error 1

    I got linker error like :

    cannot find -lsqlite
    collect2: ld returned 1 exit status

    How to solve this.please suggest


    Thanks and regards

    vinothraj.