|
From: Alessandro V. <a.v...@st...> - 2011-11-02 20:13:13
|
Dear developers, When building wx-core-0.12.1.7 I get the following error(s): > src/include/wrapper.h:24:24: > error: wx/tabctrl.h: No such file or directory > > In file included from src/cpp/apppath.cpp:1:0: > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnExecute(const wxString&, char*, int, wxIPCFormat)’: > > src/include/wrapper.h:348:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual wxChar* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)’: > > src/include/wrapper.h:354:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:354:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnPoke(const wxString&, const wxString&, wxChar*, int, wxIPCFormat)’: > > src/include/wrapper.h:361:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:361:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnStartAdvise(const wxString&, const wxString&)’: > > src/include/wrapper.h:365:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:365:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnStopAdvise(const wxString&, const wxString&)’: > > src/include/wrapper.h:369:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:369:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnAdvise(const wxString&, const wxString&, char*, int, wxIPCFormat)’: > > src/include/wrapper.h:376:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:376:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ Environment: GHC 7.0.3 64 Bit OS X 10.7.2 (Lion) wxWidgets 2.9.2 source install with Cocoa. > gcc --version (19:51:53 02-11) > i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 How can I fix this? Kind regards, Alessandro |
|
From: Dave T. <duk...@gm...> - 2011-11-02 21:50:54
|
Interesting, it looks like this was fixed at some point, but the fix never made it in to a release on hackage. You'll need to either remove, or more correctly #if out this line: #include "wx/tabctrl.h" As shown in here: http://code.haskell.org/wxhaskell/wxcore/src/include/wrapper.h Perhaps someone on this list can get that fix in to hackage? Dave, On 2 November 2011 19:00, Alessandro Vermeulen <a.v...@st...> wrote: > Dear developers, > When building wx-core-0.12.1.7 I get the following error(s): > > src/include/wrapper.h:24:24: > error: wx/tabctrl.h: No such file or directory > In file included from src/cpp/apppath.cpp:1:0: > src/include/wrapper.h: In member function ‘virtual bool > ELJConnection::OnExecute(const wxString&, char*, int, wxIPCFormat)’: > src/include/wrapper.h:348:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual wxChar* > ELJConnection::OnRequest(const wxString&, const wxString&, int*, > wxIPCFormat)’: > src/include/wrapper.h:354:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h:354:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool > ELJConnection::OnPoke(const wxString&, const wxString&, wxChar*, int, > wxIPCFormat)’: > src/include/wrapper.h:361:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h:361:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool > ELJConnection::OnStartAdvise(const wxString&, const wxString&)’: > src/include/wrapper.h:365:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h:365:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool > ELJConnection::OnStopAdvise(const wxString&, const wxString&)’: > src/include/wrapper.h:369:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h:369:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool > ELJConnection::OnAdvise(const wxString&, const wxString&, char*, int, > wxIPCFormat)’: > src/include/wrapper.h:376:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h:376:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > Environment: > GHC 7.0.3 64 Bit > OS X 10.7.2 (Lion) > wxWidgets 2.9.2 source install with Cocoa. > > gcc --version > > (19:51:53 02-11) > i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 > > How can I fix this? > Kind regards, > Alessandro > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > wxhaskell-devel mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel > > |
|
From: Alessandro V. <a.v...@st...> - 2011-11-02 22:03:44
|
Ok, I did that. However, I still (not surprisingly) get the other error messages: > src/include/wrapper.h:350:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual wxChar* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)’: > > src/include/wrapper.h:356:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:356:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnPoke(const wxString&, const wxString&, wxChar*, int, wxIPCFormat)’: > > src/include/wrapper.h:363:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:363:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnStartAdvise(const wxString&, const wxString&)’: > > src/include/wrapper.h:367:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:367:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnStopAdvise(const wxString&, const wxString&)’: > > src/include/wrapper.h:371:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:371:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > src/include/wrapper.h: In member function ‘virtual bool ELJConnection::OnAdvise(const wxString&, const wxString&, char*, int, wxIPCFormat)’: > > src/include/wrapper.h:378:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ > > src/include/wrapper.h:378:0: > error: invalid cast from type ‘wxCStrData’ to type ‘void*’ It seems like a lot of the same type of error. Is this also already fixed or has it something to do with 2.9? - Alessandro On 2 nov. 2011, at 22:50, Dave Tapley wrote: > Interesting, it looks like this was fixed at some point, but the fix > never made it in to a release on hackage. > > You'll need to either remove, or more correctly #if out this line: > #include "wx/tabctrl.h" > > As shown in here: > http://code.haskell.org/wxhaskell/wxcore/src/include/wrapper.h > > Perhaps someone on this list can get that fix in to hackage? > > Dave, > > > On 2 November 2011 19:00, Alessandro Vermeulen > <a.v...@st...> wrote: >> Dear developers, >> When building wx-core-0.12.1.7 I get the following error(s): >> >> src/include/wrapper.h:24:24: >> error: wx/tabctrl.h: No such file or directory >> In file included from src/cpp/apppath.cpp:1:0: >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnExecute(const wxString&, char*, int, wxIPCFormat)’: >> src/include/wrapper.h:348:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual wxChar* >> ELJConnection::OnRequest(const wxString&, const wxString&, int*, >> wxIPCFormat)’: >> src/include/wrapper.h:354:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:354:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnPoke(const wxString&, const wxString&, wxChar*, int, >> wxIPCFormat)’: >> src/include/wrapper.h:361:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:361:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnStartAdvise(const wxString&, const wxString&)’: >> src/include/wrapper.h:365:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:365:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnStopAdvise(const wxString&, const wxString&)’: >> src/include/wrapper.h:369:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:369:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnAdvise(const wxString&, const wxString&, char*, int, >> wxIPCFormat)’: >> src/include/wrapper.h:376:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:376:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> Environment: >> GHC 7.0.3 64 Bit >> OS X 10.7.2 (Lion) >> wxWidgets 2.9.2 source install with Cocoa. >> >> gcc --version >> >> (19:51:53 02-11) >> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 >> >> How can I fix this? >> Kind regards, >> Alessandro >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> wxhaskell-devel mailing list >> wxh...@li... >> https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel >> >> |
|
From: Alessandro V. <a.v...@st...> - 2011-11-03 07:57:24
|
I got the head version of the repository tonight and I tried to build it, which gave me the following error: Configuring wxcore-0.13.1... setup: Missing dependencies on foreign libraries: * Missing C libraries: wx_baseu-2.9, wx_baseu_net-2.9, wx_baseu_xml-2.9, wx_osx_cocoau_core-2.9, wx_osx_cocoau_adv-2.9, wx_osx_cocoau_qa-2.9, wx_osx_cocoau_html-2.9, wx_osx_cocoau_xrc-2.9 I couldn't find these files on my system, however I did find these: > alessandro@Mythradil:/usr/local/Cellar/wxmac2.9/2.9.2/lib: ★ git [master - 1375e957a3dbfbc80833861efada338f330daca5] > ➔ ls (08:39:21 03-11) > libwx_baseu-2.9.2.0.0.dylib libwx_osx_cocoau_adv-2.9.2.dylib libwx_osx_cocoau_gl-2.9.dylib libwx_osx_cocoau_qa-2.9.2.0.0.dylib libwx_osx_cocoau_stc-2.9.2.dylib > libwx_baseu-2.9.2.dylib libwx_osx_cocoau_adv-2.9.dylib libwx_osx_cocoau_html-2.9.2.0.0.dylib libwx_osx_cocoau_qa-2.9.2.dylib libwx_osx_cocoau_stc-2.9.dylib > libwx_baseu-2.9.dylib libwx_osx_cocoau_aui-2.9.2.0.0.dylib libwx_osx_cocoau_html-2.9.2.dylib libwx_osx_cocoau_qa-2.9.dylib libwx_osx_cocoau_xrc-2.9.2.0.0.dylib > libwx_baseu_net-2.9.2.0.0.dylib libwx_osx_cocoau_aui-2.9.2.dylib libwx_osx_cocoau_html-2.9.dylib libwx_osx_cocoau_ribbon-2.9.2.0.0.dylib libwx_osx_cocoau_xrc-2.9.2.dylib > libwx_baseu_net-2.9.2.dylib libwx_osx_cocoau_aui-2.9.dylib libwx_osx_cocoau_media-2.9.2.0.0.dylib libwx_osx_cocoau_ribbon-2.9.2.dylib libwx_osx_cocoau_xrc-2.9.dylib > libwx_baseu_net-2.9.dylib libwx_osx_cocoau_core-2.9.2.0.0.dylib libwx_osx_cocoau_media-2.9.2.dylib libwx_osx_cocoau_ribbon-2.9.dylib wx > libwx_baseu_xml-2.9.2.0.0.dylib libwx_osx_cocoau_core-2.9.2.dylib libwx_osx_cocoau_media-2.9.dylib libwx_osx_cocoau_richtext-2.9.2.0.0.dylib > libwx_baseu_xml-2.9.2.dylib libwx_osx_cocoau_core-2.9.dylib libwx_osx_cocoau_propgrid-2.9.2.0.0.dylib libwx_osx_cocoau_richtext-2.9.2.dylib > libwx_baseu_xml-2.9.dylib libwx_osx_cocoau_gl-2.9.2.0.0.dylib libwx_osx_cocoau_propgrid-2.9.2.dylib libwx_osx_cocoau_richtext-2.9.dylib > libwx_osx_cocoau_adv-2.9.2.0.0.dylib libwx_osx_cocoau_gl-2.9.2.dylib libwx_osx_cocoau_propgrid-2.9.dylib libwx_osx_cocoau_stc-2.9.2.0.0.dylib I added this path to configure: cabal configure --extra-lib-dirs=/usr/local/Cellar/wxmac2.9/2.9.2/lib Which resulted in the same error, so I tried symlinking libwx_baseu-2.9.dylib to wx_baseu-2.9.dylib which again resulted in the same error. What am I doing wrong here? NOTE: wxmac2.9 is a formula I made to build the 2.9.2 release with homebrew, it is not released yet but you can find it on github. [1] [1] https://gist.github.com/6292c06e63ceb4fc6fc2 - Alessandro On 2 nov. 2011, at 23:21, Dave Tapley wrote: > On 2 November 2011 22:03, Alessandro Vermeulen > <a.v...@st...> wrote: >> Ok, I did that. However, I still (not surprisingly) get the other error >> messages: > > Sorry, I was too lazy to read past that first error ;) > >> >> src/include/wrapper.h:350:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual wxChar* >> ELJConnection::OnRequest(const wxString&, const wxString&, int*, >> wxIPCFormat)’: >> src/include/wrapper.h:356:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:356:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnPoke(const wxString&, const wxString&, wxChar*, int, >> wxIPCFormat)’: >> src/include/wrapper.h:363:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:363:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnStartAdvise(const wxString&, const wxString&)’: >> src/include/wrapper.h:367:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:367:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnStopAdvise(const wxString&, const wxString&)’: >> src/include/wrapper.h:371:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:371:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h: In member function ‘virtual bool >> ELJConnection::OnAdvise(const wxString&, const wxString&, char*, int, >> wxIPCFormat)’: >> src/include/wrapper.h:378:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> src/include/wrapper.h:378:0: >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> It seems like a lot of the same type of error. Is this also already fixed or >> has it something to do with 2.9? >> - Alessandro > > I suspect it has to do with all the changes which were made to unicode > handling between wx-2.8.x and wx-2.9, however I got the impression > that they had been fixed. > > It might be worth pulling down this with darcs, and building it > yourself, if you're comfortable with that: > http://code.haskell.org/wxhaskell/ > > Dave, > >> On 2 nov. 2011, at 22:50, Dave Tapley wrote: >> >> Interesting, it looks like this was fixed at some point, but the fix >> never made it in to a release on hackage. >> >> You'll need to either remove, or more correctly #if out this line: >> #include "wx/tabctrl.h" >> >> As shown in here: >> http://code.haskell.org/wxhaskell/wxcore/src/include/wrapper.h >> >> Perhaps someone on this list can get that fix in to hackage? >> >> Dave, >> >> >> On 2 November 2011 19:00, Alessandro Vermeulen >> <a.v...@st...> wrote: >> >> Dear developers, >> >> When building wx-core-0.12.1.7 I get the following error(s): >> >> src/include/wrapper.h:24:24: >> >> error: wx/tabctrl.h: No such file or directory >> >> In file included from src/cpp/apppath.cpp:1:0: >> >> src/include/wrapper.h: In member function ‘virtual bool >> >> ELJConnection::OnExecute(const wxString&, char*, int, wxIPCFormat)’: >> >> src/include/wrapper.h:348:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h: In member function ‘virtual wxChar* >> >> ELJConnection::OnRequest(const wxString&, const wxString&, int*, >> >> wxIPCFormat)’: >> >> src/include/wrapper.h:354:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h:354:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h: In member function ‘virtual bool >> >> ELJConnection::OnPoke(const wxString&, const wxString&, wxChar*, int, >> >> wxIPCFormat)’: >> >> src/include/wrapper.h:361:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h:361:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h: In member function ‘virtual bool >> >> ELJConnection::OnStartAdvise(const wxString&, const wxString&)’: >> >> src/include/wrapper.h:365:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h:365:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h: In member function ‘virtual bool >> >> ELJConnection::OnStopAdvise(const wxString&, const wxString&)’: >> >> src/include/wrapper.h:369:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h:369:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h: In member function ‘virtual bool >> >> ELJConnection::OnAdvise(const wxString&, const wxString&, char*, int, >> >> wxIPCFormat)’: >> >> src/include/wrapper.h:376:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> src/include/wrapper.h:376:0: >> >> error: invalid cast from type ‘wxCStrData’ to type ‘void*’ >> >> Environment: >> >> GHC 7.0.3 64 Bit >> >> OS X 10.7.2 (Lion) >> >> wxWidgets 2.9.2 source install with Cocoa. >> >> gcc --version >> >> (19:51:53 02-11) >> >> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 >> >> How can I fix this? >> >> Kind regards, >> >> Alessandro >> >> ------------------------------------------------------------------------------ >> >> RSA(R) Conference 2012 >> >> Save $700 by Nov 18 >> >> Register now >> >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> >> _______________________________________________ >> >> wxhaskell-devel mailing list >> >> wxh...@li... >> >> https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel >> >> >> >> |
|
From: Eric K. <eri...@gm...> - 2011-11-03 09:55:28
|
Nice, thanks for the Homebrew formula I have a fix for that one, but it doesn't generalise very well (ie. outside of Mac + wx2.9) It won't get you all the way. I'm stuck just like you are |
|
From: Eric K. <eri...@gm...> - 2011-11-03 09:59:46
Attachments:
rudimentary-replacement-for-wx_config_.dpatch
|
Whoops, forgot to record. Take this one too |
|
From: Alessandro V. <a.v...@st...> - 2011-11-03 10:54:22
|
I've applied your patches, and I though it build… however, it get's stuck further on, is there where you are stuck too? > src/cpp/apppath.cpp: In function ‘wxString GetApplicationPath()’: > > src/cpp/apppath.cpp:34:0: > warning: ‘NSIsSymbolNameDefined’ is deprecated (declared at /usr/include/mach-o/dyld.h:175) > > src/cpp/apppath.cpp:34:0: > warning: ‘NSIsSymbolNameDefined’ is deprecated (declared at /usr/include/mach-o/dyld.h:175) > > src/cpp/apppath.cpp:39:0: > warning: ‘NSAddressOfSymbol’ is deprecated (declared at /usr/include/mach-o/dyld.h:187) > > src/cpp/apppath.cpp:39:0: > warning: ‘NSLookupAndBindSymbol’ is deprecated (declared at /usr/include/mach-o/dyld.h:178) > > src/cpp/apppath.cpp:39:0: > warning: ‘NSLookupAndBindSymbol’ is deprecated (declared at /usr/include/mach-o/dyld.h:178) > > src/cpp/apppath.cpp:39:0: > warning: ‘NSAddressOfSymbol’ is deprecated (declared at /usr/include/mach-o/dyld.h:187) > src/cpp/dragimage.cpp: In function ‘wxGenericDragImage* wxDragImage_Create(wxBitmap*, int, int)’: > > src/cpp/dragimage.cpp:11:0: > error: no matching function for call to ‘wxGenericDragImage::wxGenericDragImage(wxBitmap&, wxCursor&, wxPoint)’ > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:268:0: > note: candidates are: wxGenericDragImage::wxGenericDragImage(const wxGenericDragImage&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:147:0: > note: wxGenericDragImage::wxGenericDragImage(const wxListCtrl&, long int) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:138:0: > note: wxGenericDragImage::wxGenericDragImage(const wxTreeCtrl&, wxTreeItemId&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:118:0: > note: wxGenericDragImage::wxGenericDragImage(const wxString&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:111:0: > note: wxGenericDragImage::wxGenericDragImage(const wxIcon&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:104:0: > note: wxGenericDragImage::wxGenericDragImage(const wxBitmap&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:98:0: > note: wxGenericDragImage::wxGenericDragImage(const wxCursor&) > src/cpp/dragimage.cpp: In function ‘wxGenericDragImage* wxDragIcon(wxIcon*, int, int)’: > > src/cpp/dragimage.cpp:16:0: > error: no matching function for call to ‘wxGenericDragImage::wxGenericDragImage(wxIcon&, wxCursor&, wxPoint)’ > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:268:0: > note: candidates are: wxGenericDragImage::wxGenericDragImage(const wxGenericDragImage&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:147:0: > note: wxGenericDragImage::wxGenericDragImage(const wxListCtrl&, long int) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:138:0: > note: wxGenericDragImage::wxGenericDragImage(const wxTreeCtrl&, wxTreeItemId&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:118:0: > note: wxGenericDragImage::wxGenericDragImage(const wxString&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:111:0: > note: wxGenericDragImage::wxGenericDragImage(const wxIcon&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:104:0: > note: wxGenericDragImage::wxGenericDragImage(const wxBitmap&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:98:0: > note: wxGenericDragImage::wxGenericDragImage(const wxCursor&) > src/cpp/dragimage.cpp: In function ‘wxGenericDragImage* wxDragString(wxString*, int, int)’: > > src/cpp/dragimage.cpp:21:0: > error: no matching function for call to ‘wxGenericDragImage::wxGenericDragImage(wxString&, wxCursor&, wxPoint)’ > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:268:0: > note: candidates are: wxGenericDragImage::wxGenericDragImage(const wxGenericDragImage&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:147:0: > note: wxGenericDragImage::wxGenericDragImage(const wxListCtrl&, long int) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:138:0: > note: wxGenericDragImage::wxGenericDragImage(const wxTreeCtrl&, wxTreeItemId&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:118:0: > note: wxGenericDragImage::wxGenericDragImage(const wxString&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:111:0: > note: wxGenericDragImage::wxGenericDragImage(const wxIcon&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:104:0: > note: wxGenericDragImage::wxGenericDragImage(const wxBitmap&, const wxCursor&) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:98:0: > note: wxGenericDragImage::wxGenericDragImage(const wxCursor&) - Alessandro On 3 nov. 2011, at 10:59, Eric Kow wrote: > Whoops, forgot to record. > Take this one too > > <rudimentary-replacement-for-wx_config_.dpatch><ATT00001.txt> |
|
From: Eric K. <eri...@gm...> - 2011-11-03 10:57:07
|
On 3 Nov 2011, at 06:53, Alessandro Vermeulen wrote: > I've applied your patches, and I though it build… however, it get's stuck further on, is there where you are stuck too? Yup. If I understand correctly, we're trying to use a constructor for wxDragImage that has been deprecated for a *long* time (was marked deprecated even in wxWidgets 2.4.x). I guess they finally removed it in 2.9. Now the question is if we can ditch the wxPoint argument, ignore it, find a use for it, and if we should change the Haskell API to go with this >> src/cpp/dragimage.cpp:11:0: >> error: no matching function for call to ‘wxGenericDragImage::wxGenericDragImage(wxBitmap&, wxCursor&, wxPoint)’ >> >> /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:268:0: >> note: candidates are: wxGenericDragImage::wxGenericDragImage(const wxGenericDragImage&) ... -- Eric Kow <http://erickow.com> |
|
From: Alessandro V. <a.v...@st...> - 2011-11-03 11:24:31
|
According to #wxwidgets it is safe to remove the parameter as it wasn't used anyway. > [12:05:56] <DavidGH> Spockz: The 'cursorHotspot' parameter isn't used so, Yes, it's safe for wxHaskell to drop it So I did this and I stumble on the following: > src/cpp/eljcombobox.cpp:171:0: > error: request for member ‘SetClientData’ is ambiguous > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/ctrlsub.h:296:0: > error: candidates are: void wxItemContainer::SetClientData(unsigned int, void*) > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/event.h:3233:0: > error: void wxEvtHandler::SetClientData(void*) > src/cpp/eljcombobox.cpp: In function ‘void* wxComboBox_GetClientData(wxComboBox*, int)’: > > src/cpp/eljcombobox.cpp:176:0: > error: request for member ‘GetClientData’ is ambiguous > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/ctrlsub.h:297:0: > error: candidates are: void* wxItemContainer::GetClientData(unsigned int) const > > /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/event.h:3234:0: > error: void* wxEvtHandler::GetClientData() const I'm not that familiar with wxHaskell to know what to pick here. Also how should I create a new patch of my changes? I've included the whole source file for now. - Alessandro On 3 nov. 2011, at 11:56, Eric Kow wrote: > On 3 Nov 2011, at 06:53, Alessandro Vermeulen wrote: > >> I've applied your patches, and I though it build… however, it get's stuck further on, is there where you are stuck too? > > Yup. If I understand correctly, we're trying to use a constructor for wxDragImage that has been deprecated for a *long* time (was marked deprecated even in wxWidgets 2.4.x). I guess they finally removed it in 2.9. Now the question is if we can ditch the wxPoint argument, ignore it, find a use for it, and if we should change the Haskell API to go with this > >>> src/cpp/dragimage.cpp:11:0: >>> error: no matching function for call to ‘wxGenericDragImage::wxGenericDragImage(wxBitmap&, wxCursor&, wxPoint)’ >>> >>> /usr/local/Cellar/wxmac2.9/2.9.2/include/wx-2.9/wx/generic/dragimgg.h:268:0: >>> note: candidates are: wxGenericDragImage::wxGenericDragImage(const wxGenericDragImage&) > > ... > > -- > Eric Kow <http://erickow.com> > |
|
From: Eric K. <eri...@gm...> - 2011-11-03 11:30:06
|
> Also how should I create a new patch of my changes? I've included the whole source file for now. First, have a look at http://wiki.darcs.net/Msmtp unless you've already got an MTA configured Then darcs record darcs send Thanks, -- Eric Kow <http://erickow.com> |
|
From: Alessandro V. <a.v...@st...> - 2011-11-03 19:10:19
Attachments:
wxDrag.dpatch
|
Currently I'm stuck at events. Some of them from Webkit others more general, to do with power. Attached is the patch up until now. |
|
From: Eric K. <eri...@gm...> - 2011-11-03 19:39:13
|
Try this On 3 Nov 2011, at 15:09, Alessandro Vermeulen wrote: > Currently I'm stuck at events. Some of them from Webkit others more general, to do with power. > > Attached is the patch up until now. |