Search found 3755 matches

by DavidHart
Wed May 08, 2019 6:14 pm
Forum: Platform Related Issues
Topic: Using std::regex with Linux
Replies: 1
Views: 65

Re: Using std::regex with Linux

Hi, It's unlikely to be an issue with std::regex itself. More likely it's revealing a timing-sensitive bug in your program, with e.g. a pointer losing scope and being nulled faster in Linux. However you can easily check if it's a real std::regex bug: just make a std::regex call elsewhere e.g. in you...
by DavidHart
Sun May 05, 2019 7:04 am
Forum: Platform Related Issues
Topic: Simple Dunno - Linux Environment Variable
Replies: 1
Views: 65

Re: Simple Dunno - Linux Environment Variable

Hi, just imagine i had Ubuntu 14.04.5 i386 I hope this is imaginary, and you're not really using a 5 year old distro... Anyway, the way to select which wx installation to build against is to point to the correct wx-config. That's a script, the wxWidgets equivalent of pkg-config. You can probably (I ...
by DavidHart
Mon Apr 29, 2019 8:58 am
Forum: Compiler / Linking / IDE Related
Topic: Unable to checkout old branch from a fresh clone
Replies: 1
Views: 61

Re: Unable to checkout old branch from a fresh clone

Hi, The new submodules thing is a problem when reverting to a pre-modules commit. You can probably fix it by doing: git submodule foreach --recursive git reset --hard However: 1) It looks as if there's a wx3.0.2. tarball here 2) Why use wx3.0.2 anyway? You don't need exact version matches across pla...
by DavidHart
Wed Apr 17, 2019 8:48 pm
Forum: C++ Development
Topic: Duplicate Symbol error
Replies: 3
Views: 90

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: 199

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: 138

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: 199

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: 199

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: 199

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: 104

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: 1798

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: 1798

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: 96

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: 96

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, ...