Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Parallel builds with Cabal (Jo?o Paulo Pizani Flor)
2. Anyone have problems with cabal and SDL? (Tom Murphy)
3. Re: Anyone have problems with cabal and SDL? (Stephen Tetley)
4. GTK Haskell and Error on Win32, anyone see the issue?
(Berlin Brown)
5. Re: GTK Haskell and Error on Win32, anyone see the issue?
(aditya siram)
----------------------------------------------------------------------
Message: 1
Date: Mon, 21 Feb 2011 10:23:18 -0300
From: Jo?o Paulo Pizani Flor <[email protected]>
Subject: [Haskell-beginners] Parallel builds with Cabal
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"
Does anybody know if this is even possible?
I want to do with cabal something similar to what "make -j N" does. Uses N
threads to do a parallel build. From what I've read unitl know it seems
Cabal doesn't (still) support this feature...
Can I do this? "cabal install gtk2hs -j 4"?? It would be SO awesome :)
Jo?o Paulo Pizani Flor
[email protected]
Computer Science B.Sc
Federal University of Santa Catarina - Brazil
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110221/81633df0/attachment-0001.htm>
------------------------------
Message: 2
Date: Mon, 21 Feb 2011 11:14:14 -0500
From: Tom Murphy <[email protected]>
Subject: [Haskell-beginners] Anyone have problems with cabal and SDL?
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
When I use Cabal to get any program which depends on the SDL library, this
is the error I get.
"
checking for sdl-config... no
checking for sdl11-config... no
configure: error: *** SDL not found! Get SDL from www.libsdl.org.
If you already installed it, check it's in the path. If problem remains,
please send a mail to the address that appears in ./configure --version
indicating your platform, the version of configure script and the problem.
cabal: Error: some packages failed to install:
Raincat-1.1.1.2 depends on SDL-0.6.2 which failed to install.
SDL-0.6.2 failed during the configure step. The exception was:
exit: ExitFailure 1
SDL-image-0.6.1 depends on SDL-0.6.2 which failed to install.
SDL-mixer-0.6.1 depends on SDL-0.6.2 which failed to install.
"
I have SDL 1.2.14 (correctly) installed on my system.
I'd really appreciate any help with this.
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110221/330aa59b/attachment-0001.htm>
------------------------------
Message: 3
Date: Mon, 21 Feb 2011 19:23:14 +0000
From: Stephen Tetley <[email protected]>
Subject: Re: [Haskell-beginners] Anyone have problems with cabal and
SDL?
Cc: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Hi Tom
What OS are you using?
Could you try to install SDL-0.6.2 (i.e. the Haskell binding) with the
verbose output from Cabal, probably -v for the command line switch.
------------------------------
Message: 4
Date: Tue, 22 Feb 2011 00:01:14 -0500
From: Berlin Brown <[email protected]>
Subject: [Haskell-beginners] GTK Haskell and Error on Win32, anyone
see the issue?
To: [email protected], Berlin Brown <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
I am following the steps outlined here but I am still getting errors related
to my install of gtk
Here is one of the first errors:
tup\setup.exe ...
Configuring cairo-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
http://www.haskell.org/haskellwiki/Gtk2Hs
Here is the output:
C:\Documents and Settings\Bot User>echo %LIB%
C:\Program Files\Gtk+\lib
C:\Documents and Settings\Bot User>echo %PKG_CONFIG_PATH%
C:\Program Files\Gtk+\lib\pkgconfig;C:\
Program Files\Gtk+\include\libglade-2.0;C:\Program
Files\libxml2\libxml2-dev_2.7.7-1_win32\lib\pkgconfig
I got the install of GTK and everything worked:
http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe
Microsoft Windows XP [Version 5.1.2600]
C:\Documents and Settings\Bot User>cabal update
Downloading the latest package list from hackage.haskell.org
Version:
C:\Documents and Settings\Bot User>ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.3
C:\Documents and Settings\Bot User>cabal install gtk2hs-buildtools
Resolving dependencies...
Configuring gtk2hs-buildtools-0.12.0...
Preprocessing executables for gtk2hs-buildtools-0.12.0...
...
hs\gtk2hsC2hs-tmp\GenBind.o )
[41 of 41] Compiling Main ( c2hs\toplevel\Main.hs,
dist\build\gtk2hs
C2hs\gtk2hsC2hs-tmp\Main.o )
Linking dist\build\gtk2hsC2hs\gtk2hsC2hs.exe ...
Installing executable(s) in C:\Documents and Settings\Bot User\Application
Data\cabal\bin
Here is where it fails:
C:\Documents and Settings\Bot User>cabal install gtk
Resolving dependencies...
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\Gtk2HsSetup.hs:
25: warning: #warning Setup.hs is guessing the version of Cabal. If
compilation
of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when
build
ing (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup (
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0
.12.03164\cairo-0.12.0\Gtk2HsSetup.hs,
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-
0.12.03164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main (
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0
.12.03164\cairo-0.12.0\Setup.hs,
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.0
3164\cairo-0.12.0\dist\setup\Main.o )
Linking
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\dist\se
tup\setup.exe ...
Configuring cairo-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\Gtk2HsSetup.hs:25
: warning: #warning Setup.hs is guessing the version of Cabal. If
compilation of
Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when
buildin
g (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup (
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.
12.03164\glib-0.12.0\Gtk2HsSetup.hs,
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.1
2.03164\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main (
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.
12.03164\glib-0.12.0\Setup.hs,
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.0316
4\glib-0.12.0\dist\setup\Main.o )
Linking
C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\dist\setu
p\setup.exe ...
Configuring glib-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: gobject-2.0, glib-2.0, intl
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gio-0.12.0 depends on glib-0.12.0 which failed to install.
glib-0.12.0 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.12.0 depends on glib-0.12.0 which failed to install.
pango-0.12.0 depends on glib-0.12.0 which failed to install.
C:\Documents and Settings\Bot User>
--
Berlin Brown (berlin dot brown at gmail.com)
http://botnode.com
http://berlinbrowndev.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20110222/fbe623f1/attachment-0001.htm>
------------------------------
Message: 5
Date: Mon, 21 Feb 2011 23:22:54 -0600
From: aditya siram <[email protected]>
Subject: Re: [Haskell-beginners] GTK Haskell and Error on Win32,
anyone see the issue?
To: Berlin Brown <[email protected]>
Cc: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
What does 'echo %INCLUDE%' and 'echo %PATH%' output? You might want to
try installing the dependencies separately to see where its going
wrong. For instance 'cabal install glib' and 'cabal install cairo'
etc. Let me know if I can help you further.
-deech
On Mon, Feb 21, 2011 at 11:01 PM, Berlin Brown <[email protected]> wrote:
> I am following the steps outlined here but I am still getting errors related
> to my install of gtk
>
> Here is one of the first errors:
>
> tup\setup.exe ...
> Configuring cairo-0.12.0...
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: z, cairo
> This problem can usually be solved by installing the system packages that
> provide these libraries (you may need the "-dev" versions). If the libraries
> are already installed but in a non-standard location then you can use the
> flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
>
> http://www.haskell.org/haskellwiki/Gtk2Hs
>
>
> Here is the output:
> C:\Documents and Settings\Bot User>echo %LIB%
> C:\Program Files\Gtk+\lib
>
> C:\Documents and Settings\Bot User>echo %PKG_CONFIG_PATH%
> C:\Program Files\Gtk+\lib\pkgconfig;C:\
> Program Files\Gtk+\include\libglade-2.0;C:\Program
> Files\libxml2\libxml2-dev_2.7.7-1_win32\lib\pkgconfig
>
> I got the install of GTK and everything worked:
> http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe
>
>
> Microsoft Windows XP [Version 5.1.2600]
>
> C:\Documents and Settings\Bot User>cabal update
> Downloading the latest package list from hackage.haskell.org
>
> Version:
> C:\Documents and Settings\Bot User>ghc --version
> The Glorious Glasgow Haskell Compilation System, version 6.12.3
>
>
> C:\Documents and Settings\Bot User>cabal install gtk2hs-buildtools
> Resolving dependencies...
> Configuring gtk2hs-buildtools-0.12.0...
> Preprocessing executables for gtk2hs-buildtools-0.12.0...
> ...
> hs\gtk2hsC2hs-tmp\GenBind.o )
> [41 of 41] Compiling Main???????????? ( c2hs\toplevel\Main.hs,
> dist\build\gtk2hs
> C2hs\gtk2hsC2hs-tmp\Main.o )
> Linking dist\build\gtk2hsC2hs\gtk2hsC2hs.exe ...
> Installing executable(s) in C:\Documents and Settings\Bot User\Application
> Data\cabal\bin
>
> Here is where it fails:
>
> C:\Documents and Settings\Bot User>cabal install gtk
> Resolving dependencies...
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\Gtk2HsSetup.hs:
> 25: warning: #warning Setup.hs is guessing the version of Cabal. If
> compilation
> of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when
> build
> ing (prefixed by --ghc-option= when using the 'cabal' command)
> [1 of 2] Compiling Gtk2HsSetup????? (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0
> .12.03164\cairo-0.12.0\Gtk2HsSetup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-
> 0.12.03164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
> [2 of 2] Compiling Main???????????? (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0
> .12.03164\cairo-0.12.0\Setup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.0
> 3164\cairo-0.12.0\dist\setup\Main.o )
> Linking
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\dist\se
> tup\setup.exe ...
> Configuring cairo-0.12.0...
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: z, cairo
> This problem can usually be solved by installing the system packages that
> provide these libraries (you may need the "-dev" versions). If the libraries
> are already installed but in a non-standard location then you can use the
> flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\Gtk2HsSetup.hs:25
> : warning: #warning Setup.hs is guessing the version of Cabal. If
> compilation of
> ?Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when
> buildin
> g (prefixed by --ghc-option= when using the 'cabal' command)
> [1 of 2] Compiling Gtk2HsSetup????? (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.
> 12.03164\glib-0.12.0\Gtk2HsSetup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.1
> 2.03164\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
> [2 of 2] Compiling Main???????????? (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.
> 12.03164\glib-0.12.0\Setup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.0316
> 4\glib-0.12.0\dist\setup\Main.o )
> Linking
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\dist\setu
> p\setup.exe ...
> Configuring glib-0.12.0...
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: gobject-2.0, glib-2.0, intl
> This problem can usually be solved by installing the system packages that
> provide these libraries (you may need the "-dev" versions). If the libraries
> are already installed but in a non-standard location then you can use the
> flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
> cabal: Error: some packages failed to install:
> cairo-0.12.0 failed during the configure step. The exception was:
> ExitFailure 1
> gio-0.12.0 depends on glib-0.12.0 which failed to install.
> glib-0.12.0 failed during the configure step. The exception was:
> ExitFailure 1
> gtk-0.12.0 depends on glib-0.12.0 which failed to install.
> pango-0.12.0 depends on glib-0.12.0 which failed to install.
>
> C:\Documents and Settings\Bot User>
>
> --
> Berlin Brown (berlin dot brown at gmail.com)
> http://botnode.com
> http://berlinbrowndev.blogspot.com/
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 32, Issue 38
*****************************************