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.vermeu...@students.uu.nl> 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.vermeu...@students.uu.nl> 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
>>
>> wxhaskell-devel@lists.sourceforge.net
>>
>> https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel
>>
>>
>>
>>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel