Does wxCharts not support mingw?

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
ouch67
Earned some good credits
Earned some good credits
Posts: 134
Joined: Sun Mar 23, 2008 12:09 am

Does wxCharts not support mingw?

Post by ouch67 » Mon Jul 23, 2018 12:32 pm

I can't seem to find a makefile in their github that will build it?

The makefilegnu that they have looks for wx-config which of course doesn't exist on windows.

User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 429
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: Does wxCharts not support mingw?

Post by xaviou » Mon Jul 23, 2018 3:47 pm

Hi.

For a Windows version of wx-config, you can have a look here.

Regards
Xav'
My wxWidgets stuff web page : [email protected]'s wxStuff

ouch67
Earned some good credits
Earned some good credits
Posts: 134
Joined: Sun Mar 23, 2008 12:09 am

Re: Does wxCharts not support mingw?

Post by ouch67 » Wed Jul 25, 2018 2:27 pm

I tried that and it doesn't work. It seems the makefile is calling wx-config inline with compiler options.

User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 429
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: Does wxCharts not support mingw?

Post by xaviou » Thu Jul 26, 2018 11:58 am

Hi.

Here is how you can solve this.
In your command line window, define the 2 following variables (don't forget to adapt to your installation) :

Code: Select all

set WXWIN=C:\wx30
set WXCFG=gcc_lib\mswu
In the "GNUmakefile" add the following line (I've put it at line 48):

Code: Select all

WXCONFIG=$(shell wx-config.exe --cxxflags --libs)
Then replace all occurences of `wx-config --cxxflags --libs` (including the back ticks) by $(WXCONFIG)

Then launch your make : it should work (it did for me).

If you want to build the samples, it is a little bit different:
Define the WXCHARTS variable :

Code: Select all

set WXCHARTS=C:\Test\wxChars
In each sample's makefile, add the folowing lines :

Code: Select all

WXCONFIGLIBS=$(shell wx-config.exe --libs)
WXCONFIGCXX=$(shell wx-config.exe --cxxflags)
Then replace :
  • `wx-config --libs` by $(WXCONFIGLIBS) (only one occurence)
  • each occurences of `wx-config --cxxflags` by $(WXCONFIGCXX) (one occurence by cpp file to compile)
Regards
Xav'
My wxWidgets stuff web page : [email protected]'s wxStuff

Post Reply