Haskell School of Expression?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Haskell School of Expression?

Creighton Hogg
Hi,
Has anyone recently tried to install the graphics libraries
included on
http://haskell.org/soe/software.htm ?
I've tried to make the libraries, but I get these errors.

make: Entering directory
`/home/wchogg/coding/haskell/GraphicsLib/lib/x11'
ffihugs +G +L"X_stub_ffi.c" X.hs
Warning: unknown toggle `G'; ignoring.
Warning: unknown toggle `L'; ignoring.
runhugs: Unable to initialise Hugs (Unrecognised option

)

I honestly can't figure out what the incompatibility is?
I'm using version 20050308 of Hugs
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Haskell School of Expression?

paul-68
It is caused by the incompatiblity change of ffihugs
in Hugs 20050308 version.

To solve it, change a few lines in GraphicsLib/lib/x11/Makefile

78c78
<       ffihugs +G +L"$*_stub_ffi.c" $*.hs
---
>       ffihugs '-i"$*_stub_ffi.c"' $*.hs                                      
129,130c129,130
<       ffihugs +G +L"Xlib_stub_ffi.c" \
<       +L"cbits/auxiliaries.c" +L"-L$(X_dir)/lib" +L"-lX11" Xlib.hs
---
>       ffihugs '-i"Xlib_stub_ffi.c"' \                                        
>       '-i"cbits/auxiliaries.c"' Xlib.hs -L$(X_dir)/lib -lX11                  

Then, it all works out fine.

Regards,
Paul Liu

On Fri, Dec 16, 2005 at 12:28:14AM -0600, Creighton Hogg wrote:

> Hi,
> Has anyone recently tried to install the graphics libraries
> included on
> http://haskell.org/soe/software.htm ?
> I've tried to make the libraries, but I get these errors.
>
> make: Entering directory
> `/home/wchogg/coding/haskell/GraphicsLib/lib/x11'
> ffihugs +G +L"X_stub_ffi.c" X.hs
> Warning: unknown toggle `G'; ignoring.
> Warning: unknown toggle `L'; ignoring.
> runhugs: Unable to initialise Hugs (Unrecognised option
>
> )
>
> I honestly can't figure out what the incompatibility is?
> I'm using version 20050308 of Hugs
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe