[MacPorts] #40390: codeblocks: fix compatibility with wxWidgets 2.9/3.0
MacPorts
noreply at macports.org
Sun Sep 29 11:20:23 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@…):
I submitted three patch files. From that point on I'll report the errors
here.
First one from `wxContribItems`:
{{{
/bin/sh ../../../../../libtool --tag=CXX --mode=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./include -I/opt/local/include -Ulinux -Uunix -O2
-ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP -Winvalid-
pch -fPIC -DPIC -fexceptions -MT treelistctrl.lo -MD -MP -MF
.deps/treelistctrl.Tpo -c -o treelistctrl.lo `test -f
'./src/treelistctrl.cpp' || echo './'`./src/treelistctrl.cpp
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./include -I/opt/local/include -Ulinux -Uunix -O2
-ffast-math -DCB_AUTOCONF -pipe -Os -arch x86_64 -DCB_PRECOMP -Winvalid-
pch -fPIC -DPIC -fexceptions -MT treelistctrl.lo -MD -MP -MF
.deps/treelistctrl.Tpo -c ./src/treelistctrl.cpp -fno-common -DPIC -o
.libs/treelistctrl.o
./src/treelistctrl.cpp:52:10: fatal error: 'wx/mac/private.h' file not
found
#include "wx/mac/private.h"
^
1 error generated.
}}}
Solution:
{{{
---
src/plugins/contrib/wxContribItems/wxTreeList/src/treelistctrl.cpp.orig
+++ src/plugins/contrib/wxContribItems/wxTreeList/src/treelistctrl.cpp
@@ -49,8 +49,12 @@
#include <wx/hashmap.h>
#ifdef __WXMAC__
+#if wxCHECK_VERSION(2,9,0)
+#include "wx/osx/private.h"
+#else
#include "wx/mac/private.h"
#endif
+#endif
#include "wx/treelistctrl.h"
}}}
--
Ticket URL: <https://trac.macports.org/ticket/40390#comment:6>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list