Results 1 to 2 of 2

Thread: Build qsqlodbc ODBC staticlib not possibel...

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Build qsqlodbc ODBC staticlib not possibel...

    I must make a simple app to export sql table to XML format.. a simple portable exe file i build qt static only for this small exe... exact by..
    http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows

    Now i change the pro file to make the lib.... odbc

    Whi... Only sqlite driver is visible?
    Waht i must make?
    i use qt4.2 & mingw compiler ...

    Qt Code:
    1. TARGET = qsqlodbc
    2.  
    3. TEMPLATE =lib
    4. CONFIG += qt warn_off release staticlib
    5. LANGUAGE = C++
    6. #DEFINES -= UNICODE
    7. DEFINES += NDEBUG THREAD_SAFE=1 TEMP_STORE=2
    8.  
    9.  
    10. HEADERS = ../../../sql/drivers/odbc/qsql_odbc.h
    11. SOURCES = main.cpp \
    12. ../../../sql/drivers/odbc/qsql_odbc.cpp
    13.  
    14. mac {
    15. !contains( LIBS, .*odbc.* ) {
    16. LIBS *= -liodbc
    17. }
    18. }
    19.  
    20. unix {
    21. !contains( LIBS, .*odbc.* ) {
    22. LIBS *= -lodbc
    23. }
    24. }
    25.  
    26. win32 {
    27. !win32-borland:LIBS *= -lodbc32
    28. win32-borland:LIBS *= $(BCB)/lib/PSDK/odbc32.lib
    29. }
    30.  
    31. include(../qsqldriverbase.pri)
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Build qsqlodbc ODBC staticlib not possibel...

    I found ....
    http://doc.trolltech.com/4.2/qtplugi..._IMPORT_PLUGIN

    This qt macro allow to export the plugin static....

    I tested .. and export the qsqlite plugin static from sqlite running ok...
    and qt odbc qsqlodbc no why?

    IMO: on qt4.1 i have buildet odbc normal and is running, now on qt4.2 No!
    Last edited by patrik08; 27th October 2006 at 07:08.

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.