<div>
Roman, thanks.
</div><div><br></div><div>I've managed to install wxHaskell. Someone has already patched it like just you said: https://github.com/wxHaskell/wxHaskell</div><div><br></div><div>The sample programs compile and work fine now.</div><div><br></div><div>The only problem now is that I want to distribute a wxHaskell application on mac OS X. I tried using macosx-app and cabal-macosx (https://github.com/michaelt/cabal-macosx) to make an "app" file. It runs fine on my machine, but it fails to run on another computer. I get the following error:</div><div><br></div><div><code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; line-height: 18px; text-align: left; ">Dyld Error Message: Library not loaded: /Users/eduardo/.cabal/lib/wxc-0.90.1.0/ghc-7.6.3/libwxc.dylib</code><span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; text-align: left; ">.</span></div>
<div><div><br></div><div>What would be the best way to redistribute wxHaskell apps?</div><div>-- </div><div>Eduardo Sato</div><div><br></div></div>
<p style="color: #A0A0A8;">On Thursday, August 8, 2013 at 10:20 AM, Roman Cheplyaka wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>* Eduardo Sato <<a href="mailto:eduardo.sato@gmail.com">eduardo.sato@gmail.com</a>> [2013-08-07 14:46:02-0300]</div><blockquote type="cite"><div><div>Hello, guys. Has anybody tried to install wxhaskell on Snow Leopard?</div><div><br></div><div>I followed these instructions: <a href="http://www.haskell.org/haskellwiki/WxHaskell/Mac">http://www.haskell.org/haskellwiki/WxHaskell/Mac</a> , but got an error: </div><div><br></div><div>src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs:13085:1:</div><div> Unacceptable argument type in foreign declaration: CInt</div><div> When checking declaration:</div><div> foreign import ccall safe "static wxLogWindow_Create" wxLogWindow_Create</div><div> :: Ptr (TWindow a)</div><div> -> CWString -> CBool -> CBool -> IO (Ptr (TLogWindow ()))</div><div><br></div><div>src/haskell/Graphics/UI/WXCore/WxcClassesAL.hs:13085:1:</div><div> Unacceptable argument type in foreign declaration: CInt</div><div> When checking declaration:</div><div> foreign import ccall safe "static wxLogWindow_Create" wxLogWindow_Create</div><div> :: Ptr (TWindow a)</div><div> -> CWString -> CBool -> CBool -> IO (Ptr (TLogWindow ()))</div><div>Failed to install wxcore-0.90.0.3</div><div>cabal: Error: some packages failed to install:</div><div>wx-0.90.0.1 depends on wxcore-0.90.0.3 which failed to install.</div><div>wxcore-0.90.0.3 failed during the building phase. The exception was:</div><div>ExitFailure 1</div><div><br></div><div><a href="http://lpaste.net/91634">http://lpaste.net/91634</a></div><div><br></div><div>I'm using ghc 7.6.3. I've heard the above problems are related to GHC</div><div>7.6.3 being more pedantic about FFI declarations. Is there any way</div><div>around it?</div></div></blockquote><div><br></div><div>Indeed, and it has nothing to do with Snow Leopard. You should ensure</div><div>that the CInt data constructor is imported. Either patch it yourself, or</div><div>have the package maintainer to fix it.</div><div><br></div><div>Roman</div></div></div></span>
</blockquote>
<div>
<br>
</div>