Bas van Dijk | 1 Dec 2006 08:16
Picon
Favicon

Re: Undefined reference to wxGLCanvas::*

On Thursday 30 November 2006 19:35, amiddelk@... wrote:
> I "solved" this on my linux install by passing the --with-opengl flag to
> the configure script.

Yes, I tried that but it didn't help.

Bas.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Conal Elliott | 3 Dec 2006 06:49
Gravatar

Does anyone use wxHaskell with ghc-6.6?

I'd love to hear from anyone who has wxHaskell & ghc-6.6 working together.  I'm stuck on a Unicode issue (apparently), as mentioned in my previous message.  - Conal

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Eric Y. Kow | 3 Dec 2006 08:21
Picon
Gravatar

Re: strings truncated to one character in wxhaskell-0.10.1 under ghc-6.6

On Thu, Nov 30, 2006 at 14:26:43 -0800, Conal Elliott wrote:
> I don't know whether Unicode was enabled in my wxWidgets build.  I have
> wxWidgets 2.4.2 and configured compilation without any mention of unicode.
> Would I want unicode enabled or disabled?

You want it enabled

> I just tried a clean build & install with --enable-unicode and one with
> --disable-unicode, and I got the same truncation behavior in both cases.

You might also want to make sure that wxhaskell is using the wxWidgets
you think it's using.  You can set this explicitly with ./configure
--wx-config=/the/path/to/your/wxWidgets

> What is the ideal version of wxWidgets and what are the ideal build
> configuration parameters for wxWidgets & wxHaskell with ghc-6.6?

> And does anyone have wxHaskell working correctly (not just compiling) with
> ghc-6.6?

It has worked for me in the past with 2.4.2 and ghc-6.4.1, and it seems
to be working for me with ghc-6.6 and wxWidgets 2.6.3

--

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Wouter Swierstra | 3 Dec 2006 16:52
Picon

wxHaskell Status

Hiya,

I was curious what the status of wxhaskell is now. I realize that  
there's been a lot of progress and you guys have set up a new darcs  
repository. Is there a new release that has been tested on different  
platforms and is known to work well with certain versions of ghc and  
wxWidgets? Will there be binaries available any time soon? A lot of  
people seem to be having trouble with disable/enable unicode - now  
would be a good time to update the homepage, bring the build  
instructions up to date, and get a new version out there. I, for one,  
am a bit hesitant to invest too much effort in getting wxHaskell  
running as long as it is still very much in a state of flux.

Thanks again!

   Wouter 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Jeremy O'Donoghue | 3 Dec 2006 21:18
Picon

Re: wxHaskell Status

Hi Wouter,

Some long overdue updates on what I am doing (and why) in-line. By the
way, if anyone thinks that whay I am doing is the wrong way to go,
please chime in (preferably with a constructive alternative).

On 03/12/06, Wouter Swierstra <wss@...> wrote:
>
> I was curious what the status of wxhaskell is now. I realize that
> there's been a lot of progress and you guys have set up a new darcs
> repository. Is there a new release that has been tested on different
> platforms and is known to work well with certain versions of ghc and
> wxWidgets?

We're not yet ready for a release. The sources out of darcs can be
successfully built on Linux/OSX/Windows (I can personally vouch for
OSX and Windows) but there are enough wrinkles that stop it from
working 'out of the box' that it can't really be called 'ready'.

> Will there be binaries available any time soon?

Not until we are confident about making something which 'always works'.

> A lot of
> people seem to be having trouble with disable/enable unicode - now
> would be a good time to update the homepage, bring the build
> instructions up to date, and get a new version out there.

The main issue seems to be that although the wxHaskell sources
themselves are very solid indeed (and Eric has been doing a superb job
in ensuring the quality of what goes into darcs), it's too easy to get
the build wrong and end up with something which appears to compile and
link, but then does not work.

OS X seems to be particularly susceptible to this, and after the
problems Stefan Holdermans reported a week or two back, I have
diverted into looking into why the OS X build is so fragile. I don't
yet have a reason,but I'm definitely seeing unexpected linker
behaviour with some build scenarios which I am trying to get to the
bottom of. We were able to get Stafan going by creating a statically
linked build variant, but I would like to understand why the
dynamically linked version is so sensitive to the options used to
build wxWidgets.

Before I was diverted onto the OS X build, I was looking at
Cabalization (assuming that such a word exists...)

One of the key issues raised by GHC 6.6 was that it breaks the
wxHaskell build system due to the way in which the wxc, wxCore and wx
libraries are built and installed. There is a work-around in darcs
(from shelarcy - basically do the build in several stages), but this
is not really satisfactory for the longer term.

My original idea was to do the whole build with Cabal, but this really
isn't an option for the wxc wrapper as Cabal is poorly equipped for
building complex C codebases (not really a criticism - it is the
*Haskell* Cabal!).

I've therefore moved to separate the build of wxc from the remainder
of wxHaskell. This is probably sensible as wxc is not really tied in
any way to Haskell, and should probably stand alone in the longer term
(c.f. wxc.sourceforge.net, which exists, but is not currently very
active).

This means splitting the wxHaskell makefile so that it contains only
the parts needed to build wxc, which I have done for OS X and Unix (OK
- it was the easy part, but I still want to be sure about OS X
stability), and am in the process of doing for Windows (I'm getting
rid of the VC++ project files which required the user to edit a
machine-generated file which says 'do not edit' at the top and
replacing with an NMAKE makefile). This should make Windows builds
much easier to do as the bits which might need to be edited are all in
one place (can't auto-detect on Windows as on Unix, unfortunately). It
will (I think) also have the benefit that it should be possible to
build wxC with only the free versions of the Microsoft tools.

One note I should make regarding the wxC parts: the wxc maintainers on
Sourceforge have not chosen to use Make.  They have, instead, chosen
to use Geant which is, I think, an Eiffel-based 'Ant-alike'. I can't
agree with this, and prefer to have a few dependencies as possible for
the build system. The wxC library needs no more than a C++ compiler
and make to build it; anyone likely to be interested in wxC will
already have these. Using any other build system just multiplies
dependencies and ensures that anyone interested is more likely to give
up. Cabal is OK for Haskell-specific parts as it's part of the
distribution. Anyway,I already know and loathe make ;-)

Last part, which I haven't finished, is Cabalization of the Haskell
parts, which should make the Haskell build much more maintainable. The
hard bit is wxDirect (or rather, running it over wxC library to
generate the WX.Core sources) in Cabal. This requires me to write a
bit more code than I expected, and so it's taking some time.

Anyway, I've probably gone completely off-topic in answering you, but
that's what I am getting up to.

Regards
Jeremy

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Conal Elliott | 4 Dec 2006 19:16
Gravatar

Re: strings truncated to one character in wxhaskell-0.10.1 under ghc-6.6

Thanks for the tips, Eric.  I've built & installed wxWidgets 2.6.3 (configuring with --with-msw --disable-shared --with-opengl --enable-unicode).  When I compile wxHaskell (configuring with --prefix=/usr/local --with-opengl), I get a host of errors, such as

C:/cygwin/usr/local/include/wx/chkconf.h:100:9: #error "wxUSE_PROLOGIO must be defined."
C:/cygwin/usr/local/include/wx/chkconf.h:488:9: #error "wxUSE_NEW_GRID must be defined."
C:/cygwin/usr/local/include/wx/chkconf.h:1184:9: #error "wxUSE_DYNAMIC_CLASSES must be defined as 1"

and

C:/cygwin/usr/local/include/wx/object.h:438: `wxClassInfo' was not declared in this scope
C:/cygwin/usr/local/include/wx/object.h:438: `info' was not declared in this  scope
C:/cygwin/usr/local/include/wx/object.h:438: invalid data member initialization




On 12/2/06, Eric Y. Kow <eric.kow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Thu, Nov 30, 2006 at 14:26:43 -0800, Conal Elliott wrote:
> I don't know whether Unicode was enabled in my wxWidgets build.  I have
> wxWidgets 2.4.2 and configured compilation without any mention of unicode.
> Would I want unicode enabled or disabled?

You want it enabled

> I just tried a clean build & install with --enable-unicode and one with
> --disable-unicode, and I got the same truncation behavior in both cases.

You might also want to make sure that wxhaskell is using the wxWidgets
you think it's using.  You can set this explicitly with ./configure
--wx-config=/the/path/to/your/wxWidgets

> What is the ideal version of wxWidgets and what are the ideal build
> configuration parameters for wxWidgets & wxHaskell with ghc-6.6?

> And does anyone have wxHaskell working correctly (not just compiling) with
> ghc-6.6?

It has worked for me in the past with 2.4.2 and ghc-6.4.1, and it seems
to be working for me with ghc-6.6 and wxWidgets 2.6.3

--
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Conal Elliott | 4 Dec 2006 19:19
Gravatar

Re: strings truncated to one character in wxhaskell-0.10.1 under ghc-6.6

oops -- premature send.

any advice?  what configure options do you use for wxWidgets-2.6.3?

Thanks,   - Conal



On 12/4/06, Conal Elliott <conal-R2YG1wQAgWFeoWH0uzbU5w@public.gmane.org> wrote:
Thanks for the tips, Eric.  I've built & installed wxWidgets 2.6.3 (configuring with --with-msw --disable-shared --with-opengl --enable-unicode).  When I compile wxHaskell (configuring with --prefix=/usr/local --with-opengl), I get a host of errors, such as

C:/cygwin/usr/local/include/wx/chkconf.h:100:9: #error "wxUSE_PROLOGIO must be defined."
C:/cygwin/usr/local/include/wx/chkconf.h:488:9: #error "wxUSE_NEW_GRID must be defined."
C:/cygwin/usr/local/include/wx/chkconf.h:1184:9: #error "wxUSE_DYNAMIC_CLASSES must be defined as 1"

and

C:/cygwin/usr/local/include/wx/object.h:438: `wxClassInfo' was not declared in this scope
C:/cygwin/usr/local/include/wx/object.h:438: `info' was not declared in this  scope
C:/cygwin/usr/local/include/wx/object.h:438: invalid data member initialization





On 12/2/06, Eric Y. Kow <eric.kow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Thu, Nov 30, 2006 at 14:26:43 -0800, Conal Elliott wrote:
> I don't know whether Unicode was enabled in my wxWidgets build.  I have
> wxWidgets 2.4.2 and configured compilation without any mention of unicode.
> Would I want unicode enabled or disabled?

You want it enabled

> I just tried a clean build & install with --enable-unicode and one with
> --disable-unicode, and I got the same truncation behavior in both cases.

You might also want to make sure that wxhaskell is using the wxWidgets
you think it's using.  You can set this explicitly with ./configure
--wx-config=/the/path/to/your/wxWidgets

> What is the ideal version of wxWidgets and what are the ideal build
> configuration parameters for wxWidgets & wxHaskell with ghc-6.6?

> And does anyone have wxHaskell working correctly (not just compiling) with
> ghc-6.6?

It has worked for me in the past with 2.4.2 and ghc-6.4.1, and it seems
to be working for me with ghc-6.6 and wxWidgets 2.6.3

--
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Artem Gr | 4 Dec 2006 20:10
Picon

embedding icons into executable under CYGWIN

Here is my experience of embedding .ico files into executable:

Write and compile the resource file with several named icons as described in
http://www.wxwidgets.org/wiki/index.php/Cross-Compiling_Windows_Resources
(windres.exe is provided with the CYGWIN).

A part of my resource file:

ico1_normal ICON "src/PENCL01J.ICO"
ico2_noPing ICON "src/PAINT05B.ICO"

Compiling it into an object file:

$ windres src/resources.rc src/resources.o

Linking it into the Haskell program:

$ ghc --make src/*.hs src/resources.o

Using the linked icon from Haskell:

  ico <- iconCreateLoad "ico1_normal" wxBITMAP_TYPE_ICO_RESOURCE (sz 32 32)
  f <- frame [text := "Frame title goes here.", visible := False]
  frameSetIcon f ico

Attachment (smime.p7s): application/x-pkcs7-signature, 3233 bytes
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Conal Elliott | 6 Dec 2006 22:22
Gravatar

Re: strings truncated to one character in wxhaskell-0.10.1 under ghc-6.6

Fixed!  Now I have wxHaskell-0.10.1 and wxWidgets-2.6.3 working together with unicode, and no more truncated strings.

The compilation problem below seems to have been that my wxHaskell compile was picking up my old wxWidgets-2.4 include files rather than the new 2.6.3 ones.  Looking in /usr/local/include, I saw wx/ and wx-2.6.  Although the wxHaskell compilations explicitly ref'd include/wx-2.6, the error messages below ref'd include/wx, I fixed the problem by renaming include/wx to include/wx- 2.4 and recompiling wxHaskell.

There was one more build problem.  After wxcore was built, I got "multiple target patterns" errors from "make install".  To work around this problem, I moved two sets *.d files out of the way, as follows:

bash-3.1$ make install
out/wxc/ewxw_main.d:1: *** multiple target patterns.  Stop.
bash-3.1$ pushd out/wxc
/c/Haskell/wxhaskell/out/wxc /c/Haskell/wxhaskell /usr/local/include /c/wxWidgets-2.6.3/mybuild
bash-3.1$ mkdir ds
bash-3.1$ mv *.d ds
bash-3.1$ pushd
/c/Haskell/wxhaskell /c/Haskell/wxhaskell/out/wxc /usr/local/include /c/wxWidgets-2.6.3/mybuild
bash-3.1$ make install
out/wxc/ewxw/eljaccelerator.d:1: *** multiple target patterns.  Stop.
bash-3.1$ pushd
/c/Haskell/wxhaskell/out/wxc /c/Haskell/wxhaskell /usr/local/include /c/wxWidgets-2.6.3/mybuild
bash-3.1$ cd ewxw
bash-3.1$ mkdir ds
bash-3.1$ mv *.d ds
bash-3.1$ pushd
/c/Haskell/wxhaskell /c/Haskell/wxhaskell/out/wxc/ewxw /usr/local/include /c/wxWidgets-2.6.3/mybuild
bash-3.1$ make install
install directory: C:/cygwin/usr/local/lib/
...

All went well from there.

One more small annoyance.  I get many compiler complaints about -fPIC, e.g.,

g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -IC:/cygwin/usr/local/include -IC:/cygwin/usr/local/lib/wx/include/msw-unicode-release-static-2.6 -IC:/cygwin/usr/local/include/wx-2.6 -D__WIN95__ -D__WXMSW__ -fPIC -Iwxc/include
cc1plus.exe: warning: -fPIC ignored for target (all code is position independent)

Is there a process for submitting & tracking wxHaskell bug reports?

Cheers,  - Conal


On 12/4/06, Conal Elliott <conal-R2YG1wQAgWFeoWH0uzbU5w@public.gmane.org> wrote:
oops -- premature send.

any advice?  what configure options do you use for wxWidgets-2.6.3?

Thanks,   - Conal




On 12/4/06, Conal Elliott <conal-R2YG1wQAgWFeoWH0uzbU5w@public.gmane.org> wrote:
Thanks for the tips, Eric.  I've built & installed wxWidgets 2.6.3 (configuring with --with-msw --disable-shared --with-opengl --enable-unicode).  When I compile wxHaskell (configuring with --prefix=/usr/local --with-opengl), I get a host of errors, such as

C:/cygwin/usr/local/include/wx/chkconf.h:100:9: #error "wxUSE_PROLOGIO must be defined."
C:/cygwin/usr/local/include/wx/chkconf.h:488:9: #error "wxUSE_NEW_GRID must be defined."
C:/cygwin/usr/local/include/wx/chkconf.h:1184:9: #error "wxUSE_DYNAMIC_CLASSES must be defined as 1"

and

C:/cygwin/usr/local/include/wx/object.h:438: `wxClassInfo' was not declared in this scope
C:/cygwin/usr/local/include/wx/object.h:438: `info' was not declared in this  scope
C:/cygwin/usr/local/include/wx/object.h:438: invalid data member initialization





On 12/2/06, Eric Y. Kow <eric.kow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Thu, Nov 30, 2006 at 14:26:43 -0800, Conal Elliott wrote:
> I don't know whether Unicode was enabled in my wxWidgets build.  I have
> wxWidgets 2.4.2 and configured compilation without any mention of unicode.
> Would I want unicode enabled or disabled?

You want it enabled

> I just tried a clean build & install with --enable-unicode and one with
> --disable-unicode, and I got the same truncation behavior in both cases.

You might also want to make sure that wxhaskell is using the wxWidgets
you think it's using.  You can set this explicitly with ./configure
--wx-config=/the/path/to/your/wxWidgets

> What is the ideal version of wxWidgets and what are the ideal build
> configuration parameters for wxWidgets & wxHaskell with ghc-6.6?

> And does anyone have wxHaskell working correctly (not just compiling) with
> ghc-6.6?

It has worked for me in the past with 2.4.2 and ghc-6.4.1, and it seems
to be working for me with ghc-6.6 and wxWidgets 2.6.3

--
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Conal Elliott | 6 Dec 2006 23:53
Gravatar

installing/registering haddock docs for wxhaskell?

I see how to make wxhaskell (haddock) docs and how to build and install & register the wxhaskell packages.  Is there a way to install & register the haddock docs so that haddock can find them for libraries that use wxhaskell?  (As a temporary hack, I edited the paths right into my ghc package.conf file.)

  - Conal

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane