Daniel Kahlenberg | 29 Jul 10:58 2008

Building the windows port possible?

Hello,

I try to build the current wxhaskell version from the darcs repository.
Therefor I started shell session configured like described on the
documentation site.
The sh.exe I use is provided by msys, I also installed mingw32 (`uname
-a' : MINGW32_NT-5.1
... 1.0.11(0.46/3/2) 2007-01-12 12:05 i686 Msys)

The make process runs fine until it fails with
the message
   `wx/graphics.h' isn't found (for the wxwidgets version 2.6.4)

and with the messages
   `wxc/src/graphicscontext.cpp:417: error: expected `,' or `...'
before '*' token
    wxc/src/graphicscontext.cpp:418: error: ISO C++ forbids
declaration of `wxPoint2DDouble' with no type'
    make: *** [dist/wxc/graphicscontext.o] Error 1
in both cases - trying to compile against wxwidgets versions 2.6.4 and 2.8.8.

The tool call which
sets the wxversion variable (`wx-config --version') is executed and
returns the built and installed version of wxwidgets (tried with both
separatly).
The searched hosted graphics.h as I could determine seems
available as part of the 2.8.x version of wxwidgets at first.

Did I forget to build something on the wxwidgets side?

(Continue reading)

Eric Kow | 29 Jul 11:53 2008
Picon

Re: Building the windows port possible?

Hi,

2008/7/29 Daniel Kahlenberg <d.kahlenberg@...>:
> The make process runs fine until it fails with
> the message
>   `wx/graphics.h' isn't found (for the wxwidgets version 2.6.4)

Well, I notice you have tried both 2.6.4 and 2.8.8 below.  For what
it's worth, only 2.8.x is supported  (in case this helps to narrow)

> and with the messages
>   `wxc/src/graphicscontext.cpp:417: error: expected `,' or `...'
> before '*' token
>    wxc/src/graphicscontext.cpp:418: error: ISO C++ forbids
> declaration of `wxPoint2DDouble' with no type'
>    make: *** [dist/wxc/graphicscontext.o] Error 1
> in both cases - trying to compile against wxwidgets versions 2.6.4 and 2.8.8.

I'm not sure what to suggest.  Shelarcy, any ideas?

I would appreciate it if you could post any findings on the
troubleshooting section of
  http://www.haskell.org/haskellwiki/WxHaskell/Install

--

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
(Continue reading)

shelarcy | 29 Jul 13:58 2008
Picon

Re: Building the windows port possible?

Hi,

On Tue, 29 Jul 2008 18:53:42 +0900, Eric Kow <eric.kow@...> wrote:
> 2008/7/29 Daniel Kahlenberg <d.kahlenberg@...>:
>> and with the messages
>>   `wxc/src/graphicscontext.cpp:417: error: expected `,' or `...'
>> before '*' token
>>    wxc/src/graphicscontext.cpp:418: error: ISO C++ forbids
>> declaration of `wxPoint2DDouble' with no type'
>>    make: *** [dist/wxc/graphicscontext.o] Error 1
>> in both cases - trying to compile against wxwidgets versions 2.6.4 and 2.8.8.
>
> I'm not sure what to suggest.  Shelarcy, any ideas?

This problem come from wxGraphicsContext support. wx/graphics.h includes wx/geometory.h,
but wrapper.h does not. So, I think we can fix this problem easily.

Daniel, if you want to just build wxHaskell, you should rebuild wxWidgets with
--enable-graphics_ctx option.

And I made and send patch for this problem, too. If you don't want to build
wxWidgets again, please wait a moment until applying my new patch to darcs
repository.

I think that patch also fixes below problem.

>> The make process runs fine until it fails with
>> the message
>>   `wx/graphics.h' isn't found (for the wxwidgets version 2.6.4)
>
(Continue reading)

Eric Kow | 29 Jul 14:32 2008
Picon

Re: Building the windows port possible?

Hi Daniel,

> And I made and send patch for this problem, too. If you don't want to build
> wxWidgets again, please wait a moment until applying my new patch to darcs
> repository.

You could also apply the patch to your own repository and see how it
works out :-)
 [darcs apply the_patchfile]

--

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Daniel Kahlenberg | 29 Jul 16:31 2008

Re: Building the windows port possible?

Hello,

Thanks very much for your help, but had no luck again, trying to
rebuild wxwidgets (darcs pull found nothing new yet).

Will I have to install the Platform SDK then or something similar ??
The make process now complains about this error:

../../src/msw/graphics.cpp:92:21: gdiplus.h: No such file or directory
../../src/msw/graphics.cpp:93: error: `Gdiplus' is not a namespace-name
../../src/msw/graphics.cpp:93: error: expected namespace-name before ';' token
* Please look at the attachement for follow up errors

My configure arguments were:

../../configure --with-msw --enable-unicode --with-odbc --with-opengl
--enable-sound --enable-mediactrl --disable-shared --enable-optimize
--enable-graphics_ctx

2008/7/29 Eric Kow <eric.kow@...>:
> Hi Daniel,
>
>> And I made and send patch for this problem, too. If you don't want to build
>> wxWidgets again, please wait a moment until applying my new patch to darcs
>> repository.
>
> You could also apply the patch to your own repository and see how it
> works out :-)
>  [darcs apply the_patchfile]
>
(Continue reading)

Eric Kow | 29 Jul 16:38 2008
Picon

Re: Building the windows port possible?

2008/7/29 Daniel Kahlenberg <d.kahlenberg@...>:
> Thanks very much for your help, but had no luck again, trying to
> rebuild wxwidgets (darcs pull found nothing new yet).

Well, I can't push Shelarcy's patch in until later this evening (not
for 5 hours or so), but you could save his email attachment (the
patch) and run darcs apply on the saved file...

oh wait, that was on the wxhaskell-devel list, which is why you never saw it!
http://cache.gmane.org//gmane/comp/lang/haskell/wxhaskell/devel/236-001.bin

I'll leave the other questions to Shelarcy...

--

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
shelarcy | 29 Jul 17:09 2008
Picon

Re: Building the windows port possible?

On Tue, 29 Jul 2008 23:31:12 +0900, Daniel Kahlenberg
<d.kahlenberg@...> wrote:
> The make process now complains about this error:
>
> ../../src/msw/graphics.cpp:92:21: gdiplus.h: No such file or directory
> ../../src/msw/graphics.cpp:93: error: `Gdiplus' is not a namespace-name
> ../../src/msw/graphics.cpp:93: error: expected namespace-name before ';' token
> * Please look at the attachement for follow up errors

Hmm ... it seems that MinGW'a w32api doesn't have gdiplus library yet.

> Will I have to install the Platform SDK then or something similar ??

I think PlatformSDK's header and library files are incompatible with w32api.
Because Aaron is working for to modernize Windows platform support in Google
Summer of Code project now.

http://gcc.gnu.org/wiki/WindowsGCCImprovementsGSoC2008#head-5effb1d3f01b0db6e4f7d14b0ce1beed8469de4e

So, we can't enable wxGraphicsContext support when using MinGW now....

Best Regards,

--

-- 
shelarcy <shelarcy    hotmail.co.jp>
http://page.freett.com/shelarcy/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
(Continue reading)

Daniel Kahlenberg | 30 Jul 10:02 2008

Fwd: [Haskell-cafe] [Haskell Beginner] Compiling wxhaskell fails for me

---------- Forwarded message ----------
From: Daniel Kahlenberg <d.kahlenberg@...>
Date: 2008/7/30
Subject: Re: [Haskell-cafe] [Haskell Beginner] Compiling wxhaskell fails for me
To: shelarcy <shelarcy@...>
Cc: Jason Dusek <jason.dusek@...>, "haskell-cafe@..."
<haskell-cafe@...>

Hi,

for a comprehension, when trying to compile the wxwidgets 2.8.8
version with the configure flag `--enable-graphics_ctx' the make
process fails with the error messages
 ../../src/msw/graphics.cpp:92:21: gdiplus.h: No such file or directory
 ../../src/msw/graphics.cpp:93: error: `Gdiplus' is not a namespace-name
in front, you can find my config.log and makeerrors.log attached

2008/7/30 shelarcy <shelarcy@...>:
> Hi,
>
> On Wed, 30 Jul 2008 16:02:22 +0900, Jason Dusek
<jason.dusek@...> wrote:
>>   Maybe you could try building it with 2.8 and let us know how
>>   it goes?
>
> We are discussing his problem in wxhaskell-users mailing-list now.
>
> http://www.mail-archive.com/wxhaskell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f <at> public.gmane.org/msg00488.html
>
> I send patch to fix that. And patch is already pushed in latest darcs repository.
(Continue reading)

Daniel Kahlenberg | 30 Jul 16:25 2008

Re: Building the windows port possible?

Hi again,

I was able to run the make process on wxhaskell with wxwidgets-2.8.8
built against mingw now without errors. At first I made a darcs pull
in my wxhaskell repo to get the patches from 29/07/2008. Then I used
the wxwidgets build, configured without the `--enable-graphics_ctx'
flag, but with the other recommended flags. I also built the
contrib/src folders contents for the stc stuff, otherwise the
wxhaskell build may break. That part ran fine.

Now I changed into the source folder of wxhaskell and configured it as
usual (with `--with-contrib' flag and all that). make then ran with no
errors. At the moment I have no time to take the whole of it done
(make wx ...), but I'm shure that is more straight forward.

Keep up the good work.

Daniel

2008/7/29 Eric Kow <eric.kow@...>:
> 2008/7/29 Daniel Kahlenberg <d.kahlenberg@...>:
>> Thanks very much for your help, but had no luck again, trying to
>> rebuild wxwidgets (darcs pull found nothing new yet).
>
> Well, I can't push Shelarcy's patch in until later this evening (not
> for 5 hours or so), but you could save his email attachment (the
> patch) and run darcs apply on the saved file...
>
> oh wait, that was on the wxhaskell-devel list, which is why you never saw it!
> http://cache.gmane.org//gmane/comp/lang/haskell/wxhaskell/devel/236-001.bin
(Continue reading)


Gmane