Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor vishalrocks101's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    123
    Hi,

    I have qt for Windows installed and I have configured it using following commands using Visual Studio Command Prompt:

    configure -release -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005
    Now I want to add sqlite driver so I do configuration again first cleaning previous one using nmake confclean and using below command:

    configure -release -qt-sql-sqlite -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005
    But driver is not configured,when I run simple program of creating DB,My Db is not created Error message appears,below is code for creating Db:

    Code:
    db = QSqlDatabase::addDatabase("QSQLITE"); 
          db.setDatabaseName("Sample.db");
        if (!db.open())
       {
           QMessageBox *msg = new QMessageBox();
           msg->setText("Error");
           msg->show();
          return;
        }
    I don't know what is the problem am I doing Wrong Configuration ?? , can anyone help me on this issue.

    Regards,

    Vishal

  2. #2
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Did you check lastError() to see what the error was?

  3. #3
    Regular Contributor vishalrocks101's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    123
    Quote Originally Posted by danhicksbyron View Post
    Did you check lastError() to see what the error was?
    Hi,

    danhicksbyron thanks for reply,,

    Yes I checked with lastError() it is Showing :

    Driver not Loaded
    I dont know why,though I have configured using :

    configure -release -qt-sql-sqlite -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005
    Waiting for Reply....
    Regards,

    Vishal

  4. #4
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Well, I don't know anything about VS, but in Creator/Carbide you don't need to specify Sqlite since it's installed by default if Sql is installed.

    Are there really not supposed to be spaces between these:

    "-qt-sql-sqlite"

  5. #5
    Regular Contributor vishalrocks101's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    123
    Quote Originally Posted by danhicksbyron View Post
    Well, I don't know anything about VS, but in Creator/Carbide you don't need to specify Sqlite since it's installed by default if Sql is installed.

    Are there really not supposed to be spaces between these:

    "-qt-sql-sqlite"
    Hi,

    danhicksbyron thanks for reply ,

    No problem ,yes I am able to run Sqlite programs on carbide,but for VS i am having this difficulty

    and the command is as it is -qt-sql-sqlite no spaces.

    Regards,
    vishal

  6. #6
    Regular Contributor vishalrocks101's Avatar
    Join Date
    Feb 2009
    Location
    India
    Posts
    123
    Hi,

    I have solved the problem ,, problem was in installation and configuration,
    I have uninstalled Qt for windows(4.6.2) then again done the installation(4.6.2).And typed following during configuration:

    configure -release -qt-sql-sqlite -platform win32-msvc2005 -xplatform wincewm60professional-msvc2005
    and now I can create DB using QSLITE driver..and run DB programs on WINDOWS MOBILE.

    Regards,
    Vishal

Similar Threads

  1. Windows Mobile
    By rbaltazar in forum General Development Questions
    Replies: 3
    Last Post: 2009-11-10, 17:16
  2. Visual Interactive Designer opportunity (mobile application exp. great plus) in NY
    By Shilpi in forum Mobile Design and User Experience
    Replies: 0
    Last Post: 2009-09-01, 15:03
  3. Nokia PC Suite 6.83 on Windows Mobile 5.0
    By Raju K N N in forum General Development Questions
    Replies: 2
    Last Post: 2007-12-04, 11:40
  4. Symbian does NOT work with Visual Studio .NET according to this
    By kokuryu in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2004-07-09, 15:13
  5. Help on using Sun ONE Studio 4 Mobile Edition
    By kapot in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2002-10-15, 21:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved