Results 1 to 2 of 2

Thread: Compiling Qt with Firebird support on Mac

  1. #1
    Join Date
    May 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Compiling Qt with Firebird support on Mac

    When I try to compile Qt using ./configure -qt-sql-ibase -qt-sql-sqlite -qt-sql-psql -I /opt/firebird/Headers/ -L /opt/firebird/Libraries/ -v I get the following error.

    InterBase auto-detection... ()
    g++ -c -pipe -Os -Wall -W -I../../../mkspecs/macx-g++ -I. -I/opt/firebird/Headers -I. -o ibase.o ibase.cpp
    g++ -headerpad_max_install_names -o ibase ibase.o -L/opt/firebird/Libraries/ -lgds
    /usr/bin/ld: can't locate file for: -lgds
    collect2: ld returned 1 exit status
    make: *** [ibase] Error 1
    InterBase disabled.
    InterBase support cannot be enabled due to functionality tests!
    Turn on verbose messaging (-v) to ./configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to ./configure to continue.

    How do I fix the gds error?

    Thanks,
    Charles

  2. #2
    Join Date
    Aug 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Compiling Qt with Firebird support on Mac

    Hi Charles,

    I haven't compiled all of Qt - we're using commercial - but I have compiled and used the IBASE driver on Mac with Firebird 2.

    How have you installed Firebird? Are you using the Firebird Mac installers from firebirdsql.org or are you building it yourself? We have been using the prebuilt installers - which correctly install Firebird as a framework on OSX.

    Firstly - we comment out line 7 of ibase.pro (unix:!contains etc)

    Secondly - this is our qmake command - which should get you going:

    qmake -spec macx-g++ -o Makefile "INCLUDEPATH+=/Library/Frameworks/Firebird.framework/Headers" "INCLUDEPATH+=<YOUR_QT_SRC_DIR>/include" "LIBS+= -framework Firebird" ibase.pro

    Hope this helps.

    Peter Lee

Similar Threads

  1. Qt 4.4.3 commercial on Kubuntu 8.10
    By Micawber in forum Installation and Deployment
    Replies: 5
    Last Post: 17th February 2010, 01:02
  2. Problem with compiling qt on windows xp with phonon
    By junky in forum Installation and Deployment
    Replies: 3
    Last Post: 13th April 2009, 08:13
  3. Qt-4.4.0 installation error in linux
    By babu198649 in forum Installation and Deployment
    Replies: 4
    Last Post: 27th May 2008, 14:35
  4. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  5. Error compiling Qt3 app with Boost signals support
    By stodge in forum Qt Programming
    Replies: 3
    Last Post: 3rd May 2007, 10:48

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.