Compiling wxSqlite3 with VS 2015 Community Topic is solved

In this forum you can discuss database related issues which can be wxWidgets related, but also generic in nature.
Post Reply
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 335
Joined: Mon Oct 06, 2008 12:55 pm

Compiling wxSqlite3 with VS 2015 Community

Post by samsam598 »

I compiled wx3.2.3 with MS Visual Studio 2015 Community+ wx3.2.3 installer package,just using the sln file in the build sub-folder and everything goes smoothly.After that I create a WXWIN in the sytem environment points to the new vc compiled wx3.2.3 root.

But when I tried to use the same way to compile the most recent updated wxSqlite3 (github),I failed.The first issue is the compiler failed to find wx\lib\vc_x64_lib\mswud\wx\setup.h although it is definitely there.

Now I tried to add various path in the project setting in VS 2015 Community IDE,but whatever I tried,the compiler still can't find that setup.h

Appreciated any help in advance.

Code: Select all


严重性	代码	说明	项目	文件	行
错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	wxsqlite3	e:\wx323\include\msvc\wx\setup.h	142
错误(活动)		无法打开 源 文件 "../../../lib/vc14x_x64_lib/mswud/wx/setup.h"	minimal	e:\wx323\include\msvc\wx\setup.h	142
错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	minimal	e:\wx323\include\msvc\wx\setup.h	142
错误(活动)		#error 指令:  "wxUSE_ANY must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	85
错误(活动)		#error 指令:  "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	93
错误(活动)		#error 指令:  "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	101
错误(活动)		#error 指令:  "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	109
错误(活动)		#error 指令:  "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	117
错误(活动)		#error 指令:  "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	125
错误(活动)		#error 指令:  "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	133
错误(活动)		#error 指令:  "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	141
错误(活动)		#error 指令:  "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	149
错误(活动)		#error 指令:  "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	157
错误(活动)		#error 指令:  "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	165
错误(活动)		#error 指令:  "wxUSE_INTL must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	173
错误(活动)		#error 指令:  "wxUSE_IPV6 must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	181
错误(活动)		#error 指令:  "wxUSE_LOG must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	189
错误(活动)		#error 指令:  "wxUSE_LONGLONG must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	197
错误(活动)		#error 指令:  "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	205
错误(活动)		#error 指令:  "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	213
错误(活动)		#error 指令:  "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	221
错误(活动)		#error 指令:  "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	229
错误(活动)		#error 指令:  "wxUSE_REGEX must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	271
错误(活动)		#error 指令:  "wxUSE_SECRETSTORE must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	279
错误(活动)		#error 指令:  "wxUSE_SPELLCHECK must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	287
错误(活动)		#error 指令:  "wxUSE_STDPATHS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	295
错误(活动)		#error 指令:  "wxUSE_XML must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	303
错误(活动)		#error 指令:  "wxUSE_SOCKETS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	311
错误(活动)		#error 指令:  "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	319
错误(活动)		#error 指令:  "wxUSE_STD_CONTAINERS_COMPATIBLY must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	327
错误(活动)		#error 指令:  "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	335
错误(活动)		#error 指令:  "wxUSE_STREAMS must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	343
错误(活动)		#error 指令:  "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	351
错误(活动)		#error 指令:  "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	359
错误(活动)		#error 指令:  "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	367
错误(活动)		#error 指令:  "wxUSE_UNSAFE_WXSTRING_CONV must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	383
错误(活动)		#error 指令:  "wxUSE_URL must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	391
错误(活动)		#error 指令:  "wxUSE_VARIANT must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	399
错误(活动)		#error 指令:  "wxUSE_XLOCALE must be defined, please read comment near the top of this file."	minimal	e:\wx323\include\wx\chkconf.h	407
错误(活动)		#error 指令:  "wxUSE_ACTIVEX must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	26
错误(活动)		#error 指令:  "wxUSE_WINRT must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	34
错误(活动)		#error 指令:  "wxUSE_CRASHREPORT must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	42
错误(活动)		#error 指令:  "wxUSE_DBGHELP must be defined"	minimal	e:\wx323\include\wx\msw\chkconf.h	50
错误(活动)		#error 指令:  "wxUSE_DC_CACHEING must be defined"	minimal	e:\wx323\include\wx\msw\chkconf.h	58
错误(活动)		#error 指令:  "wxUSE_DIALUP_MANAGER must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	66
错误(活动)		#error 指令:  "wxUSE_MS_HTML_HELP must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	74
错误(活动)		#error 指令:  "wxUSE_INICONF must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	82
错误(活动)		#error 指令:  "wxUSE_OLE must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	90
错误(活动)		#error 指令:  "wxUSE_OLE_AUTOMATION must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	98
错误(活动)		#error 指令:  "wxUSE_TASKBARICON_BALLOONS must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	106
错误(活动)		#error 指令:  "wxUSE_TASKBARBUTTON must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	114
错误(活动)		#error 指令:  "wxUSE_UXTHEME must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	122
错误(活动)		#error 指令:  "wxUSE_WINSOCK2 must be defined."	minimal	e:\wx323\include\wx\msw\chkconf.h	130
错误(活动)		未定义标识符 "wxLongLong"	minimal	e:\wxsqlite3496\include\wx\wxsqlite3.h	3201
错误(活动)		未定义标识符 "wxLongLong"	minimal	e:\wxsqlite3496\include\wx\wxsqlite3.h	3210
错误(活动)		未定义标识符 "wxLongLong"	minimal	e:\wxsqlite3496\include\wx\wxsqlite3.h	3222
错误(活动)		未定义标识符 "wxLongLong"	minimal	e:\wxsqlite3496\include\wx\wxsqlite3.h	3235
错误(活动)		未定义标识符 "wxLongLong"	minimal	e:\wxsqlite3496\samples\minimal.cpp	264
错误(活动)		未定义标识符 "wxCmdLineEntryDesc"	minimal	e:\wxsqlite3496\samples\minimal.cpp	334
错误(活动)		未定义标识符 "wxCMD_LINE_OPTION"	minimal	e:\wxsqlite3496\samples\minimal.cpp	337
错误(活动)		未定义标识符 "wxCMD_LINE_VAL_STRING"	minimal	e:\wxsqlite3496\samples\minimal.cpp	337
错误(活动)		未定义标识符 "wxCMD_LINE_PARAM_OPTIONAL"	minimal	e:\wxsqlite3496\samples\minimal.cpp	337
错误(活动)		未定义标识符 "wxCMD_LINE_SWITCH"	minimal	e:\wxsqlite3496\samples\minimal.cpp	338
错误(活动)		未定义标识符 "wxCMD_LINE_VAL_NONE"	minimal	e:\wxsqlite3496\samples\minimal.cpp	338
错误(活动)		未定义标识符 "wxCMD_LINE_PARAM_OPTIONAL"	minimal	e:\wxsqlite3496\samples\minimal.cpp	338
错误(活动)		未定义标识符 "wxCMD_LINE_NONE"	minimal	e:\wxsqlite3496\samples\minimal.cpp	343
错误(活动)		应输入“)”	minimal	e:\wxsqlite3496\samples\minimal.cpp	350
错误(活动)		class "wxCmdLineParser" 没有成员 "SetLogo"	minimal	e:\wxsqlite3496\samples\minimal.cpp	352
错误(活动)		class "wxCmdLineParser" 没有成员 "Parse"	minimal	e:\wxsqlite3496\samples\minimal.cpp	353
错误(活动)		class "wxCmdLineParser" 没有成员 "Found"	minimal	e:\wxsqlite3496\samples\minimal.cpp	356
错误(活动)		class "wxCmdLineParser" 没有成员 "Found"	minimal	e:\wxsqlite3496\samples\minimal.cpp	357
错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	treeview	e:\wx323\include\msvc\wx\setup.h	142
错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	treeview	e:\wx323\include\msvc\wx\setup.h	142
错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	treeview	e:\wx323\include\msvc\wx\setup.h	142
错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	treeview	e:\wx323\include\msvc\wx\setup.h	142


Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
MinGW47/8.1/msys2-mingw12.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2/3.1 Unicode Mono Static gcc static build
utelle
Moderator
Moderator
Posts: 1117
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: Compiling wxSqlite3 with VS 2015 Community

Post by utelle »

samsam598 wrote: Sun Nov 05, 2023 2:56 am I compiled wx3.2.3 with MS Visual Studio 2015 Community+ wx3.2.3 installer package,just using the sln file in the build sub-folder and everything goes smoothly. After that I create a WXWIN in the sytem environment points to the new vc compiled wx3.2.3 root.

But when I tried to use the same way to compile the most recent updated wxSqlite3 (github),I failed. The first issue is the compiler failed to find wx\lib\vc_x64_lib\mswud\wx\setup.h although it is definitely there.
Because you built the wxWidgets library yourself the default library path, lib\vc_x64_lib\mswud\wx\setup.h, does not correspond to the path specified in wx_setup.props in the wxSQLite3 distribution. This can be clearly seen in the error message you get.

Code: Select all

错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	wxsqlite3	e:\wx323\include\msvc\wx\setup.h	142
That is, the compiler is searching for lib/vc14x_x64_lib/mswud/wx/setup.h. See the difference? "vc_x64_lib" vs "vc14x_x64_lib".

You have to adjust the property file wx_setup.props as described in the wxSQLite3 README.
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 335
Joined: Mon Oct 06, 2008 12:55 pm

Re: Compiling wxSqlite3 with VS 2015 Community

Post by samsam598 »

utelle wrote: Sun Nov 05, 2023 11:51 am
samsam598 wrote: Sun Nov 05, 2023 2:56 am I compiled wx3.2.3 with MS Visual Studio 2015 Community+ wx3.2.3 installer package,just using the sln file in the build sub-folder and everything goes smoothly. After that I create a WXWIN in the sytem environment points to the new vc compiled wx3.2.3 root.

But when I tried to use the same way to compile the most recent updated wxSqlite3 (github),I failed. The first issue is the compiler failed to find wx\lib\vc_x64_lib\mswud\wx\setup.h although it is definitely there.
Because you built the wxWidgets library yourself the default library path, lib\vc_x64_lib\mswud\wx\setup.h, does not correspond to the path specified in wx_setup.props in the wxSQLite3 distribution. This can be clearly seen in the error message you get.

Code: Select all

错误	C1083	无法打开包括文件: “../../../lib/vc14x_x64_lib/mswud/wx/setup.h”: No such file or directory	wxsqlite3	e:\wx323\include\msvc\wx\setup.h	142
That is, the compiler is searching for lib/vc14x_x64_lib/mswud/wx/setup.h. See the difference? "vc_x64_lib" vs "vc14x_x64_lib".

You have to adjust the property file wx_setup.props as described in the wxSQLite3 README.
Ah~~yes..yes! wxSqlite3 lib and samples built and everything is great!!

Thank you!
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
MinGW47/8.1/msys2-mingw12.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2/3.1 Unicode Mono Static gcc static build
Post Reply