Search found 3762 matches

by DavidHart
Sun Jun 16, 2019 6:36 pm
Forum: Compiler / Linking / IDE Related
Topic: What is Cairo, and how is it related to GTK and/or OpenGL when building for Linux?
Replies: 1
Views: 14

Re: What is Cairo, and how is it related to GTK and/or OpenGL when building for Linux?

Hi, What are you trying to do? Build wxWidgets itself, or build a program against it? And which wxWidgets version are you using? (primarily w/ CMake... If you're trying to use cmake to build wxWidgets itself, be aware that it's a recent innovation and bugs are to be expected. I suggest you instead u...
by DavidHart
Thu Jun 13, 2019 3:09 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 271

Re: Help? GTK events do/dont's for dummies (nothing works)

I'm not sure what's happening here exactly (wx-config) but searching for this "DSO" error suggests the linker dependencies might want to be in a different order? I expected that to be the reason too, but the usual workaround (LDFLAGS="-Wl,--no-as-needed" make) failed. After some trial'n'error and g...
by DavidHart
Thu Jun 13, 2019 10:21 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 271

Re: Help? GTK events do/dont's for dummies (nothing works)

I'm not sure how to best go about it, because all I have is the sources package from Ubuntu. Maybe I need to download them from somewhere else if they're not part of that. I think you've now found that they're in a separate package: wx3.0-examples. It installs to /usr/share/doc/wx-examples/ Update:...
by DavidHart
Wed Jun 12, 2019 11:44 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 28
Views: 271

Re: Help? GTK events do/dont's for dummies (nothing works)

I can't find any guides for wxGTK Look at the samples that come with the wx source. Also build and run them; if they work, that makes it unlikely that your wxGTK build is buggy. They have a few handlers for input and Size/Move events. This works for MSW. Under GTK the same code just doesn't work pr...
by DavidHart
Tue Jun 11, 2019 9:19 am
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 8
Views: 132

Re: Xlib: How does wxWidgets understand x11's client options?

The so-called x11 port is probably unmanaged x11. Which looks pretty crumby if you use it like a desktop, but not so bad on systems that are able to do unmanaged x11 with just a popup window. If it does what you want, that's fine. There's still one known user of wxMotif! If you don't understand the...
by DavidHart
Mon Jun 10, 2019 1:08 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 8
Views: 132

Re: Xlib: How does wxWidgets understand x11's client options?

Hi, I've read your question several times and I'm afraid I still don't understand what you're asking; or, more important, why. What is it that you are trying to do? And why do you need to interact with x11 itself to do it? Meanwhile, a general point that you probably already know, but just in case: ...
by DavidHart
Wed May 22, 2019 3:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Ubuntu can't link wxStyledTextCtrl
Replies: 15
Views: 266

Re: Ubuntu can't link wxStyledTextCtrl

Hi,

How do you link? What is your wx-config linker line?

I ask because you're likely tripping over this change.

Regards,

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

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

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

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

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

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

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

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

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.