Search found 4007 matches

by DavidHart
Mon Sep 13, 2021 7:14 pm
Forum: Compiler / Linking / IDE Related
Topic: Include error on VSCode Ubuntu 20 (default installation)
Replies: 8
Views: 250

Re: Include error on VSCode Ubuntu 20

For example, the answer from the other user doesn't exactly exist "C++ Compiler Options:" and "Linker Options: " I was sure it would not. That's why I said: "So, for example in a CodeLite template wx project" I'm already giving up on using ubuntu and installing visual studio community on windows Ra...
by DavidHart
Mon Sep 13, 2021 3:48 pm
Forum: Compiler / Linking / IDE Related
Topic: Include error on VSCode Ubuntu 20 (default installation)
Replies: 8
Views: 250

Re: Include error on VSCode Ubuntu 20

Hi, I've no experience with VSCode but, on Linux, it's normal to tell an IDE to use the wx-config script for compilation and link data. So, for example in a CodeLite template wx project: C++ Compiler Options: -O2;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=no) Linker Options: -s;$(shell...
by DavidHart
Sat Sep 11, 2021 8:58 am
Forum: Compiler / Linking / IDE Related
Topic: Codelite - compiling now, but still have IDE issues
Replies: 3
Views: 380

Re: Codelite - compiling now, but still have IDE issues

perhaps there is a template, or some cache I need to update to persist that change.
I don't know: the LS plugin isn't something I've been involved with.

I suggest you ask again on the CodeLite forum, especially as this is a purely CodeLite issue: it would affect any project, not just a wx one.
by DavidHart
Fri Sep 10, 2021 3:50 pm
Forum: Compiler / Linking / IDE Related
Topic: Codelite - compiling now, but still have IDE issues
Replies: 3
Views: 380

Re: Codelite - compiling now, but still have IDE issues

Hi, The issues is that the IDS still shows issues "little red arrows' This is an (anti-)feature of the Language Server plugin. Possible fixes: 0) If you were using a Filesystem project type, they wouldn't have appeared in the first place. 1) Depending on your Project type, iiuc they might disappear ...
by DavidHart
Thu Sep 09, 2021 9:43 am
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 891

Re: cmake can't find some modules of wxWidgets by default

I don't know why this subset.
IIRC they were considered to be the libraries most commonly required.
by DavidHart
Wed Sep 08, 2021 6:25 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 891

Re: cmake can't find some modules of wxWidgets by default

I believe wx-config was changed around 3.1 so that only base and core will be found on "wx-config --all". In a gtk3 wx3.1.5 build, doing wx-config --libs all results in: -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_webview-3.1 -lwx_gtk3u_stc-3.1 -lwx_gtk3u_richtext-3.1 -lwx_gtk3u_ribbon-3.1 -lwx_gtk3u_propgrid-3....
by DavidHart
Sun Aug 22, 2021 4:53 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

I'm happy to try anything that:
  • 1) builds and runs; and
  • 2) causes the same problem.
by DavidHart
Sun Aug 22, 2021 2:54 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

https://github.com/nineisk/wxFreeChart/commits/master This is the source code that I've used. With this, you can configure to build with GTK3 Thanks. I've now built wxFreeChart against wx3.1.5. It seems to have a demo program, but that has no makefile. I want to be debugging the same program that y...
by DavidHart
Tue Aug 17, 2021 5:25 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

checking for the --with-toolkit option... configure: error: Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb) I'd looked at 'configure' and seen that gtk3 was missing; it's probably too old to know about it. That's fixable, probably easily, but I didn't wa...
by DavidHart
Tue Aug 17, 2021 1:37 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

I can't see anything obviously-helpful there, so I tried to download/build wxFreechart. I downloaded the https://github.com/iwbnwif/wxFreeChart clone, but that won't configure against a gtk3 wx.

Where did you get yours from?
by DavidHart
Tue Aug 17, 2021 11:47 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

Instead of attaching images, please paste things like that in your post (inside code-tags, the </> icon) so that they can 1) read more easily, and 2) be copied/pasted. It looks as if you or C::B set a catchpoint. There's no need for that (yet). Turn off any break/catch-points, and run the program in...
by DavidHart
Mon Aug 16, 2021 12:51 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

If by 'hangs' you mean the program runs but freezes, I suggest that running inside gdb is more likely than valgrind to give you useful information. memcheck is renowned for its false alarms.
by DavidHart
Fri Aug 13, 2021 8:01 pm
Forum: C++ Development
Topic: wxCommandEvent get name of Control
Replies: 6
Views: 1304

Re: wxCommandEvent get name of Control

Hi, Another possible solution if your use-case is complicated enough (2 items: no; 200 items: definitely!) is to use the XRCID macro; see the XRC and IDs section of https://docs.wxwidgets.org/stable/overview_xrc.html . The macro was designed to be used with the XRC system, but it works anywhere to t...
by DavidHart
Fri Aug 13, 2021 11:03 am
Forum: C++ Development
Topic: Why event table.
Replies: 7
Views: 1364

Re: Why event table.

Hi, I suspect event tables came first, and everyone got into the habit of using them; and it's convenient to be able to see all a class's events in a single place. But Connect() has a long history too: see this 2007 wxBlog post . Dynamic event handling is more flexible than tables. However wxEvtHand...
by DavidHart
Wed Aug 11, 2021 2:45 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and wxFreeChart with Code::Blocks
Replies: 18
Views: 1730

Re: wxWidgets and wxFreeChart with Code::Blocks

Hi,

I know nothing about wxFreeChart in particular, but it sounds as if you need to use e.g. LD_LIBRARY_PATH. For much more info, see this link.

Regards,

David