Compile wxFreeChart 1.6 failed with wxWidget 2.9.5

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
kyleqian
In need of some credit
In need of some credit
Posts: 3
Joined: Fri Dec 02, 2011 2:35 am

Compile wxFreeChart 1.6 failed with wxWidget 2.9.5

Post by kyleqian »

After configure, I can see this:
----------------------------------------------------------------
Configuration for WXFREECHART 1.4 successfully completed.
Summary of main configuration settings for WXFREECHART:
- RELEASE build
- UNICODE mode
- SHARED mode

The wxWidgets build which will be used by WXFREECHART 1.4
has the following settings:
- RELEASE build
- UNICODE mode
- SHARED mode
- VERSION: 2.9.5
- PORT: gtk2

Now, just run make.
----------------------------------------------------------------
But in make:
/home/kyle/freechart/bk-deps g++ -c -o wxfreechart_dll_legend.o -I./include -DWXMAKINGDLL_FREECHART -fPIC -DPIC -I/usr/lib/wx/include/gtk2-unicode-2.9 -I/usr/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DwxDEBUG_LEVEL=0 -DWXUSINGDLL -D__WXGTK__ -pthread -O2 ./src/legend.cpp
In file included from ./include/wx/marker.h:15:0,
from ./include/wx/dataset.h:21,
from ./include/wx/legend.h:14,
from ./src/legend.cpp:10:
./include/wx/areadraw.h:176:29: 错误: 使用 typedef 名‘AreaDrawMap’,在‘class’后
./include/wx/areadraw.h:175:1: 附注: ‘AreaDrawMap’ has a previous declaration here
make: *** [wxfreechart_dll_legend.o] 错误 1
Can anyone can help me?
kyleqian
In need of some credit
In need of some credit
Posts: 3
Joined: Fri Dec 02, 2011 2:35 am

Re: Compile wxFreeChart 1.6 failed with wxWidget 2.9.5

Post by kyleqian »

I found I have to comment the line:
class WXDLLIMPEXP_FREECHART AreaDrawMap;
to compile wxFreeChart.
Post Reply