Re: [Haskell-beginners] wxHaskell install errors

No, I am not sure of this - I followed the instructions at: http://www.haskell.org/haskellwiki/WxHaskell/Windows#wxWidgets_2.9_and_wxHas... The describe the "install" as the wxWidgets install of source code, and then how to compile it, and then just to do cabal installs, which is what is failing. The cabal install error describes some configuration options, but I don't know where or how they are intended to be used. 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. I see in my cabal directory that it has files : Wx-0.12.1.6, Wxcore-0.12.1.7 Wxdirect-0.12.1.4 Wxdirect-0.90.0.1 I also notice that these instructions require a bunch of PATH fiddling that I never had to do before for wxWidgets /wxHaskell 2.8. Also that it asks to install a path pointer to the cabal directory to \wxc-%WXC_VERSION%\%GHC_VERSION% which file does not exist on my system. ??
-----Original Message----- Subject: Re: [Haskell-beginners] wxHaskell install errors To: beginners@haskell.org
C: >cabal install wx Resolving dependencies... ... setup\setup.exe ... Configuring wxc-0.90.0.3... Configuring wxc to build against wxWidgets 2.9
setup.exe: Missing dependencies on foreign libraries: ... Are you sure that you installed wxWidgets 2.9 and didn't just compile it from source? It looks like cabal can't find the wxWidgets libraries on your system.

First, you should make sure for yourself that wxWidgets 2.9 is well
installed, for that you can try to build the wxwidgets' examples
cd c:\wx\samples\minimal
mingw32-make -f makefile.gcc BUILD=debug
Then, I can think that it is just a problem of configuring and installing
wxhaskell.
For the paths you have to set, probably the wxc is not installed on your pc
yet, and probably that's why you couldn't find. But you should follow the
way setting those paths and put the right versions of the libraries you are
installing.
Best wishes, Carlos Gomez
On 6 June 2012 12:52, Gregory Guthrie
No, I am not sure of this - I followed the instructions at:
http://www.haskell.org/haskellwiki/WxHaskell/Windows#wxWidgets_2.9_and_wxHas...
The describe the "install" as the wxWidgets install of source code, and then how to compile it, and then just to do cabal installs, which is what is failing.
The cabal install error describes some configuration options, but I don't know where or how they are intended to be used. 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.
I see in my cabal directory that it has files : Wx-0.12.1.6, Wxcore-0.12.1.7 Wxdirect-0.12.1.4 Wxdirect-0.90.0.1
I also notice that these instructions require a bunch of PATH fiddling that I never had to do before for wxWidgets /wxHaskell 2.8. Also that it asks to install a path pointer to the cabal directory to \wxc-%WXC_VERSION%\%GHC_VERSION% which file does not exist on my system. ??
-----Original Message----- Subject: Re: [Haskell-beginners] wxHaskell install errors To: beginners@haskell.org
C: >cabal install wx Resolving dependencies... ... setup\setup.exe ... Configuring wxc-0.90.0.3... Configuring wxc to build against wxWidgets 2.9
setup.exe: Missing dependencies on foreign libraries: ... Are you sure that you installed wxWidgets 2.9 and didn't just compile it from source? It looks like cabal can't find the wxWidgets libraries on your system.
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

First, you should make sure for yourself that wxWidgets 2.9 is well installed, for that you can try to build the wxwidgets' examples
cd c:\wx\samples\minimal mingw32-make -f makefile.gcc BUILD=debug
Thanks, good test, it fails. /e/plang/libraries/wxWidgets2.9/samples/minimal > $ mingw32-make -f makefile.gcc BUILD=debug if not exist gcc_mswuddll mkdir gcc_mswuddll windres --use-temp-file -i../../samples/sample.rc -ogcc_mswuddll\minimal_sample_rc.o --define __WXMSW__ --define _UNICODE -- include-dir .\..\..\lib\gc c_dll\mswud --include-dir ./../../include --include-dir . --define WXUSINGDLL --include-dir ./../../samples --define NOPCH g++ -c -o gcc_mswuddll\minimal_minimal.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -I.\..\..\lib\gcc_dll\mswud -I.\..\..\include -W -Wall -I. -DWXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy -MTgcc_mswuddll\minimal_minimal.o -MFgcc_mswuddll\minimal_minimal.o.d -MD -MP minimal.cpp In file included from .\..\..\include/wx/defs.h:28:0, from .\..\..\include/wx/wxprec.h:13, from minimal.cpp:21: .\..\..\include/wx/platform.h:181:22: fatal error: wx/setup.h: No such file or directory compilation terminated. mingw32-make: *** [gcc_mswuddll\minimal_minimal.o] Error 1 (I did have to start a mingw shell to do this, it won't run from a cmd line.) Not sure what to make of it... I still wish I could just get a binary to install like was available from wxPack for 2.8! :-) ----
Then, I can think that it is just a problem of configuring and installing wxhaskell.
For the paths you have to set, probably the wxc is not installed on your pc yet, and probably that's why you couldn't find. But you should follow the way setting those paths and put the right versions of the libraries you are installing.
Yes, probably wxc is not installed, but that is the problem I am stuck at I think.

To install wxWidgets you can find how in the 'Readme' as I did, or you can
use what I have used on windows 7:
cd c:\wx\build\msw
mingw32-make -f makefile.gcc BUILD=debug
I'm not sure if the 'BUILD=debug' is really needed, but it worked for me.
Hope it helps,
Carlos Gomez
On 6 June 2012 15:45, Gregory Guthrie
First, you should make sure for yourself that wxWidgets 2.9 is well installed, for that you can try to build the wxwidgets' examples
cd c:\wx\samples\minimal mingw32-make -f makefile.gcc BUILD=debug
Thanks, good test, it fails.
/e/plang/libraries/wxWidgets2.9/samples/minimal > $ mingw32-make -f makefile.gcc BUILD=debug if not exist gcc_mswuddll mkdir gcc_mswuddll windres --use-temp-file -i../../samples/sample.rc -ogcc_mswuddll\minimal_sample_rc.o --define __WXMSW__ --define _UNICODE -- include-dir .\..\..\lib\gc c_dll\mswud --include-dir ./../../include --include-dir . --define WXUSINGDLL --include-dir ./../../samples --define NOPCH g++ -c -o gcc_mswuddll\minimal_minimal.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -I.\..\..\lib\gcc_dll\mswud -I.\..\..\include -W -Wall -I. -DWXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy -MTgcc_mswuddll\minimal_minimal.o -MFgcc_mswuddll\minimal_minimal.o.d -MD -MP minimal.cpp
In file included from .\..\..\include/wx/defs.h:28:0, from .\..\..\include/wx/wxprec.h:13, from minimal.cpp:21: .\..\..\include/wx/platform.h:181:22: fatal error: wx/setup.h: No such file or directory compilation terminated. mingw32-make: *** [gcc_mswuddll\minimal_minimal.o] Error 1
(I did have to start a mingw shell to do this, it won't run from a cmd line.) Not sure what to make of it...
I still wish I could just get a binary to install like was available from wxPack for 2.8! :-)
Then, I can think that it is just a problem of configuring and installing wxhaskell.
For the paths you have to set, probably the wxc is not installed on your
---- pc yet, and probably that's why you couldn't find.
But you should follow the way setting those paths and put the right versions of the libraries you are installing.
Yes, probably wxc is not installed, but that is the problem I am stuck at I think.

Hi Gregory, just been looking at your thread here (We seem to be having somewhat parallel problems - I am struggling with installing wxHAskell on mac osx). I was wondering, if you give the command "wx-config --release" What do you get ? If it says 2.8 (which is what I get) then presumably your 'path' is still pointing to the earlier version. And this would fit with Heinrich Apfelmus's comments ? I am struggling to make sense of path settings, and I raised some questions in another thread/s. In the wxHaskell installation instructions for wxWidgets 2.8 I saw this: "We assume in this guide that the variable $wxwin points to your wxWidgets installation directory, for example: ~/dev/wxGTK-2.8.10." It is not in a windows specific part of the instructions, though I wonder (from the name) if it is just relevant for windows (though 'win' could also denote 'Widgets INstallation' perhaps). Do you recognise $wxwin (and what is it set to in your case?). I wonder if this may be implicated in the path settings for 2.9 too. I was also very interested by your "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." I have not got to the cabal step yet (still trying to reach some confidence I have widgets installed and configured correctly!) but it seems this may be the (at least an) answer to the path aspect if all else fails with trying to get an auto default path working. Cheers/ Henry On 6 Jun 2012, at 21:15, Gregory Guthrie wrote:
First, you should make sure for yourself that wxWidgets 2.9 is well installed, for that you can try to build the wxwidgets' examples
cd c:\wx\samples\minimal mingw32-make -f makefile.gcc BUILD=debug
Thanks, good test, it fails.
/e/plang/libraries/wxWidgets2.9/samples/minimal > $ mingw32-make -f makefile.gcc BUILD=debug if not exist gcc_mswuddll mkdir gcc_mswuddll windres --use-temp-file -i../../samples/sample.rc -ogcc_mswuddll\minimal_sample_rc.o --define __WXMSW__ --define _UNICODE -- include-dir .\..\..\lib\gc c_dll\mswud --include-dir ./../../include --include-dir . --define WXUSINGDLL --include-dir ./../../samples --define NOPCH g++ -c -o gcc_mswuddll\minimal_minimal.o -g -O0 -mthreads -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -I.\..\..\lib\gcc_dll\mswud -I.\..\..\include -W -Wall -I. -DWXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy -MTgcc_mswuddll\minimal_minimal.o -MFgcc_mswuddll\minimal_minimal.o.d -MD -MP minimal.cpp
In file included from .\..\..\include/wx/defs.h:28:0, from .\..\..\include/wx/wxprec.h:13, from minimal.cpp:21: .\..\..\include/wx/platform.h:181:22: fatal error: wx/setup.h: No such file or directory compilation terminated. mingw32-make: *** [gcc_mswuddll\minimal_minimal.o] Error 1
(I did have to start a mingw shell to do this, it won't run from a cmd line.) Not sure what to make of it...
I still wish I could just get a binary to install like was available from wxPack for 2.8! :-)
----
Then, I can think that it is just a problem of configuring and installing wxhaskell.
For the paths you have to set, probably the wxc is not installed on your pc yet, and probably that's why you couldn't find. But you should follow the way setting those paths and put the right versions of the libraries you are installing.
Yes, probably wxc is not installed, but that is the problem I am stuck at I think.
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Thanks - I get wx-config = version 2.9 so that seems good. The name wxWin is the original name of the current wxWidgets system, as I recall from long ago usage of it as a C++ library. The installation instructions at: http://www.haskell.org/haskellwiki/WxHaskell/Windows Do say to set it, and mine points to my wxWidgets2.9 directory. -------------------------------------------
Subject: Re: [Haskell-beginners] wxHaskell install errors
Hi Gregory, just been looking at your thread here (We seem to be having somewhat parallel problems - I am struggling with installing wxHAskell on mac osx).
I was wondering, if you give the command "wx-config --release"
Do you recognise $wxwin (and what is it set to in your case?). I wonder if this may be implicated in the path settings for 2.9 too.

OK (Well that's something, anyway ;-) On 7 Jun 2012, at 03:33, Gregory Guthrie wrote:
Thanks - I get wx-config = version 2.9 so that seems good.
The name wxWin is the original name of the current wxWidgets system, as I recall from long ago usage of it as a C++ library.
The installation instructions at: http://www.haskell.org/haskellwiki/WxHaskell/Windows Do say to set it, and mine points to my wxWidgets2.9 directory. -------------------------------------------
Subject: Re: [Haskell-beginners] wxHaskell install errors
Hi Gregory, just been looking at your thread here (We seem to be having somewhat parallel problems - I am struggling with installing wxHAskell on mac osx).
I was wondering, if you give the command "wx-config --release"
Do you recognise $wxwin (and what is it set to in your case?). I wonder if this may be implicated in the path settings for 2.9 too.

I did a complete re-build of wxWidgets2.9, and it seemed to complete successfully with a built library files: gcc_mswuddll & gcc_mswudll. Then I went into the samples directory and built all the samples, they all seemed to build fine, but when I try to execute them they give: " wbase293ud_gcc_custom.dll not found ...". And it still doesn't seem to have installed wxc or wxcore (not in the cabal directory). Does anyone run WxHaskell 2.9 on Windows?

On 6 June 2012 23:57, Gregory Guthrie
I did a complete re-build of wxWidgets2.9, and it seemed to complete successfully with a built library files: gcc_mswuddll & gcc_mswudll.
Then I went into the samples directory and built all the samples, they all
seemed to build fine, but when I try to execute them they give: " wbase293ud_gcc_custom.dll not found ...".
I'm not sure of this one. I've looked out on my computer, that file is on C:\wxWidgets-2.9.3*\lib\gcc_dll\*wxbase293ud_gcc_custom.dll. If you have that one, probably the problem is because of the paths, you need to set some paths: Create these on Windows System variables: WXCFG: gcc_dll\mswu WXWIN: C:\wxWidgets-2.9.3 And add those to the 'PATH' variable %WXWIN%\lib\gcc_dll;%WXWIN%; And it still doesn't seem to have installed wxc or wxcore (not in the cabal
directory).
Does anyone run WxHaskell 2.9 on Windows?
I have installed it on windows 7, I wrote a small tutorial in Spanish ( https://lazyprogramming.wordpress.com/2012/05/05/instalar-wxhaskell-0-90-en-... ). Best wishes, Carlos Gomez

I did a re-make of the entire wxWidgets download source tree, and it (again) seemed to be successful, ending in: Creating library file: ..\..\lib\gcc_dll\libwxmsw29ud_gl.a Now trying to do a make in samples/minimal seems to work. -------------------------------------------
-----Original Message----- From: Gregory Guthrie Sent: Wednesday, June 06, 2012 3:15 PM To: 'carlos gomez' Cc: beginners@haskell.org Subject: RE: [Haskell-beginners] wxHaskell install errors
First, you should make sure for yourself that wxWidgets 2.9 is well installed, for that you can try to build the wxwidgets' examples
cd c:\wx\samples\minimal mingw32-make -f makefile.gcc BUILD=debug
Thanks, good test, it fails.
/e/plang/libraries/wxWidgets2.9/samples/minimal > $ mingw32-make -f makefile.gcc BUILD=debug if not exist gcc_mswuddll mkdir gcc_mswuddll windres --use-temp-file -i../../samples/sample.rc -ogcc_mswuddll\minimal_sample_rc.o --define __WXMSW__ --define _UNICODE -- include-dir .\..\..\lib\gc c_dll\mswud --include-dir ./../../include --include-dir . --define WXUSINGDLL --include- dir ./../../samples --define NOPCH g++ -c -o gcc_mswuddll\minimal_minimal.o -g -O0 -mthreads -DHAVE_W32API_H - D__WXMSW__ -D_UNICODE -I.\..\..\lib\gcc_dll\mswud -I.\..\..\include -W -Wall -I. -DWXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy - MTgcc_mswuddll\minimal_minimal.o -MFgcc_mswuddll\minimal_minimal.o.d -MD -MP minimal.cpp
In file included from .\..\..\include/wx/defs.h:28:0, from .\..\..\include/wx/wxprec.h:13, from minimal.cpp:21: .\..\..\include/wx/platform.h:181:22: fatal error: wx/setup.h: No such file or directory compilation terminated. mingw32-make: *** [gcc_mswuddll\minimal_minimal.o] Error 1
(I did have to start a mingw shell to do this, it won't run from a cmd line.) Not sure what to make of it...
I still wish I could just get a binary to install like was available from wxPack for 2.8! :-)
Then, I can think that it is just a problem of configuring and installing wxhaskell.
For the paths you have to set, probably the wxc is not installed on your pc yet, and probably
---- that's why you couldn't find.
But you should follow the way setting those paths and put the right versions of the libraries you are installing.
Yes, probably wxc is not installed, but that is the problem I am stuck at I think.
participants (3)
-
carlos gomez
-
Gregory Guthrie
-
Henry Lockyer