Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Have some problem with QSQLiteDriver in Ubuntu
QtWS25 Last Chance

Have some problem with QSQLiteDriver in Ubuntu

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ttti07
    wrote on last edited by
    #1

    First of all, all of my OS(64-bit) and tools and libraries are up to date.

    I installed QT via online installer from qt.nokia.com,
    then I installed sqlite3 package through terminal. (sudo apt-get install sqlite3)
    After that, I also installed libqt4-sql-sqlite and libsqlite3-dev packages by the apt-get instruction.
    And I copied /home/yonghee/QtSDK/Simulator/Qt/gcc/include/QtSql/private directory to /home/yonghee/QtSDK/Desktop/Qt/473/gcc/include/QtSql/private,
    because I use sqlite3.h and it includes a header file from the private directory but the Desktop directory didn't have it. (I'm building this project in Desktop environment.)
    I can get rid of much of 'undefined reference to' messages about sqlite3.h by this copying work,
    but still there are 'undefined reference to' messages on QSQLiteDriver class in qsqlitedriver header.
    I've already checked that /home/yonghee/QtSDK/Desktop/Qt/473/gcc/include/QtSql has qsqlitedriver header file, and it also has qsql_sqlite.h.
    What should I do?
    Is it necessary to build QT manually?

    This is my project's .pro file:
    @
    #-------------------------------------------------

    Project created by QtCreator 2011-07-20T02:10:30

    #-------------------------------------------------

    QT += core gui sql

    TARGET = Nuri
    TEMPLATE = app

    SOURCES += main.cpp
    thinker.cpp
    widget.cpp

    HEADERS +=
    widget.h
    thinker.h

    #QTPLUGIN += qsqlite

    INCLUDEPATH += /usr/include
    #INCLUDEPATH += /home/yonghee/QtSDK/Desktop/Qt/473/gcc/include/QtSql
    LIBS += -L/usr/lib/x86_64-linux-gnu -lsqlite3 #for sqlite3.h
    #LIBS += -L/usr/lib/qt4/plugins/sqldrivers -lsqlite #for QSQLiteDriver
    @

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Are you aware the online installer installs sqlite for you? Why do you want to install it again using your package manager?

      Please use Qt instead of QT(=QuickTime)

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved