From: <cod...@go...> - 2009-06-06 21:00:27
|
Comment #5 on issue 14 by kre...@snoize.com: HoC does not build http://code.google.com/p/hoc/issues/detail?id=14 Here's everything I needed to build HOC and (most of) the examples. ghc 6.10.1, OS X 10.5.7. cabal install parsec-3.0.0 cabal install fgl svn checkout http://hoc.googlecode.com/svn/trunk/ hoc-read-only cd hoc-read-only/hoc sed -i.orig -e "/c-sources/d" HOC.cabal sed -i.orig -e "s/Flag base/Flag base4/" InterfaceGenerator2/Output.hs cabal configure cabal build -v2 | grep '\(ar\|ld\) ' | grep -v 'build ' | sed 's,$, dist/build/HOC_cbits.o,;s,\.o\.tmp,.o,' | sh cabal copy cabal register cd Bindings sh ./make-bindings-macos.sh --user cd ../Tools cabal configure cabal build cabal copy cd .. # To get the samples to work: ./autogen.sh ./configure cd Samples/UniqSort sed -i.orig -e "s/import Foundation$/import Foundation hiding \(main\)/" UniqSort.hs make # To run: ./uniqsort foo bar blatz cd ../Editor sed -i.orig -e $'6a\\\nimport Foundation' HaskellDocument.hs sed -i.orig -e "s/hocwrap/hoc-wrap/" Makefile make # To run: open ./Editor.app cd ../ExpressionParser sed -i.orig -e "s/hocwrap/hoc-wrap/" Makefile make # To run: open ./ExpressionParser.app cd ../Browser sed -i.orig -e "s/hocwrap/hoc-wrap/" Makefile make # Results in error. Don't know how to fix this. # TVUtilities.hs:64:2: # Couldn't match expected type `NewlyAllocated # (SimpleTVDataSource ())' # against inferred type `ID (NSObject_ (SimpleTVDataSource_ ()))' # Expected type: NewlyAllocated (SimpleTVDataSource ()) # Inferred type: SimpleTVDataSource () # make: *** [Browser] Error 1 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings |