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: 135
Joined: Sun Mar 23, 2008 12:09 am

Does wxCharts not support mingw?

Post by ouch67 »

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: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: Does wxCharts not support mingw?

Post by xaviou »

Hi.

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

Regards
Xav'
My wxWidgets stuff web page : X@v's wxStuff
ouch67
Earned some good credits
Earned some good credits
Posts: 135
Joined: Sun Mar 23, 2008 12:09 am

Re: Does wxCharts not support mingw?

Post by ouch67 »

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: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: Does wxCharts not support mingw?

Post by xaviou »

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 : X@v's wxStuff
Post Reply