[MacPorts] #40390: codeblocks: fix compatibility with wxWidgets 2.9/3.0
MacPorts
noreply at macports.org
Sun Sep 29 11:44:39 PDT 2013
#40390: codeblocks: fix compatibility with wxWidgets 2.9/3.0
-------------------------+---------------------
Reporter: mojca@… | Owner: mojca@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: codeblocks |
-------------------------+---------------------
Comment (by mojca@…):
Next related error:
{{{
libtool: compile: /usr/bin/clang++ -DHAVE_CONFIG_H -I.
-I../../../../../src/include
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/lib/wx/include
/osx_cocoa-unicode-2.9
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
-D__WXOSX_COCOA__
-I../../../../../src/plugins/contrib/source_exporter/wxPdfDocument/include
-DwxPDF_USE_WXMODULE=0 -I/opt/local/include -Ulinux -Uunix -O2 -ffast-math
-DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP -Winvalid-pch -fPIC
-DPIC -fexceptions -MT libwxPdfDocument_la-pdfprint.lo -MD -MP -MF .deps
/libwxPdfDocument_la-pdfprint.Tpo -c src/pdfprint.cpp -fno-common -DPIC
-o .libs/libwxPdfDocument_la-pdfprint.o
In file included from src/pdfprint.cpp:59:
../../../../../src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfprint.h:904:16:
error: allocating an object of abstract class type 'wxPdfPreviewDCImpl'
: wxDC(new wxPdfPreviewDCImpl(this, *dc.GetImpl(), pdfdc)) { }
^
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9/wx/dc.h:609:18:
note: unimplemented pure virtual method 'DoDrawLines' in
'wxPdfPreviewDCImpl'
virtual void DoDrawLines(int n, const wxPoint points[],
^
/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/2.9/include/wx-2.9/wx/dc.h:614:18:
note: unimplemented pure virtual method 'DoDrawPolygon' in
'wxPdfPreviewDCImpl'
virtual void DoDrawPolygon(int n, const wxPoint points[],
^
1 error generated.
make[5]: *** [libwxPdfDocument_la-pdfprint.lo] Error 1
}}}
and the patch:
{{{
---
src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfprint.h.orig
+++
src/plugins/contrib/source_exporter/wxPdfDocument/include/wx/pdfprint.h
@@ -867,14 +867,14 @@ public:
return rval;
}
- virtual void DoDrawLines(int n, wxPoint points[],
+ virtual void DoDrawLines(int n, const wxPoint points[],
wxCoord xoffset, wxCoord yoffset)
{
m_dc.DoDrawLines(n, points,xoffset, yoffset);
UpdateBoundingBox();
}
- virtual void DoDrawPolygon(int n, wxPoint points[],
+ virtual void DoDrawPolygon(int n, const wxPoint points[],
wxCoord xoffset, wxCoord yoffset,
wxPolygonFillMode fillStyle =
wxODDEVEN_RULE)
{
}}}
--
Ticket URL: <https://trac.macports.org/ticket/40390#comment:10>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list