James Laver
2013-09-17 20:34:28 UTC
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
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