Can we use vs2015 to build wxwidgets 2.8? (Issue #23572)

20 views
Skip to first unread message

JasonXSong

unread,
May 26, 2023, 5:44:11 AM5/26/23
to wx-...@googlegroups.com, Subscribed

Hello,

When I use VS2015 to build wxwidgets 2.8.6. Some errors were reported.
First of all, I've added windows kits to 'Include Directories'.

One error is "'timezone': undeclared identifier".
I find that a 'time.h' file has this value 'timezone', and this file is in ''include' folders of VS2010 and VS2013. Although this file is also in windows kits of VS2015, it has not a value named 'timezone'.

So I want to check whether VS2015 can be used to build 2.8 version or not. If not, which version of wxwidgets can we use VS2015 to build?

Best Regards,
Junjie Song


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23572@github.com>

VZ

unread,
May 26, 2023, 8:09:20 AM5/26/23
to wx-...@googlegroups.com, Subscribed

You can use VS2015 to build 3.2.2, current master (future 3.3) and probably 3.0 too.

2.8.6 is a 16 year old version, released almost a decade before VS2015, so it's a bit difficult to expect it to support it. FWIW it probably shouldn't be hard to backport the fixes from later version to it but you're completely on your own if you decide to do it, this version is not supported at all.

And updating to 3.2 would be a much, much better idea.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23572/1564296501@github.com>

VZ

unread,
May 26, 2023, 8:09:21 AM5/26/23
to wx-...@googlegroups.com, Subscribed

Closed #23572 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/23572/issue_event/9350119378@github.com>

JasonXSong

unread,
May 26, 2023, 8:26:40 AM5/26/23
to wx-...@googlegroups.com, Subscribed

Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23572/1564315983@github.com>

PB

unread,
May 26, 2023, 11:33:26 AM5/26/23
to wx-...@googlegroups.com, Subscribed

There is no doubt that v2.8 is very outdated, but FWIW, I have just tried with 2.8.12 and the library and widgets sample still build even with the latest MSVS (2022 v17.6.2). There were many warnings but no errors.

I tried all combinations of dynamic, static, debug, and release Unicode 64-bit builds; the build commands for the library were basically (called from the wxWidgets root folder):

set "VSCMD_START_DIR=%cd%"
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
nmake -f makefile.vc UNICODE=1 BUILD=debug CXXFLAGS="/DNEED_PBT_H"
nmake -f makefile.vc UNICODE=1 BUILD=release CXXFLAGS="/DNEED_PBT_H"
nmake -f makefile.vc UNICODE=1 BUILD=debug SHARED=1 CXXFLAGS="/DNEED_PBT_H"
nmake -f makefile.vc UNICODE=1 BUILD=release SHARED=1 CXXFLAGS="/DNEED_PBT_H"

I do not remember why the extra define is needed, I used a batch file I made a long time ago.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23572/1564569803@github.com>

Reply all
Reply to author
Forward
0 new messages