[wxhaskell-users] installation problem on Win 8.1, WXCFG

2015-03-28 Thread Andrew Butterfield
All,
  I've been following the installation instructions  in section 1 of 
https://wiki.haskell.org/WxHaskell/Windows

wxWidgets 3.0 and wxhaskell =0.92

All goes well until I try to install wxc

-- log extract start -
...
Installed wxdirect-0.92.0.0

C:\ghc\wxHaskellcabal install .\wxc
Resolving dependencies...
Configuring wxc-0.92.0.0...
Failed to install wxc-0.92.0.0
Last 10 lines of the build log ( 
C:\Users\butrfeld\AppData\Roaming\cabal\logs\wx
c-0.92.0.0.log ):
[1 of 1] Compiling Main ( wxc\Setup.hs, wxc\dist\setup\Main.o )
Linking .\wxc\dist\setup\setup.exe ...
Could not find a dynamic library to check bitness, continuing installation
Configuring wxc-0.92.0.0...

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll\mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll\mswud)
to specify which configuration exactly you want to use.
readProcess failed: readProcess: wx-config --version (exit 1): failed
setup.exe: failed
cabal: Error: some packages failed to install:
wxc-0.92.0.0 failed during the configure step. The exception was:
ExitFailure 1
- log extract pause -

This is strange, so I check, and to be sure, I set WXCFG
- log  extract resume ---
C:\ghc\wxHaskellecho %WXCFG%
gcc_dll\mswu

C:\ghc\wxHaskellSet WXCFG=gcc_dll\mswu
-- log extract pause --

Seems alright - let's try again...
- log extract resume ---
C:\ghc\wxHaskellcabal install .\wxc
Resolving dependencies...
Configuring wxc-0.92.0.0...
Failed to install wxc-0.92.0.0
Last 10 lines of the build log ( 
C:\Users\butrfeld\AppData\Roaming\cabal\logs\wx
c-0.92.0.0.log ):
Could not find a dynamic library to check bitness, continuing installation
Configuring wxc-0.92.0.0...

Please use the --wxcfg flag (as in wx-config --wxcfg=gcc_dll\mswud)
or set the environment variable WXCFG (as in WXCFG=gcc_dll\mswud)
to specify which configuration exactly you want to use.
readProcess failed: readProcess: wx-config --version (exit 1): failed
setup.exe: failed
cabal: Error: some packages failed to install:
wxc-0.92.0.0 failed during the configure step. The exception was:
ExitFailure 1
-- log extract pause --

How do I fix this? What is going on?

Installed 32-bit Haskell Platform on 64-bit Win 8.1
(I did that because the instructions talk about mingw32-make)

Regards, and thanks,
   Andrew


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


Re: [wxhaskell-users] Using wxHaskell on Mac OS x

2012-04-24 Thread Andrew Butterfield

On 23 Apr 2012, at 23:47, Eric Kow wrote:

 I'm a bit confused by this. Isn't /opt/local used by Macports rather than 
 Homebrew?
 also, does non-ghci stuff work?

Apologies - it was MacPorts  - I was getting hopelessly confused at this stage 
..

If I try to compile HelloWorld.hs I get the error below

It seems clear that I need to identify and inform the build process about my 
architecture

However there are no clear instructions on the wiki on how to do this

(PS - I am having equal  difficulties build wxH 0.9 on wxW 2.9.3  on 64bit 
windows - but that's for another email)


$ ghc --make -package wx HelloWorld.hs 
[2 of 2] Compiling Main ( HelloWorld.hs, HelloWorld.o )
Linking HelloWorld ...
ld: warning: in /opt/local/lib/libwx_osx_cocoau_xrc-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_webview-2.9.dylib, file was 
built for unsupported file format which is not the architecture being linked 
(i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_stc-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_richtext-2.9.dylib, file was 
built for unsupported file format which is not the architecture being linked 
(i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_ribbon-2.9.dylib, file was 
built for unsupported file format which is not the architecture being linked 
(i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_propgrid-2.9.dylib, file was 
built for unsupported file format which is not the architecture being linked 
(i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_aui-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_gl-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_html-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_qa-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_adv-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_osx_cocoau_core-2.9.dylib, file was built 
for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_baseu_xml-2.9.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_baseu_net-2.9.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libwx_baseu-2.9.dylib, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libiconv.dylib, file was built for unsupported 
file format which is not the architecture being linked (i386)
Undefined symbols:
  _iconv_open, referenced from:
  _hs_iconv_open in libHSbase-4.3.1.0.a(iconv.o)
 (maybe you meant: _hs_iconv_open)
  _locale_charset, referenced from:
  _localeEncoding in libHSbase-4.3.1.0.a(PrelIOUtils.o)
  _iconv, referenced from:
  _hs_iconv in libHSbase-4.3.1.0.a(iconv.o)
 (maybe you meant: _hs_iconv_open, _hs_iconv , _hs_iconv_close )
  _iconv_close, referenced from:
  _hs_iconv_close in libHSbase-4.3.1.0.a(iconv.o)
 (maybe you meant: _hs_iconv_close)
ld: symbol(s) not found
collect2: ld returned 1 exit status

[~/Documents/wxOnMacOSX]
$ 


 
 On Monday, 23 April 2012, Andrew Butterfield wrote:
 I've done yet another attempt at installing wxHaskell on Mac OS X (Intel, 
 Snow Leopard)
 following the page at 
 
  http://www.haskell.org/haskellwiki/WxHaskell/MacOS_X
 
 I setup ghc 7.0.4
 I did brew install wxmac --devel
 
 I am then asked to check my path to make sure I am using  my wxWidgets and 
 not the default one
 
 (I had deleted an old reference to wx 2.8 - now my path does not mention 
 wxwidgets at all)
 
 wx2.9.3 was installed by homebrew in /opt/local/ but I had no idea what 
 to put in my path
 (A question to stackoverflow got a completely useless answer)
 
 So I decided to soldier on...
   I did   cabal install wx cabal-macosx   --- waited - all installed just 
 fine - it seemed
 to have picked up all the stuff installed by brew.
 
 I then got the EnableGUI module as described lower down the page
 it compiled fine
 I then edited HelloWord.hs to import it
 ,and then started ghci as recommended
 
 
 -- 
 Eric Kow http://erickow.com
 PGP Key ID: 08AC04F9
 --
 For Developers, A Lot Can Happen In A Second

Re: [wxhaskell-users] DLLs for binary using wxHaskell in Windows

2011-07-28 Thread Andrew Butterfield

On 22 Jul 2011, at 19:09, Dave Tapley wrote:

 Hi all,
 
 For a wxHaskell based application distributed on Windows, can I distribute 
 the necessary WX DLLs right alongside the application, without having to do a 
 separate install of WX? 
 I want to be able to distribute the application as a zip file and not require 
 the user to have anything installed. Is that possible?

It works fine - its what I do at

http://www.scss.tcd.ie/Andrew.Butterfield/Saoithin/

I just include the relevant wxc-msw-lots-of-numbers.dll

Note on windows 7 you can get an error about a missing dll (comctl32.dll) , 
but the program manages to run OK once you dismiss the  error box...


 

Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204
Lero@TCD, Head of Foundations  Methods Research Group
Director of Teaching and Learning - Undergraduate,
School of Computer Science and Statistics,
Room F.13, O'Reilly Institute, Trinity College, University of Dublin
  http://www.scss.tcd.ie/Andrew.Butterfield/


--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP

2008-03-28 Thread Andrew Butterfield
Andrew Butterfield wrote:

 I installed the same on Windows XP - this all works fine !

 (XP Professional 2002 SP 2)

 My big complicated program (developed under GHC6.4/wx0.9) also
 worked without problems.
   
I should have checked out a bit more - what has happened is that all my 
scollbars have disappeared !
Any idea why this might have happened ?
   


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


Re: [wxhaskell-users] wxHaskell 0.10.3: problems in Windows XP

2008-03-27 Thread Andrew Butterfield
Eric Kow wrote:
 Hi,

 On 26/03/2008, Miguel Vilaça [EMAIL PROTECTED] wrote:
   
  I installed GHC 6.8.2 and wxHaskell 0.10.3 (final release, not RC X)
  in a Windows XP, and everything installed ok.

  Tested the samples: ghc -package wx Helloword.hs -o Helloword.exe

  But when I run Helloword.exe, only an error message appears with:

  The applicattion failed to initialize properly (0xc0150002). Click OK
  to terminate the application.
 

   
I installed the same on Windows XP - this all works fine !

(XP Professional 2002 SP 2)

My big complicated program (developed under GHC6.4/wx0.9) also
worked without problems.

But I have seen that error message popping up recently, from other 
applications (Mozilla?)


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


Re: [wxhaskell-users] Controlling keyboard events

2007-11-08 Thread Andrew Butterfield
shelarcy wrote:
 Hi Andrew,

 On Wed, 07 Nov 2007 21:39:44 +0900, Andrew Butterfield [EMAIL PROTECTED] 
 wrote:
   
 However when I hit an arrow key, the expression navigation works fine,
 but the scrolled window also moves !

 How do I stop these key events getting to the scrollbars ?

 (I only want to scroll using the mouse.)

 The wxWidgets documents talk about preventing event propagation
 using wxEvent::Skip, but I can't find a wxHaskell equivalent of this.
 

 wxHaskell has propagateEvent function that is wrapper function of 
 wxEvent::Skip.
 How about use it?

 http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Events.html#v%3ApropagateEvent
   
because it says:

*propagateEvent* :: IO ()
Pass the event on the next /wxWindows/ event handler, either on this 
window or its parent. Always call this method when you do not process 
the event. (This function just call skipCurrentEvent 
http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.Events.html#v%3AskipCurrentEvent).
 



I want to do the opposite - handle the event in the frame where the 
expression is displayed,
but not send it to whatever is handling the scroll bars

My code - for the relevant windows

-- Goal Window
gp - panel h []
g - scrolledWindow gp []

Do I need to nest another window inside the scrolled window ?
When I perform the right-arrow action (say), I repaint g,
which renders the expression appropriately.

My biggest problem is that the documentation is very unclear.

-- 

Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204
Foundations and Methods Research Group Director.
Course Director, B.A. (Mod.) in CS and ICT degrees, Year 4.
Department of Computer Science, Room F.13, O'Reilly Institute,
Trinity College, University of Dublin, Ireland.
http://www.cs.tcd.ie/Andrew.Butterfield/



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users


[wxhaskell-users] Controlling keyboard events

2007-11-07 Thread Andrew Butterfield
I have an application where I want to use the up/down/left/right
arrow keys to navigate around an expression displayed on-screen.

I also want the window to have scrollbars.

However when I hit an arrow key, the expression navigation works fine,
but the scrolled window also moves !

How do I stop these key events getting to the scrollbars ?

(I only want to scroll using the mouse.)

The wxWidgets documents talk about preventing event propagation
using wxEvent::Skip, but I can't find a wxHaskell equivalent of this.

-- 

Andrew Butterfield Tel: +353-1-896-2517 Fax: +353-1-677-2204
Foundations and Methods Research Group Director.
Course Director, B.A. (Mod.) in CS and ICT degrees, Year 4.
Department of Computer Science, Room F.13, O'Reilly Institute,
Trinity College, University of Dublin, Ireland.
http://www.cs.tcd.ie/Andrew.Butterfield/



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users