Search found 3953 matches

by DavidHart
Sun Feb 21, 2021 5:14 pm
Forum: Platform Related Issues
Topic: Modal Dialog, Controls disappear
Replies: 18
Views: 300

Re: Modal Dialog, Controls disappear

Are you sure you're trying in the correct dir? You can't build wxWidgets-3.1.4/samples/dialogs; it must be wxWidgets-3.1.4/gtk-build/samples/dialogs
by DavidHart
Sun Feb 14, 2021 6:09 pm
Forum: Compiler / Linking / IDE Related
Topic: wxChart as custom control
Replies: 2
Views: 157

Re: wxChart as custom control

Hi, (Indeed, the codelite forum would be a better place.) guess the other way is to add the graph class manually to file generated from wxCrafter. No, don't amend generated files; those alterations would be overwritten each time you used wxCrafter to amend something. Instead you should (in a separat...
by DavidHart
Sun Feb 14, 2021 10:19 am
Forum: Compiler / Linking / IDE Related
Topic: Error using XRC files with wxwidgets
Replies: 1
Views: 64

Re: Error using XRC files with wxwidgets

Hi,

It's a bug in the CodeLite project template (it worked when I last used it, years ago, but presumably it was later changed).
You'll find that it loads if you replace line 38 with
if (!wxXmlResource::Get()->Load("gui.xrc"))
instead of ../gui.xrc

Regards,

David

Edit: Now fixed.
by DavidHart
Fri Feb 12, 2021 8:26 pm
Forum: Compiler / Linking / IDE Related
Topic: wxCrafter generated gui - Gtk-Critical Warning
Replies: 2
Views: 86

Re: wxCrafter generated gui - Gtk-Critical Warning

Hi,

Recent versions of GTK+ have the unfortunate habit of emitting (some might say 'spamming') many such calls. They are almost always false alarms, in that they cause no noticeable problems.

If a program builds and runs successfully, just ignore them.

Regards,

David
by DavidHart
Fri Feb 12, 2021 7:57 am
Forum: Compiler / Linking / IDE Related
Topic: Codeblocks install with wxwidgets 3.1.4
Replies: 8
Views: 166

Re: Codeblocks install with wxwidgets 3.1.4

Hi, I use (and help out on) CodeLite. You could install a deb from its repo which will have a self-contained wx3.1.4, so you don't need to do anything special to get a different wx build to work. Or you can use the official focal codelite* debs (presumably that's what you've just installed); they wo...
by DavidHart
Tue Feb 09, 2021 5:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Process terminated with status -11
Replies: 5
Views: 131

Re: Process terminated with status -11

Hi, wxWidgets 3.0.5 (build: ../configure --with-gtk = 3 - enable-shared --enable-monolithic --enable-unicode). I expect that was really '--with-gtk=3 --enable-shared' i.e. without the spaces... Two questions: 1) Why monolithic? It's very rarely used on Linux, and so very rarely tested. Try a separat...
by DavidHart
Mon Jan 25, 2021 11:03 am
Forum: Compiler / Linking / IDE Related
Topic: Build setup on MacOS and Linux for our wxWigets Source
Replies: 1
Views: 101

Re: Build setup on MacOS and Linux for our wxWigets Source

Hi, I'm not sure I understand your question. Are you asking about building wxWidgets, about building your code against a pre-built wx, or both? Meanwhile, this is a general answer about building wx programs on Linux; I have little Mac knowledge, but I think it is much the same there. On Linux, you h...
by DavidHart
Fri Jan 22, 2021 6:11 pm
Forum: Platform Related Issues
Topic: [Solwed (32 bit vs 64 bit ) ] Re: wxString class crashes in shared lib
Replies: 7
Views: 186

Re: wxString class crashes in shared lib

Hi, I've no experience of cross-compiling (BTW, why not build in linux direct, in e.g. a virtualbox guest?) but: the context of the line is a wxFrame::OnActivate handler makes me wonder if the handler is called too early, when something is not yet initialised. Try changing that handler so that it ju...
by DavidHart
Fri Jan 15, 2021 8:22 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot build wxWidgets from source. errors at make. gtk linux.
Replies: 3
Views: 203

Re: cannot build wxWidgets from source. errors at make. gtk linux.

Hi,

Your path-to-wx contains spaces and (perhaps less of a concern) brackets. The first thing to try is to get rid of those; or, if you prefer, create a symlink without them that you can use as your build's pwd.

Regards,

David
by DavidHart
Mon Jan 11, 2021 6:28 pm
Forum: C++ Development
Topic: can't find the memory leak
Replies: 9
Views: 328

Re: can't find the memory leak

Hi, Maybe I'm missing something, but IIUC what you are doing (for each panel) is: 1) cMain 'new's a Panel instance, and stores it in a pointer: call it pPanel. 2) Some time later, the panel is Close()d and the pPanel pointer nulled. 3) Later still, another Panel may be created and pPanel set to poin...
by DavidHart
Tue Jan 05, 2021 10:58 am
Forum: C++ Development
Topic: [SOLVED] MenuBar not Working...
Replies: 3
Views: 175

Re: MenuBar not Working...

Hi, Presumably the dialog is modal, and its event-loop is causing the problem. I understand it's backwards of the typical having a wxFrame launch a wxDialog....but the application's need's dictate that I need a menu in the child wxFrame. Why not try creating the child frame when the program launches...
by DavidHart
Sat Jan 02, 2021 8:40 pm
Forum: Compiler / Linking / IDE Related
Topic: Library compiled with wrong compiler version?
Replies: 15
Views: 415

Re: Library compiled with wrong compiler version?

Found it!
Good :)

You don't need to move/delete files, though. Just use e.g. -rpath when you build, or LD_LIBRARY_PATH when you run.
See this excellent link.
by DavidHart
Sat Jan 02, 2021 8:33 pm
Forum: Platform Related Issues
Topic: any up to date dev install guide for Ubuntu?
Replies: 3
Views: 186

Re: any up to date dev install guide for Ubuntu?

Hi, ..any recent installation guides I'm sure there are; but, as you've discovered, 'recent' doesn't stay in date forever. a dev version of wxWidgets 2.8 comes with Ubuntu 20 wx2.8 is definitely not up-to-date! All recent ubuntus come with wx3.0.* And I'm not certain what you mean by ubuntu 20 . The...
by DavidHart
Sat Jan 02, 2021 7:35 pm
Forum: Compiler / Linking / IDE Related
Topic: Library compiled with wrong compiler version?
Replies: 15
Views: 415

Re: Library compiled with wrong compiler version?

I'm guessing it's the same minimal.cpp file since I cannot find one in the gtk-build/samples/minimal directory. Yes. When you build in a subdir of the source, ${subdir}/samples/foo holds the foo makefile, *.o and the foo binary, but not the source-files. So, when I compile the samples in ${source-d...
by DavidHart
Sat Jan 02, 2021 5:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Library compiled with wrong compiler version?
Replies: 15
Views: 415

Re: Library compiled with wrong compiler version?

Strange. I can think of 2 things to try: 1) If you don't already do this, try rebuilding 'Hello World', using wx-config --libs all instead of just --libs 2) Try building the wx 'minimal' sample: copy minimal.cpp from ${source-dir}/samples/minimal/ to some temporary dir. Then cd there and do: g++ min...