Hi Paulo,

On 21 October 2011 14:22, Paulo Pocinho <poci...@gmail.com> wrote:

> I have spent the last three days figuring how to build wxWidgets.
> After much frustration with GCC, digging information from patches and
> several websites, I can now build the 9,87 MB wxmsw28u_gcc.dll version
> 2.8.12 that works. Yet, I have a new barrier and have to ask for your
> help.
>
> STC was built from contrib. Then I took directions from this thread
>
> http://sourceforge.net/mailarchive/forum.php?thread_name=CDCEC7C4-4463-46FF-BA06-17CC842A05BD%40dc.uba.ar&forum_name=wxhaskell-devel
>
> Did everything like this
>
> http://haskell.org/haskellwiki/WxHaskell/Building_with_styledTextCtrl_support
>

At the moment, STC support is disabled as it is difficult to get contrib
components to build (or not) reliably under the Cabal build system we have.

The error you have is because Cabal is not linking the library containing
STC.

The quickest way to get this to work (it is a bit of a dirty hack) is to
edit wxcore/Setup.hs. In myConfHooks you will find extra_wx_libs. If you add
the name of your stc library correctly in there (and assuming that the
compiler can find the path to it), I believe it should build, compile and
link for you.

The clean way to do this is to come up with a proper solution for
integrating contrib components in wxHaskell, which is mainly held up by the
lack of a working wx-config for Windows which behaves identically to
wx-config for Unix platforms. There has been some good work (not by me, I
hasten to add!) in this direction, but we need to get it properly integrated
and tested on all platforms

Regards
Jeremy
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to