Page 1 of 1

Does wxCharts not support mingw?

Posted: Mon Jul 23, 2018 12:32 pm
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.

Re: Does wxCharts not support mingw?

Posted: Mon Jul 23, 2018 3:47 pm
by xaviou
Hi.

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

Regards
Xav'

Re: Does wxCharts not support mingw?

Posted: Wed Jul 25, 2018 2:27 pm
by ouch67
I tried that and it doesn't work. It seems the makefile is calling wx-config inline with compiler options.

Re: Does wxCharts not support mingw?

Posted: Thu Jul 26, 2018 11:58 am
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'