Search found 3752 matches

by DavidHart
Wed Apr 17, 2019 8:48 pm
Forum: C++ Development
Topic: Duplicate Symbol error
Replies: 3
Views: 47

Re: Duplicate Symbol error

Hi,

You're probably #including that header file more than once. Try moving the BEGIN_EVENT_TABLE...END_EVENT_TABLE() section to a cpp file.

Regards,

David
by DavidHart
Tue Apr 16, 2019 9:32 pm
Forum: Compiler / Linking / IDE Related
Topic: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)
Replies: 10
Views: 135

Re: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)

sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev not enough
still gen the error
What was the (relevant) configure output?

What is the (relevant) part of config.log? If you are not sure, please attach the whole of config.log to your post.
by DavidHart
Wed Apr 10, 2019 9:24 pm
Forum: Compiler / Linking / IDE Related
Topic: wxAnimationCtrl linker errors
Replies: 2
Views: 100

Re: wxAnimationCtrl linker errors

Hi,
find_package(wxWidgets COMPONENTS core base REQUIRED)
wxAnimationCtrl is in wxAdvanced so I suspect that line should include 'core base adv'.

Regards,

David
by DavidHart
Mon Apr 08, 2019 9:34 am
Forum: Compiler / Linking / IDE Related
Topic: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)
Replies: 10
Views: 135

Re: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)

but when i configure --with-opengl=2 There is no parameter to 'with-opengl'. That should be: configure --with-opengl gen the error It's not an error; it's a message telling you that what you asked for cannot be done (because you forgot to install the opengl dependencies). From the wx2.8.12 configur...
by DavidHart
Sun Apr 07, 2019 6:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)
Replies: 10
Views: 135

Re: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)

another way to solved find /usr/openwin/share/include" Why? Ubuntu trusty does not have a /usr/openwin so presumably you have installed it yourself. Why do you keep doing things in unusual (wrong) ways, when there is a simple correct way? Please explain much more about why you are trying to do this.
by DavidHart
Fri Apr 05, 2019 9:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)
Replies: 10
Views: 135

Re: Can't compile wxWidgets 2.8 --with-opengl in ubuntu amd64 (Solved)

Hi, I just 'Approved' your post, but to be honest I think it needs some added explanation. The thread title says 'Can't compile...' but it also says 'Solved'. Do you mean that you were having a problem compiling, but managed to fix it yourself? If so, I suggest you edit the post to explain which bit...
by DavidHart
Tue Mar 26, 2019 6:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Memory leaks detection
Replies: 6
Views: 66

Re: Memory leaks detection

Hi,
pbneves wrote:
Tue Mar 26, 2019 5:13 pm
I've tried valgrind but it seems to raise false positives :(
Indeed it does!

However you might find this wxWiki page helpful. It also has a link to this suppression file which, though for wx2.9.5, is likely still to work.

Regards,

David
by DavidHart
Mon Mar 25, 2019 7:47 am
Forum: C++ Development
Topic: wxWindow::GetHandle() respectively GetHWND() prototype
Replies: 7
Views: 1755

Re: wxWindow::GetHandle() respectively GetHWND() prototype

Only you know what you want to do, and why. But, unless you have a very good reason to use wxX11, I strongly suggest you use wxGTK. BTW, don't build in the source-code dir itself. Instead use a subdir: mkdir buildgtk && cd buildgtk ../configure make -j<n> You don't need --enable-shared --enable-unic...
by DavidHart
Sun Mar 24, 2019 4:18 pm
Forum: C++ Development
Topic: wxWindow::GetHandle() respectively GetHWND() prototype
Replies: 7
Views: 1755

Re: wxWindow::GetHandle() respectively GetHWND() prototype

Hi,
how to GetHandle()
See the Platform-Related Issues FAQ.
and how do i know my wxWidgets is running on GTK or X11
That's easy: don't use wxX11! It's little-used, little-maintained, has missing features...

Regards,

David
by DavidHart
Tue Mar 05, 2019 4:47 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 89

Re: How to copy ("clone", "duplicate") wxControls?

My apologies: I didn't read your question carefully enough. There's a (safe, advisable) way to copy (or clone, or duplicate) an existing wxSomething? wxGenericDirCtrl displays the contents of a dir dynamically. However it doesn't use any sort of custom button. Alternatively you could use wxListCtrl ...
by DavidHart
Tue Mar 05, 2019 3:33 pm
Forum: C++ Development
Topic: How to copy ("clone", "duplicate") wxControls?
Replies: 5
Views: 89

Re: How to copy ("clone", "duplicate") wxControls?

Hi, It sounds as if you're trying to reinvent the wheel ;) . Just use a form-designer. I use wxCrafter (and I'm pleased to say it has just been open-sourced) which is part of the CodeLite IDE; I'd expect other form-designers will do the same sort of thing though. In it, you'd create a wxStaticText, ...
by DavidHart
Tue Mar 05, 2019 10:09 am
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 675

Re: wxTextCtrl behavior has changed.

so I'll probably query the env to see what's set and attempt to restore on exit.
No need. The effect of both SetEnv() and UnsetEnv() is local to the running program, not system-wide. They don't change the 'real' environment, not even that of the calling terminal. So other programs won't be affected.
by DavidHart
Mon Mar 04, 2019 10:52 am
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 675

Re: wxTextCtrl behavior has changed.

Can anyone recommend a way to globally fix the problem for all users Unfortunately, for some weird reason, my stretch vbox text sample has stopped failing, even after setting GTK_IM_MODULE=xim. So I can't try this here, but: I suspect you can do that by changing the program's environment as the pro...
by DavidHart
Sun Mar 03, 2019 10:32 am
Forum: C++ Development
Topic: wxTextCtrl behavior has changed.
Replies: 27
Views: 675

Re: wxTextCtrl behavior has changed.

This bug report could definitely be related but I did not grasp the fix. First, in the terminal in which you run the sample, do: ~> printenv | grep IM For me, there is no output. What happens for you? I expect you will see something like: ~> GTK_IM_MODULE=foo If you don't have any output, maybe tha...