Search found 4173 matches

by DavidHart
Sun May 07, 2023 5:30 pm
Forum: General Development
Topic: Bakefile support
Replies: 12
Views: 7548

Re: Bakefile support

As I'm sure you realised immediately after you made that post, it means that you've not installed the package that contains the python headers. That usually means a package with the ending '-dev'. If you went to the debian packages page, https://www.debian.org/distrib/packages#search_packages, and r...
by DavidHart
Sat May 06, 2023 5:27 pm
Forum: General Development
Topic: Bakefile support
Replies: 12
Views: 7548

Re: Bakefile support

Why not use the latest one? If it's good enough for VZ....
by DavidHart
Sat May 06, 2023 6:49 am
Forum: General Development
Topic: Bakefile support
Replies: 12
Views: 7548

Re: Bakefile support

AFAIK no distro ever supplied binaries. To see what's available from the bakefile site, see https://github.com/vslavik/bakefile/releases.
by DavidHart
Sun Apr 30, 2023 7:00 am
Forum: General Development
Topic: What to install for cross-compiling?
Replies: 1
Views: 5726

Re: What to install for cross-compiling?

From the way you phrased your question, closely following your previous topic , I think one of us misunderstands what is wanted. In that topic I suggested installing VirtualBox inside your current machine's OS. That's not a wx issue; just look at the VirtualBox site, or see what your OS provides, or...
by DavidHart
Sat Apr 29, 2023 5:00 pm
Forum: General Development
Topic: Bakefile support
Replies: 12
Views: 7548

Re: Bakefile support

Sorry, no idea. Cross-compiling is something I've never needed/wanted to do.

However I've seen it discussed in other threads here, so...
by DavidHart
Sat Apr 29, 2023 1:34 pm
Forum: General Development
Topic: Bakefile support
Replies: 12
Views: 7548

Re: Bakefile support

Install e.g. VirtualBox in your current machine. Then install e.g. debian buster (which is 'oldstable' and so still supported) into VirtualBox.
Install Bakefile inside the debian buster guest, and you're set up for years of use.
by DavidHart
Mon Apr 17, 2023 4:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Makefile, Precompiler Headers and Compiling in Linux
Replies: 19
Views: 1544

Re: Makefile, Precompiler Headers and Compiling in Linux

I have been able to compile, and build the minimal sample. Try copy/pasting your current wxT("Minimal wxWidgets App") into that, e.g. as wxString foo(wxT("Minimal wxWidgets App") ); and, for bonus points, also try editing away the wxT(): wxString bar("Minimal wxWidgets App&...
by DavidHart
Mon Apr 17, 2023 2:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Makefile, Precompiler Headers and Compiling in Linux
Replies: 19
Views: 1544

Re: Makefile, Precompiler Headers and Compiling in Linux

Did you, perhaps, copy/paste that string or a similar one from a web-page? I do sometimes see html quote-marks that look like that online.
by DavidHart
Sat Apr 15, 2023 5:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Makefile, Precompiler Headers and Compiling in Linux
Replies: 19
Views: 1544

Re: Makefile, Precompiler Headers and Compiling in Linux

Code: Select all

g++ -o myprog `wx-config --cxxflags --libs` mysource.cpp
Note that those are backticks (`), not commas ('). An alternative, harder-to-get-wrong, way of doing the same thing is

Code: Select all

g++ -o myprog $(wx-config --cxxflags --libs) mysource.cpp
by DavidHart
Sat Apr 15, 2023 2:48 pm
Forum: Compiler / Linking / IDE Related
Topic: Makefile, Precompiler Headers and Compiling in Linux
Replies: 19
Views: 1544

Re: Makefile, Precompiler Headers and Compiling in Linux

Since I did a shared build this is in my /usr/lib/ folder, No it isn't. wx-config --cxxflags -I/usr/ local /lib/wx/include/gtk3-unicode-3.2 wx-config --libs -L/usr/ local /lib By default, ./configure... and (sudo) make install will install to /usr/local/. I don't know about arch, but /usr/local/* i...
by DavidHart
Sat Apr 15, 2023 6:48 am
Forum: Compiler / Linking / IDE Related
Topic: Makefile, Precompiler Headers and Compiling in Linux
Replies: 19
Views: 1544

Re: Makefile, Precompiler Headers and Compiling in Linux

Hi, It seems it is some sort of linking issues. Not linking (yet). Can't find wx/wxprec.h and wx/wx.h means it's still at the compile stage. I did a shared build this is in my /usr/lib/ What is the output of doing, in a terminal: wx-config --cxxflags wx-config --libs How are you trying to compile he...
by DavidHart
Mon Apr 03, 2023 4:27 pm
Forum: C++ Development
Topic: Access violation in wxFileDialog::ShowModal
Replies: 8
Views: 554

Re: Access violation in wxFileDialog::ShowModal

Hi,

This has the smell of a wxChar* that's pointing at a temporary char*. See for example this wxWiki page.

What happens if you change your code from
const wxChar* extension = filterBuffer.t_str();
to
wxCharBuffer extension = filterBuffer.t_str());

Regards,

David
by DavidHart
Sun Mar 26, 2023 5:51 pm
Forum: C++ Development
Topic: Using stock bitmap/id in the toolbar
Replies: 4
Views: 465

Re: Using stock bitmap/id in the toolbar

I don't understand enough of the situation to be sure it's relevant, but have you thought of using the XRCCTRL macro?
See the XRC and IDs section of https://docs.wxwidgets.org/stable/overview_xrc.html. It's not restricted to XRC, though; it's useful elsewhere too.
by DavidHart
Sun Mar 19, 2023 3:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Load GUI libraries at runtime (but only if needed)
Replies: 53
Views: 6019

Re: Load GUI libraries at runtime (but only if needed)

Linking statically means everything is in the library/executable. You misunderstand. It means linking statically to the wx libs, not to everything. See my earlier post about a statically-linked 'minimal'. That linked dynamically to 76 libs, including libgtk-3.so.0 => /lib/x86_64-linux-gnu/libgtk-3....
by DavidHart
Thu Mar 16, 2023 9:00 pm
Forum: General Development
Topic: Cmake cannot find WxWidgets
Replies: 4
Views: 6754

Re: Cmake cannot find WxWidgets

OK. Then I don't know why you have that problem, especially if it's only on one distro. However a couple of suggestions (which you've probably already tried, but still...) 1) Check (on Rocky) that the wxWidgets samples build and run, and that they find the correct wx headers and libs. You can confir...