From: <m.g...@gm...> - 2008-01-06 18:32:43
|
On Jan 6, 2008, at 1:39 AM, Wolfgang Thaller wrote: > > On 4-Jan-08, at 5:54 PM, m.g...@gm... wrote: > >> Hi I've tried to compile the last version of HOC (from googlecode) >> under leopard without much success. the inteface generator fail to >> parse the header files and I haven't managed to use the code in >> directory InterfaceGenerator2 to produce alternative haskell source >> for the Foundation and the AppKit framework. >> >> Any suggestion? > > Work in progress. The build process is in flux at the moment. > Currently, I use InterfaceGenerator2, which currently uses the > headers from /Developer/SDKs/MacOSX10.4u.sdk to avoid some new > complications. > > The current method (as of today) is: > > runhaskell Setup.hs configure > runhaskell Setup.hs build > sudo runhaskell Setup.hs install > cd Bindings > sudo bash make-bindings-macos.sh > > The makefiles in Samples/ are probably outdated, so you might have > to tweak them (I hope I'll get to that soon). > > Cheers, > > Wolfgang > Thanks when I pulled the sources the cabal file and the building scripts were not there. However the build command fails in the compilation of the C bits due to missing header ffi.h. I hacked the Setup.hs file to explicitly mention -I/usr/include/ffi when calling the C compiler and it worked fine. hocwrap still do not work but I think I will wait until everything settle down. nice work. what are the current plans for this project? Best, Massimiliano |