Page 1 of 1

WxSQLite3

Posted: Tue Nov 26, 2019 7:19 pm
by zeroptr
Hi All,

I couldn't compile wxSqlite3 with MCVC 2013 becouse of directory or library problems I tried to compile from source, no success, there's no documentation about it at youtube or anywhere else..

I tried to compile it from build/ mcvc120.sln
and separetely sub projects..

is there any chance to use it with precompiled versions? anywhere
PS: I'm not good at MSVC directory thing I used QT for a long time with QT designer..

Re: WxSQLite3

Posted: Tue Nov 26, 2019 8:31 pm
by doublemax
Please describe what exactly you did and which errors you got.

Re: WxSQLite3

Posted: Tue Nov 26, 2019 11:01 pm
by ONEEYEMAN
Hi,
Also, in addition to what doublemax is asking:

1. What version of wxWidgets do you have?
2. What version of wxSQLite3?
3. What version of MSVC do you use? Are using it for both libraries?

Thank you.

Re: WxSQLite3

Posted: Thu Nov 28, 2019 2:13 pm
by zeroptr
wxWidgets 3.1.3
I'm using Microsoft Visual Studio 2013
The Latest wxSQLite3 from github

Error 1 error C1083: Cannot open include file: '../../../lib/vc120_lib/mswud/wx/setup.h': No such file or directory e:\wxwidgets-3.1.3\include\msvc\wx\setup.h 140 1 wxsqlite3

the constant error is this

Re: WxSQLite3

Posted: Thu Nov 28, 2019 9:37 pm
by ueda
You could either copy the wxdir\lib\vc_lib to wxdir\lib\vc120_lib OR edit wxdir\include\msvc\wx\setup.h and remove line 54-88 and 90, so #define wxCOMPILER_PREFIX vc remains.

Then, open the VS2013 x86 Native Tools Command Prompt and simply type:

Code: Select all

set WXWIN=C:\wxdir (where wxdir is your wxwidgets directory)
cd c:\wxsqlitedir\build
msbuild /p:Configuration=Debug /p:Platform=Win32 wxsqlite3_vc12.sln
msbuild /p:Configuration=Release /p:Platform=Win32 wxsqlite3_vc12.sln
If you modified wxwidget's config.vc before compiling wxwidgets, you might have to modify include\msvc\wx\setup.h as well.

Re: WxSQLite3

Posted: Fri Nov 29, 2019 10:10 pm
by Kvaz1r
zeroptr wrote:
Tue Nov 26, 2019 7:19 pm
Hi All,

I couldn't compile wxSqlite3 with MCVC 2013 becouse of directory or library problems I tried to compile from source, no success, there's no documentation about it at youtube or anywhere else..
Hello. You also can check your issue in issue tracker of the project. If key of issue is popular there is big chance that someone already reported it. I was stuck with exactly same question few monthes ago - Build error for wxSQLite3 4.4.6 (VS2019)