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.
Bookmarks