Search found 3792 matches

by DavidHart
Tue Aug 20, 2019 2:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 7
Views: 92

Re: Migrating to Linux (Mint)

I replaced some instances of wxT with _T, and it seems to work ok now
That's surprising: _T is exactly the same as wxT :? .

After googling the error message, does the string contain a special character?

BTW, if you don't want wx2.8 compatibility you can replace all those wxT("")s with "".
by DavidHart
Tue Aug 20, 2019 12:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 7
Views: 92

Re: Migrating to Linux (Mint)

I was about to say that I couldn't see anything wrong with the code. Fortunately I first googled the error message and found this thread.

Your event table entries should be e.g.
EVT_BUTTON(10003, cDiagnostics::OnButtonClickedReset)

Presumably compilers on the other OSes are less fussy.
by DavidHart
Tue Aug 20, 2019 10:54 am
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 7
Views: 92

Re: Migrating to Linux (Mint)

Hi, I've not previously seen that error message from an event table, so it's not a standard Linux issue. (OTOH if you were using Bind() it would be happening because your compiler can't cope with 'cDiagnostics::OnClose' as its second parameter; it wants '&cDiagnostics::OnClose'.) Can you post the re...
by DavidHart
Mon Aug 19, 2019 6:39 pm
Forum: Compiler / Linking / IDE Related
Topic: Trouble compiling /samples/artprov
Replies: 14
Views: 188

Re: Trouble compiling /samples/artprov

I didn't understand what you do: --prefix=`pwd` The backticks execute whatever is inside them. So you earlier did `wx-config --libs --cxxflags` which calls the wx-config script and tells it to output its cxx flags and (standard) libs (try doing it in a terminal without the backticks). The command p...
by DavidHart
Mon Aug 19, 2019 9:34 am
Forum: Compiler / Linking / IDE Related
Topic: Trouble compiling /samples/artprov
Replies: 14
Views: 188

Re: Trouble compiling /samples/artprov

So, to summarise, you have a system install of wx3.1.2 that (afaict) doesn't provide the samples. You also downloaded the wx3.1.2 source package but didn't build it. You need to do so. I strongly suggest you create a 'local' build as follows: cd /full/path/to/your/wx3.1.2-source mkdir build-dir && c...
by DavidHart
Sun Aug 18, 2019 9:32 pm
Forum: Compiler / Linking / IDE Related
Topic: Trouble compiling /samples/artprov
Replies: 14
Views: 188

Re: Trouble compiling /samples/artprov

I can't compile using make. I believe I didn't understand how to use make in this example folder Can you point me one way how I use make to compile these examples? I have no idea where I'm going wrong Let's go back to the beginning. You downloaded wxWidgets-3.1.2. What did you do then? Did you conf...
by DavidHart
Sun Aug 18, 2019 8:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Trouble compiling /samples/artprov
Replies: 14
Views: 188

Re: Trouble compiling /samples/artprov

I consider a BUG maybe! I believe artbrows.h was written incorrectly No, it's fine. You are just trying 1) to do something wrong 2) and doing it in the wrong way. 1) Don't try to build the code directly with g++. Use the makefile that was set up correctly when you configured wxWidgets. It will be i...
by DavidHart
Sat Aug 17, 2019 8:47 pm
Forum: Compiler / Linking / IDE Related
Topic: Trouble compiling /samples/artprov
Replies: 14
Views: 188

Re: Trouble compiling /samples/artprov

Hi, As you've already been told, the sensible way to build the samples is to cd into the build dir, then run 'make'. However, I just tested what you were trying. After pointing the terminal's PATH to the install dir: PATH=/full/path/to/wxWidgets-3.0.4/install_dir:$PATH I tried your first line. gcc a...
by DavidHart
Fri Aug 02, 2019 7:01 pm
Forum: General Development
Topic: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.
Replies: 4
Views: 102

Re: 3rd party listings/resources? (e.g. wxImageHandler supplemental.) Not wxCode.

Hi,

Not a self-contained component so probably not what you're looking for, but I incorporated some librsvg code into my program: see this commit (and, I've just noticed, s/svn/svg/g in the commit message :().

Regards,

David
by DavidHart
Thu Aug 01, 2019 1:07 pm
Forum: Platform Related Issues
Topic: What does 'hybrid app' exactly mean on Linux?
Replies: 6
Views: 138

Re: What does 'hybrid app' exactly mean on Linux?

libXxf86vm googles to "X11 XFree86 video mode extension library" so it's not too surprising it's not installed on your pure console target. That will probably be one of many missing dependencies (ldd will tell you more). That may not be a problem: to have a reasonable hope of creating a single binar...
by DavidHart
Thu Aug 01, 2019 9:21 am
Forum: Platform Related Issues
Topic: What does 'hybrid app' exactly mean on Linux?
Replies: 6
Views: 138

Re: What does 'hybrid app' exactly mean on Linux?

Hi, To start with the easy one: Is it necessary to build wxWidgets with defined wxUSE_GUI=0, to be able to build a pure console app? No. You can easily test that yourself in a GUI wx build: the 'console' sample runs normally, just as it would in a wxUSE_GUI=0 build. But what does 'hybrid app' exactl...
by DavidHart
Mon Jul 29, 2019 8:54 pm
Forum: Platform Related Issues
Topic: wxWidgets Shared Library and Linux
Replies: 7
Views: 130

Re: wxWidgets Shared Library and Linux

When I searched the forums the consensus was that linking to wxWidgets statically was a bad idea because wxWidgets dependencies would be linked statically. That would make it difficult dealing with different distributions and versions, and I saw mention of licensing concerns because of some of thos...
by DavidHart
Mon Jul 29, 2019 7:37 pm
Forum: Platform Related Issues
Topic: wxWidgets Shared Library and Linux
Replies: 7
Views: 130

Re: wxWidgets Shared Library and Linux

Hi, It's unusual to need to create wx static builds on linux, but it's perfectly possible. Just add --disable-shared to your configure options. You might also like to build in a subdir of the wx source, passing --prefix=$(pwd) to configure. You will then create a build that can be accessed direct fr...
by DavidHart
Fri Jul 26, 2019 9:06 pm
Forum: Platform Related Issues
Topic: Compiling wxWidgets 3.1.1 in Termux
Replies: 50
Views: 734

Re: Compiling wxWidgets 3.1.1 in Termux

I just did: ../configure --with-gtk=2 --enable-gui --prefix=$(pwd) i.e. the same as yours but without specifying the other installation dirs (which wouldn't affect the configure output anyway). The output is similar to yours: Configured wxWidgets 3.1.1 for `x86_64-pc-linux-gnu' Which GUI toolkit sho...
by DavidHart
Thu Jul 18, 2019 5:32 pm
Forum: Platform Related Issues
Topic: Compiling wxWidgets 3.1.1 in Termux
Replies: 50
Views: 734

Re: Compiling wxWidgets 3.1.1 in Termux

I have a wx3.1.1 gtk2 build (on debian stretch) that was configured with ../configure --prefix=`pwd` --enable-debug --enable-cxx11 The nm output is: U _ZN15wxCmdLineParser10SetCmdLineEiRK18wxCmdLineArgsArray U _ZN15wxCmdLineParser4InitEv U _ZN15wxCmdLineParser5ParseEb U _ZN15wxCmdLineParser7SetDescE...