Search found 2580 matches

by PB
Sun Oct 25, 2020 4:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 200

Re: Failed to link against wxMSW with VC++ toolset. Help~

I'll try compiling wxWebViewEdge tomorrow on MSYS2 to see if it works. Sorry, if I was not clear. AFAIK, you cannot compile wxWebViewEdge with MinGW. It does not have all the necessary headers (WRL) nor cannot use MSVC import libraries. The wxWidgets docs clearly state that MSVC 2015 or newer is re...
by PB
Sun Oct 25, 2020 1:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 200

Re: Failed to link against wxMSW with VC++ toolset. Help~

wxWebViewEdge uses COM components as its backend (I don't actually know what COM is, to be honest), and the interface of that COM is written in C++, which means I can no longer enjoy MinGW on Windows or the cross-compiler on Linux to build wxMSW applications, due to the incompatible symbol name man...
by PB
Sun Oct 25, 2020 11:02 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 200

Re: Failed to link against wxMSW with VC++ toolset. Help~

The log is long because there is many options set by MSVS, as well as many wxWidgets and Windows libraries, where many of them are not needed. The build also includes a resource file, something every applications needs, at least for the application icon and compatibility manifest. I do not understan...
by PB
Sun Oct 25, 2020 10:01 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 200

Re: Failed to link against wxMSW with VC++ toolset. Help~

FWIW, here are logs produced when building a minimal project (x64, DLL, release) from MSVS 2019, where C++ file is D:\DEV\DESKTOP\WXPOKUSY\_FORUM\SHOWCL\MINIMAL.CPP and wxWidgets root folder is D:\DEV\DESKTOP\!LIB\WXWIDGETS-GIT\ Compiler ^D:\DEV\DESKTOP\WXPOKUSY\_FORUM\SHOWCL\MINIMAL.CPP /c /I"D:\DE...
by PB
Sun Oct 25, 2020 9:24 am
Forum: Compiler / Linking / IDE Related
Topic: Failed to link against wxMSW with VC++ toolset. Help~
Replies: 17
Views: 200

Re: Failed to link against wxMSW with VC++ toolset. Help~

I am not familiar with using CL directly but I do not see any necessary defines there? For example, you should always define UNICODE and __WXMSW__ and if using DLL build of wxWidgets, also WXUSINGDLL. All this is described in the docs you mentioned. I think, you will also need to add more libraries ...
by PB
Fri Oct 23, 2020 2:30 pm
Forum: Component Writing
Topic: Question regarding an Indicator based on wxStaticBitmap
Replies: 2
Views: 109

Re: Question regarding an Indicator based on wxStaticBitmap

Perhaps you could use the wxLEDCtrl code as an inspiration: https://forums.wxwidgets.org/viewtopic.php?f=21&t=46137#p192934 Obviously, you are going to have two member wxBitmaps for On and Off. Just be aware that for a real-world application, you probably need those bitmaps at several resolutions, t...
by PB
Fri Oct 23, 2020 1:07 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed compile on wxWidgets 3.1.4 using mingw.
Replies: 12
Views: 230

Re: Failed compile on wxWidgets 3.1.4 using mingw.

stahta01 wrote:
Fri Oct 23, 2020 12:19 pm
And, there is now no reason for me to help you!
You must have confused me with someone else: I do not remember ever asking for your help let alone being helped by you. Or perhaps you consider putting words in my mouth as "help"?

However, I may be wrong, my memory is not perfect.
by PB
Fri Oct 23, 2020 10:38 am
Forum: Compiler / Linking / IDE Related
Topic: Failed compile on wxWidgets 3.1.4 using mingw.
Replies: 12
Views: 230

Re: Failed compile on wxWidgets 3.1.4 using mingw.

I did NOT say you said it was fixed; the first thing to do is always verified the problem has NOT been fixed! You did write Edit2: I am seeing if the problem is fixed like you suggest in MSys2 mingw-w64-headers-git package. Edit3: It appears to not be fixed like your suggestion. Well, I am seeing t...
by PB
Thu Oct 22, 2020 10:21 am
Forum: C++ Development
Topic: How to use wxTimer?
Replies: 2
Views: 76

Re: How to use wxTimer?

Your code has several issues: 1. You cannot handle wxEVT_TIMER with Frame::UpdateSeekBar, which takes a wxScrollEvent instead of wxTimerEvent. 2. You use a wrong event sink. Assuming the call is inside a wxFrame method/ctor, the Bind() call should be timer->Bind(wxEVT_TIMER, &Frame::UpdateSeekBar, t...
by PB
Thu Oct 22, 2020 5:47 am
Forum: Compiler / Linking / IDE Related
Topic: Failed compile on wxWidgets 3.1.4 using mingw.
Replies: 12
Views: 230

Re: Failed compile on wxWidgets 3.1.4 using mingw.

stahta01 wrote:
Wed Oct 21, 2020 11:37 pm
Based on your bug report ....
I have not suggested the issue is fixed. I posted that it is still present and included the link to the incorrect function declaration in mingw-w64 headers repo mirror.
by PB
Wed Oct 21, 2020 7:42 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed compile on wxWidgets 3.1.4 using mingw.
Replies: 12
Views: 230

Re: Failed compile on wxWidgets 3.1.4 using mingw.

ONEEYEMAN, MONOLITHIC=1 is supposed to work (well, at least in the master), its last fix was for STC sample in STATIC monolithic configuration. I have created a ticket for the issue: https://trac.wxwidgets.org/ticket/18949 EDIT I have realized that this is not a wxWidgets issue but a bug in the MinG...
by PB
Wed Oct 21, 2020 7:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Failed compile on wxWidgets 3.1.4 using mingw.
Replies: 12
Views: 230

Re: Failed compile on wxWidgets 3.1.4 using mingw.

I confirm the issue is there both in 3.1.4 and the master.

ANSI build is basically deprecated but still supported, so I will create a ticket on wxTrac.
by PB
Wed Oct 21, 2020 7:17 pm
Forum: Compiler / Linking / IDE Related
Topic: wxwidget compilation and installation
Replies: 3
Views: 106

Re: wxwidget compilation and installation

My advice: Do not use Code::Blocks to build wxWidgets.

Not only is this not officially supported, I cannot think of a single reason for doing that.

wxWidgets can be easily built with MinGW using provided makefiles or CMake.

BTW, am error message showing just CMake version is not very helpful.
by PB
Wed Oct 21, 2020 4:07 pm
Forum: Compiler / Linking / IDE Related
Topic: Need help with using `wxMediaCtrl`.
Replies: 17
Views: 291

Re: Need help with using `wxMediaCtrl`.

I get error when compiling ../src/frame.cpp:48:24: error: ‘wxEVT_SCROLL’ was not declared in this scope; did you mean ‘EVT_SCROLL’? 48 | volumeSlider->Bind(wxEVT_SCROLL, &Frame::Volume, this); | ^~~~~~~~~~~~ | EVT_SCROLL I think this may be the only disadvantage of Bind() I have found. Unlike with ...