OCI driver in static build[solved]
Hi all. I want to compile my application in static build. I compiled source using
configure.bat -static -debug-and-release -platform win32-g++ -prefix $QtDir -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
this code. It works ok but I OCI driver was not loaded. how can I compile all supported(this time OCI) to work in static build.
You need to add
-qt-sql-XXXfor all the drivers you want to support
Thank you. I will try
@SGaist I added this line and I got following error in power shell
Out-File : Could not find a part of the path 'C:\Qt\Static\5.5.0\mkspecs\win32-g++\qmake.conf'. At C:\Users\user_name\Desktop\windows-build-qt-static.ps1:178 char:6 + "@ | Out-File -Append $File -Encoding Ascii + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
even if i add -qt-sql-qoci I have same error
what I am missing? can you help me?
I've never used PowerShell so I don't know what is happening.
In any case, when modifying a configuration option like that you have to clean before rebuilding
for me this line didn't work
but when i added
-qt-sql-sqlite -qt-sql-oci -qt-sql-db2 -qt-sql-mysql -qt-sql-psql -qt-sql-odbc
to configure.bat it works perfectly.
anyway thank you for your attention.
The XXX was meant to be replaced with whatever sql plugin you wanted to have built-in
Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)