From: Conal E. <co...@co...> - 2006-12-06 21:22:42
|
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.3ones. 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 <co...@co...> 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 <co...@co...> wrote: > > > > Thanks for the tips, Eric. I've built & installed wxWidgets 2.6.3(conf= iguring with --with-msw > > --disable-shared --with-opengl --enable-unicode). When I compile > > wxHaskell (configuring with --prefix=3D/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 <eri...@gm...> 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 wxWidget= s > > > you think it's using. You can set this explicitly with ./configure > > > --wx-config=3D/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<http://www.lori= a.fr/%7Ekow> > > > PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. > > > > > > > > > > > > |