Results 1 to 3 of 3

Thread: configure qt, static build

  1. #1
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default configure qt, static build

    Hi,
    Im working on deploying my application statically. Im using SQLserver so i need to add the sql drivers im using(QODBC).

    this is what i ran in the qt command prompt:
    configure -platform win32-g++ -static -release -no-exceptions -qt-sql-odbc -qt-libjpeg

    compiling and running the program with this build:
    the exe file gets around 10mb and starts up fine. But i get a message that it cant connect to the database because the driver is not loaded. any ideas what i need to do?

    question 2: When somethings dont work and i want to run configure again. Do i need to run "mingw32-make confclean"?

    thx, Terje


    Detaile description on what i've done:
    1: win32-g++ qmake file: changed the line qmake_lflags to:
    QMAKE_LFLAGS = -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc

    2.QT command prompt: configure -platform win32-g++ -static -release -no-exceptions -qt-sql-odbc -qt-libjpeg

    3.QT command prompt: wingw32-make

    4. project file name.pro: added CONFIG += static

    5. compiled and ran.
    Last edited by terhje; 11th February 2012 at 23:16.

  2. #2
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: configure qt, static build

    i ran the configure /?
    the picture says that only sqlite is available on this system. do i need to download the driver for odbc manually? it works fine with the odbc(in qt) before i did the -static build.
    qt.png

  3. #3
    Join Date
    May 2011
    Posts
    10
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: configure qt, static build

    help please

Similar Threads

  1. How to configure after build
    By daijvid in forum Installation and Deployment
    Replies: 2
    Last Post: 6th April 2011, 15:55
  2. Configure & Build Minimal Qt 4.7.2 on Mac OS X ( 10.5 )
    By vizz in forum Installation and Deployment
    Replies: 3
    Last Post: 7th March 2011, 11:34
  3. Problem Configure openssl static build
    By moh.gup@gmail.com in forum Installation and Deployment
    Replies: 0
    Last Post: 16th March 2010, 18:28
  4. How to configure/build 64-bit applications on Mac?
    By iraytrace in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2010, 22:52
  5. Replies: 1
    Last Post: 14th January 2010, 00:35

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.