Discussion:
[wxhaskell-devel] OSX Build Failure
James Laver
2013-09-17 20:34:28 UTC
Permalink
Hi,

I'm running OSX Mountain Lion and having followed the instructions on the HaskellWiki page, I was left with my build erroring out as follows:

Configuring wxc-0.90.0.4...
Configuring wxc to build against wxWidgets 2.9.4.0

setup: Missing dependency on a foreign library:
* Missing C library: wx_osx_cocoau_all-2.9
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
Failed to install wxc-0.90.0.4
cabal: Error: some packages failed to install:
wx-0.90.0.1 depends on wxc-0.90.0.4 which failed to install.
wxc-0.90.0.4 failed during the configure step. The exception was:
ExitFailure 1

Having ensured I passed the --extra-{include,lib}-dirs flags so it picked up my homebrew'd wxmac, I investigated.

Jamess-MacBook-Air% ls -la
total 59392
drwxr-xr-x 11 jjl admin 374 17 Sep 20:47 .
drwxr-xr-x 7 jjl admin 238 17 Sep 20:34 ..
-r--r--r-- 1 jjl admin 30172160 17 Sep 20:34 libwx_osx_cocoau-2.9.4.0.0.dylib
lrwxr-xr-x 1 jjl admin 32 17 Sep 20:31 libwx_osx_cocoau-2.9.4.dylib -> libwx_osx_cocoau-2.9.4.0.0.dylib
lrwxr-xr-x 1 jjl admin 28 17 Sep 20:31 libwx_osx_cocoau-2.9.dylib -> libwx_osx_cocoau-2.9.4.dylib
-r--r--r-- 1 jjl admin 212692 17 Sep 20:34 libwx_osx_cocoau_gl-2.9.4.0.0.dylib
lrwxr-xr-x 1 jjl admin 35 17 Sep 20:31 libwx_osx_cocoau_gl-2.9.4.dylib -> libwx_osx_cocoau_gl-2.9.4.0.0.dylib
lrwxr-xr-x 1 jjl admin 31 17 Sep 20:31 libwx_osx_cocoau_gl-2.9.dylib -> libwx_osx_cocoau_gl-2.9.4.dylib
drwxr-xr-x 3 jjl admin 102 17 Sep 20:31 python2.7
drwxr-xr-x 4 jjl admin 136 17 Sep 20:31 wx

Adding a symbolic link from libwx_osx_cocoau_all-2.9.dylib to libwx_osx_cocoau-2.9.dylib did the trick. This allowed wxc to be built.

wxcore fails heroically with rather a lot of output (attached)

James
Henk-Jan van Tuyl
2013-09-17 21:56:47 UTC
Permalink
Post by James Laver
wxcore fails heroically with rather a lot of output (attached)
The wxHaskell packages on Hackage are not adapted to the latest version of
GHC yet; you can install the GitHub version with
git clone https://github.com/wxHaskell/wxHaskell
or download the zip file from the web page with the same address.

Then install the packages from disk in the following order:
wxdirect wxc wxcore wx

Regards,
Henk-Jan van Tuyl
--
***@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
Eric Kow
2013-09-18 19:27:23 UTC
Permalink
I'll also add that I've just recently released a new version of
cabal-macosx this afternoon (which builds app bundles for your OS X
GUI apps)

The Git wxHaskell does build with haskell-platform 2013.2.0.0 on Mac
OS X (Lion though)…
Post by Henk-Jan van Tuyl
Post by James Laver
wxcore fails heroically with rather a lot of output (attached)
The wxHaskell packages on Hackage are not adapted to the latest version of
GHC yet; you can install the GitHub version with
git clone https://github.com/wxHaskell/wxHaskell
or download the zip file from the web page with the same address.
wxdirect wxc wxcore wx
Regards,
Henk-Jan van Tuyl
--
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
wxhaskell-devel mailing list
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel
--
Eric Kow <http://erickow.com>
James Laver
2013-09-18 23:26:52 UTC
Permalink
Post by Eric Kow
I'll also add that I've just recently released a new version of
cabal-macosx this afternoon (which builds app bundles for your OS X
GUI apps)
The Git wxHaskell does build with haskell-platform 2013.2.0.0 on Mac
OS X (Lion though)…
Hi Eric,

I'll install the new cabal-macosx.

I can also confirm that the github wxHaskell compiled fine for me on Mountain Lion with the latest wxmac from from homebrew.

Thanks to you and Henk-Jan for your help.

James

Loading...