Results 1 to 1 of 1

Thread: Help with Ibase plugin on Mac os X, driver not loaded

  1. #1
    Join Date
    Oct 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Help with Ibase plugin on Mac os X, driver not loaded

    Hi
    i’ve Mac 10.6.2
    qt version:4.8.1

    i’m trying build the Ibase(firebird) plugin for qt, but i have some problems…
    these are the steps:

    I download src.
    I build my driver:

    Qt Code:
    1. qmake -spec macx-g++ -o Makefile "INCLUDEPATH+=/Library/Frameworks/Firebird.framework/Versions/Current/Headers" "LIBS+=-L/Library/Frameworks/Firebird.framework/Versions/Current/Libraries -lfbclient" ibase.pro
    To copy to clipboard, switch view to plain text mode 

    Now i copy libqsqlibase.dylib libqsqlibase_debug.dylib in to the sqldriver folder.

    My project serch the plugin in the correct folder because I have checked with the following command

    Qt Code:
    1. DYLD_PRINT_LIBRARIES=1 QT_DEBUG_PLUGINS=1 ./miapp.app/Contents/MacOS/miapp
    To copy to clipboard, switch view to plain text mode 

    bug:

    Qt Code:
    1. QFactoryLoader::QFactoryLoader() looking at "/Users/dani/QtSDK/Desktop/Qt/4.8.1/gcc/plugins/sqldrivers/libqsqlibase.dylib"
    2. In /Users/dani/QtSDK/Desktop/Qt/4.8.1/gcc/plugins/sqldrivers/libqsqlibase.dylib:
    3. Plugin uses incompatible Qt library
    4. expected build key "macosx macx-cocoa g++-4 full-config", got "macosx macx-cocoa g++-4 no-pkg-config"
    To copy to clipboard, switch view to plain text mode 

    How i can change no-pkg-config building to full-config?

    what’s the problem? Thank you


    Added after 1 33 minutes:


    I think I've found the problem, but not if it is the best way or not, some expert me clarify a bit.

    I knew that had to be a line to indicate that version had to compile, then I went to spotlight and search, "no-pk-config" giving me qconfig.h resulting file located in the folder src / corelib / global
    there is one line that said something like:
    #
    Qt Code:
    1. define QT_BUILD_KEY "macosx-cocoa macx g+ + -4 no-pkg-config"
    To copy to clipboard, switch view to plain text mode 
    change it to
    Qt Code:
    1. # define QT_BUILD_KEY "macosx-cocoa macx g+ + -4 full-config"
    To copy to clipboard, switch view to plain text mode 
    which was what I needed.

    And surprisingly it worked, did not give any issue in the future?
    Last edited by blackverde; 3rd October 2012 at 16:01.

Similar Threads

  1. Ibase driver plugin not loading
    By pkj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2011, 08:21
  2. Ibase plugin problem under MacOs 10.4
    By giandrea77 in forum Installation and Deployment
    Replies: 1
    Last Post: 30th January 2009, 19:11
  3. Problem compiling ibase driver
    By SteM in forum Installation and Deployment
    Replies: 12
    Last Post: 24th September 2007, 23:26
  4. IBASE driver not found ?
    By vieraci in forum Installation and Deployment
    Replies: 10
    Last Post: 22nd May 2007, 14:56

Tags for this Thread

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.