Search found 3574 matches

by DavidHart
Mon Jan 08, 2018 7:59 am
Forum: Platform Related Issues
Topic: dc.GetSize() crash on linux OS with wxwidgets 3.0.2 version( debug mode)
Replies: 1
Views: 52

Re: dc.GetSize() crash on linux OS with wxwidgets 3.0.2 version( debug mode)

Hi, dc.GetSize() crash... dc.GetSize(&w,&h) have assertion... Which is it, a crash or assert? wx3 added lots of asserts that show unless you define NDEBUG . If that's all that is happening you can just ignore the asserts or prevent them in that way. Or if they are gtk+ critical warnings, tho...
by DavidHart
Wed Jan 03, 2018 4:57 pm
Forum: Platform Related Issues
Topic: Using wxExecute and wxShell in Linux Debian.
Replies: 1
Views: 56

Re: Using wxExecute and wxShell in Linux Debian.

Hi,

You need to open a shell inside the wxExecute function. e.g.

Code: Select all

wxExecute("sh -c \"xterm -v | grep -q 271\"", wxEXEC_SYNC)


BTW, you wrote:
_(“./prog1”)

_() marks a string as to be translated. I doubt if you want that there.

Regards,

David
by DavidHart
Wed Dec 27, 2017 10:53 pm
Forum: Compiler / Linking / IDE Related
Topic: wxsqlite3-3.5.8 linux problem
Replies: 3
Views: 113

Re: wxsqlite3-3.5.8 linux problem

Hi, I have a feeling I didn't configure wxWidgets right I've zero wxsqlite3 experience, but I suspect your feeling is correct. If the wxsqlite3 instructions demand a particular wxWidgets configuration, create that. If not, I suggest you try what it seems to be looking for: ./configure --disable-shar...
by DavidHart
Mon Dec 25, 2017 11:30 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets on Linux Mint 18.3
Replies: 14
Views: 236

Re: Compiling wxWidgets on Linux Mint 18.3

Always for all wxWd* dir fron tar or git with make -j, building terminate progressing and shutdown system. I often get that too, mostly in VirtualBox guests, with make -j. Or sometimes compiling is very slow, or gcc aborts complaining of lack of space on the device. It happens because of running ou...
by DavidHart
Sun Dec 24, 2017 4:53 pm
Forum: Compiler / Linking / IDE Related
Topic: webkit not found [SOLVED]
Replies: 3
Views: 138

Re: webkit not found [SOLVED]

Hi,

You need to install the development package, not (just) the lib package. Try:
sudo apt-get install libwebkitgtk-dev

Regards,

David
by DavidHart
Sat Dec 23, 2017 12:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets on Linux Mint 18.3
Replies: 14
Views: 236

Re: Compiling wxWidgets on Linux Mint 18.3

I successfully built using 'make -j'. However I just tried again using 'make CXXFLAGS="-std=c++11"' and this time I did get your build error. Clearly setting c++11 on Mint 18.3 isn't essential. However if you feel you must do something, the 4 year old commit 4bba79994f says: C++11 note: If...
by DavidHart
Sat Dec 23, 2017 12:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets on Linux Mint 18.3
Replies: 14
Views: 236

Re: Compiling wxWidgets on Linux Mint 18.3

I just built a recent wx git in a Mint 18.3 VirtualBox guest. I installed libgtk2.0-dev and build-essential, plus the opengl dependencies, then used a simplified version of your configure line (much of which was unnecessary): ../configure --enable-monolithic --disable-shared --with-opengl --prefix=$...
by DavidHart
Sat Dec 23, 2017 7:45 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets on Linux Mint 18.3
Replies: 14
Views: 236

Re: Compiling wxWidgets on Linux Mint 18.3

Hi,

Have you installed the gtk+2, or +3, dev package and its dependencies? They're probably called libgtk2.0-dev or libgtk-3-dev.

Regards,

David
by DavidHart
Wed Dec 20, 2017 10:55 pm
Forum: Compiler / Linking / IDE Related
Topic: How to install wxWidgets
Replies: 2
Views: 93

Re: How to install wxWidgets

Hi, In summary, you build against wxWidgets by telling the wx-config script to emit compilation and link instructions. As wxWidgets-3.0.3/docs/gtk/install.txt tells you (it's buried in amongst other stuff, but it is there) a simple build would look like: g++ myfoo.cpp `wx-config --libs --cxxflags` -...
by DavidHart
Mon Nov 27, 2017 6:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Trunk make error
Replies: 9
Views: 294

Re: Trunk make error

I just tried the 2 methods in a VirtualBox ubuntu artful guest. I was able to do, as a normal user, both: git clone https://github.com/wxWidgets/wxWidgets.git cd wxWidgets git submodule update --init and git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets.git cd wxWidgets # and for...
by DavidHart
Mon Nov 27, 2017 4:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Trunk make error
Replies: 9
Views: 294

Re: Trunk make error

In debian stretch I have no trouble as a normal user.

After the git clone, did you cd into the new wx subdir before doing git submodule update --init ?
by DavidHart
Mon Nov 27, 2017 10:11 am
Forum: Compiler / Linking / IDE Related
Topic: Trunk make error
Replies: 9
Views: 294

Re: Trunk make error

This turned out to be due to a change to the jpeg submodule (see this wxBlog post ), probably commit a4530c3c73. For me it was fixed by doing: git submodule update However anyone who hasn't previously done so should instead do: git submodule update --init And for completeness, future clones should b...
by DavidHart
Sun Nov 26, 2017 4:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Trunk make error
Replies: 9
Views: 294

Re: Trunk make error

Hi, IIRC there have been recent changes to the built-in libjpeg. It sounds as if the resulting 'configure' has a missing dependency check for whichever library supplies jpeg/jaricom.c; or alternatively, a stale rule that used that file but is no longer needed. Please report this on trac . Regards, D...
by DavidHart
Sun Nov 05, 2017 7:57 am
Forum: Compiler / Linking / IDE Related
Topic: wxUSE_ANY must be defined Error [SOLVED]
Replies: 2
Views: 131

Re: wxUSE_ANY must be defined Error [SOLVED]

Hi, I ensured that I have the correct commands in the compile and linker settings. What does that mean? Presumably you're using an IDE. Which one? What did you put into those settings? What you should have put is that IDE's way of invoking the wx-config script; e.g. for CodeLite: $(shell wx-config -...
by DavidHart
Thu Sep 28, 2017 6:51 pm
Forum: Platform Related Issues
Topic: wxWidgets 3.0.3 on , Odroid XU4 Xenial 16.04
Replies: 5
Views: 333

Re: wxWidgets 3.0.3 on , Odroid XU4 Xenial 16.04

Two answers: 1) To build a wx-using program, don't try to guess the parameters. Instead use the wx-config script. Assuming you have a standard wx install, you should be able to open a terminal and do things like: wx-config --list wx-config --cxxflags wx-config --libs all and get sensible outputs. If...

Go to advanced search