On 06/10/2013 10:21 AM, harry wrote:
> Charles the Hawk <charlesthehawk@...> writes:
>
>> At first I installed the 90.0.1 from the older site.  I had to modify
>> wxdirect to do an "import Foreign.C.Types" to get rid of the arg type
>> errors and change the pointer assignment in eljpen.cpp that others have
>> mentioned.  It was working fine so I installed the 90.1 from Atze's repo
>> into a sandbox as described in the wiki.  I thought I changed the path
>> to use the 90.1 wxdirect but it's possible the older modified wxdirect
>> was running.  I'll try to play around with it some tomorrow and make
>> sure my modified wxdirect isn't being run.  But I definitely had to
>> change all the CHECK_VERSIONs to 2,9,4 or they could be commented out as
>> Blair suggested.
> Could you upload your modified code to Github? You seem to have done a lot
> of good work to make it compile, it would be great if others could use it.
>

Any noobs out there like me trying to install this and getting reinstall 
warnings, save yourself some grief and unregister any older versions of 
the 4 packages (wx, wxc, wxcore, wxdirect) before installing.  (ghc-pkg 
unregister <pkgname>).

I'm using ArchLinux, ghc 7.6.3, wxWidgets 2.9.4, and the current repo 
(atzedijkstra).  The only change I had to make was to change the 
wxCHECK_VERSION(2,9,5) that refer to SetDeviceClippingRegion to 
wxCHECK_VERSION(2,9,4) in wxc/src/include/wxc_glue.h and 
wxc/src/cpp/eljdc.cpp.  Atze has them at 2,9,5 for a reason.  It will 
compile but I get link errors without the above change.  If you get an 
error while compiling eljpen.cpp, you probably don't have the latest 
version.

Harry,
After discovering the above, Atze's repo compiled fine, so I don't think 
I should check that mod in.  I doubt it would hurt anything but let's 
not clutter up the code with anything unnecessary.  If you still have 
problems after following the above and want to try it to see if it fixes 
your problem, edit wxdirect/src/CompileClasses.hs. Line 110 should be 
something like:
, "import qualified Data.ByteSTring as B (...
Insert before that line:
, "import Foreign.C.Types"

In the old repo, it was line 101 so perhaps a change has already been 
made to fix the problem.  It's also possible I changed more than one 
thing on my system between compiles and this had nothing to do with it 
working.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to