QT QSqlDatabase, Add to Visual Studio Project -
i looking direction on how might include qt odbc source in visual studio 2010 executable. project requires modification of sqlresult class , prefer include source in application instead of linking in object configure -static.
fwiw: registered enterprise user valid license.
many thanks!
this did... hope these steps useful others.
my environment: visual studio 2010 ultimate
download build qt extract build directory... c:\qt\qt-everywhere-enterprise-src-5.2.1\
for each (x86/x64) platforms: program \visual studio tools \ command prompt create directory qt platform
in case: c:\qt\x86 , c:\qt\x64 set environment path qt base:
qtdir=c:\qt\x86\qt-everywhere-enterprise-src-5.2.1\qtbase
at command prompt:
set path=%cd%\qtbase\bin;%path%
include modules: note -static
configure -static -prefix %cd%\qtbase -qt-sql-odbc -opengl desktop
nmake
for sql plug in:
cd src/sql
create vsproj file , include in project.
qmake -tp vc
in visual studio ensure vs addin installed on system. @ vs menu qt5 menu. selection options. create build associate vs addin to.
c/c++ hive general additional include:
.\generatedfiles;.;$(qtdir)\include; .\generatedfiles\$(configurationname); $(qtdir)\include\qtcore; $(qtdir)\include\qtgui; $(qtdir)\include\qtsql; $(qtdir)\include\qtwidgets; $(qtdir)\include\qtnetwork; $(qtdir)\include\qtconcurrent; .\header; $(qtdir)\plugins\platforms; %(additionalincludedirectories)
ensure libraries referenced in vs project properties\linker\input\additional dependencies linker \ general \ additional library directories
$(qtdir)\lib;$(qtdir)\plugins\platforms;%(additionallibrarydirectories)
Comments
Post a Comment