Results 1 to 12 of 12

Thread: Problem building Firebird sql plugins

  1. #1
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Problem building Firebird sql plugins

    Hi All,
    This is my first post, getting the hang of both Qt AND Linux, so please be gentle on me

    I'm following the Qt Assistant to build the Plugin on Unix (Linux).
    I have Firebird 2.x installed, the directions says:
    cd $QTDIR/src/plugins/sqldrivers/ibase

    $QTDIR= /usr/lib/qt3 on my installation, so I'm assuming the doc is a bit dated, I cd into

    /usr/lib/qt4/plugins/sqldrivers
    and where the instructions read:

    qmake -o Makefile "INCLUDEPATH+=/opt/interbase/include" "LIBS+=-L/opt/interbase/lib" ibase.pro

    I changed the line to:
    qmake -o Makefile "INCLUDEPATH+=/opt/firebird/include" "LIBS+=L/opt/firebird/lib" fb.pro

    I get an error message: "Cannot find file: fb.pro"
    There is no .pro file anywhere in the FB directories.

    I did a google on "ibase.pro" and came up with the Trolltech help page, which says
    "You need the InterBase/Firebird development headers and libraries to build this plugin."
    I downloaded the source code from ourceforge for Firebird, but there's no .pro file in there either !|
    Anyone know where I can find it ?
    Cheers,

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem building Firebird sql plugins

    Have you tried running qmake -o Makefile "INCLUDEPATH+=/opt/firebird/include" "LIBS+=-L/opt/firebird/lib" ibase.pro?

  3. #3
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem building Firebird sql plugins

    Yes, the message is "Cannot find file: ibase.pro"

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem building Firebird sql plugins

    Do you have Qt4 sources installed?

    But first check whether your distribution doesn't ship the IBase/Firebird driver. The package should be called qt4-plugins-ibase or similar.

  5. #5
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem building Firebird sql plugins

    How can I tell if I have Qt4 sources installed ?

    There is one dir: /usr/lib/qt4/plugins/sqldrivers but only files in that directory are:
    libqsqlpsql.so
    libsqlmysql.so
    libsqlodbc.so
    libsqlite.so

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem building Firebird sql plugins

    Which Linux distribution do you use?

  7. #7
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem building Firebird sql plugins

    OpenSUSE 10.2

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem building Firebird sql plugins

    OK, so it seems that there is no precompiled driver available for OpenSUSE. You can download Qt sources from here: ftp://ftp.trolltech.com/qt/source

  9. #9
    Join Date
    Apr 2007
    Location
    Sunny Darwin, NT Australia
    Posts
    186
    Thanks
    29
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem building Firebird sql plugins

    OK, I've downloaded the sources,
    qt-1xx-opensource-src-4.2.1.tar.gz
    (I assume that's the correct download ?)
    Before I attempt it, I'd like to confirm certain settings:
    The Trolltech site has a "How to build the plugin on Unix/Linux"
    quote:
    The following assumes Interbase or Firebird is installed in /opt/interbase:

    cd $QTDIR/plugins/src/sqldrivers/ibase
    qmake -o Makefile "INCLUDEPATH+=/opt/interbase/include" "LIBS+=-L/opt/interbase/lib" ibase.pro
    make
    end quote.

    My installation of Firebird is in /opt/firebird
    The PATH setting shows /usr/lib/qt3/bin:
    There's no sqldrivers dir in /usr/lib/qt3/plugins/ but ther is one in:
    /usr/lib/qt4/plugins
    The QTDIR shows /usr/lib/qt3
    Question:
    Should I alter my PATH and QTDIR statements ?
    Where should I extract the sources to ?

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem building Firebird sql plugins

    Quote Originally Posted by vieraci View Post
    The QTDIR shows /usr/lib/qt3
    Question:
    Should I alter my PATH and QTDIR statements ?
    You don't have to change them, but make sure you run qmake from Qt4.

    Quote Originally Posted by vieraci View Post
    Where should I extract the sources to ?
    It doesn't matter, but of course you will have to go to that directory instead of $QTDIR/plugins/src/sqldrivers/ibase.

    According to the docs, you have to run:
    qmake -o Makefile "INCLUDEPATH+=/opt/interbase/include" "LIBS+=-L/opt/interbase/lib -lfbclient" ibase.pro

  11. The following user says thank you to jacek for this useful post:

    vieraci (29th April 2007)

  12. #11
    Join Date
    Sep 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile Re: Problem building Firebird sql plugins

    I solve my sql connection in windows but in my linux i have a problem.
    In Windows , I had my drivers in one directory and i just copyed what i wanted in my program directory .
    I use Fedora 9 , KDE
    my Linux didn't have Qt4 , and i installed myself
    in /usr/lib/qt4/plugins/sqldrivers directory i just have one available driver :
    libqsqlite.so


    i'm new in qt , i don't know what i should do .
    i wana know i should creat dirvers or find them from some where ...

    Thanks
    Majid sadeghi

  13. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem building Firebird sql plugins

    Quote Originally Posted by dijam View Post
    my Linux didn't have Qt4 , and i installed myself
    in /usr/lib/qt4/plugins/sqldrivers directory i just have one available driver
    Check if your distribution provides ready-made package with that driver.

Similar Threads

  1. Building plugins for dummies
    By Jeff_Birt in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2007, 03:21
  2. SQL problem
    By nimmyj in forum Qt Programming
    Replies: 4
    Last Post: 25th December 2006, 18:43
  3. Basic: problem building designer application
    By kingslee in forum Qt Tools
    Replies: 2
    Last Post: 31st August 2006, 15:26
  4. Problem building Qt4.1.0 with thread support on windows XP
    By pavithra in forum Installation and Deployment
    Replies: 1
    Last Post: 1st April 2006, 11:35

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.