Results 1 to 3 of 3

Thread: qdb2 compilation problem

  1. #1
    Join Date
    Jun 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qdb2 compilation problem

    Hello everyone, and have a nice day.

    Recently i started using QT in order to develop an application for managing databases as a project for my thesis presentation. Currently i have managed to make it work with mysql, postgresql and sqlite but i have a serius problem with db2 since
    i cannot compile the driver. I have installed the latest db2 version (v10.1) on my Mandriva 2011 (x86_64) , i followed exactly the steps that needed to compile the driver, only to get a screen full of errors. I tried it on different distros (debian, kubuntu) but nothing changed.

    What i did:
    1) (inside src/plugins/sqldrivers/db2) --> qmake -o Makefile "INCLUDEPATH+=/opt/ibm/db2/V10.1/include" LIBS+="/opt/ibm/db2/V10.1/lib -ldb2" db2.pro
    2) make all
    errors,errors....errors

    What am i doing wrong? Is there another way of building the driver or at least connect to the db2 dbms?
    Thank you in advance

  2. #2
    Join Date
    Jun 2012
    Location
    Iran , Tehran
    Posts
    93
    Platforms
    Unix/X11 Windows Android
    Thanks
    5

    Default Re: qdb2 compilation problem

    go to your project folder and delete "your_project.pro.user" and build again ...
    Life is about making the right decisions and moving on.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: qdb2 compilation problem

    Quote Originally Posted by snakesd View Post
    What am i doing wrong? Is there another way of building the driver or at least connect to the db2 dbms?
    We can't help you unless you show us the first error you get. It is likely you are missing some development package for your system.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QDB2 driver build - problem
    By Kozy in forum Newbie
    Replies: 0
    Last Post: 29th December 2011, 19:54
  2. can't build plugin QDB2 for IBM DB2
    By Vladimiron1 in forum Installation and Deployment
    Replies: 7
    Last Post: 30th May 2011, 11:33
  3. Where are libraries/headers for QDB2 plugin build?
    By Mookie in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2010, 15:13
  4. Problem compiling QDB2 SQL driver
    By vieraci in forum Installation and Deployment
    Replies: 7
    Last Post: 18th November 2009, 23:04
  5. Qdb2 driver problem
    By AtoZ in forum Qt Programming
    Replies: 4
    Last Post: 11th November 2009, 12:00

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.