Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco on MinGW (once again, but hopefully the last time)

Please post support and help requests here.

Poco on MinGW (once again, but hopefully the last time)

Postby hersto » 13 Aug 2008, 13:25

Hi,

Poco does not compile out of the box under MinGW.
I'd like to fix this, and have already succeeded with Foundation, Util and XML
in Poco 1.3.2.
However, i don't understand the build system good enough to make appropriate
modifications. So i had to #include one .cpp from another to make it be compiled :-)

It seams that some files are excluded from compilation on some platforms.
Some others depend on the defines POCO_OS_FAMILY_WINDOWS and friends.
I think i'll try to add an #elif-defined-MinGW section in Platform.h tonight.

But, can anybody tell me how the mechanism to include/exclude certain files
works? (i did not find it in the Build System TechNote.)

Thanks
hersto
 
Posts: 5
Joined: 18 Oct 2007, 12:42
Location: Germany

Re: Poco on MinGW (once again, but hopefully the last time)

Postby devcjohnson » 13 Aug 2008, 16:04

> Poco does not compile out of the box under MinGW.
> I'd like to fix this, and have already succeeded with Foundation, Util and XML
> in Poco 1.3.2.

Through SVN, pull from trunk tip or the 1.3.3 branch.

--[SNIP]--

> It seams that some files are excluded from compilation on some platforms.
> Some others depend on the defines POCO_OS_FAMILY_WINDOWS and friends.

The sources mentioned above do exactly what you mention but do so that it builds for MinGW environments successfully. You can compare the differences above to the 1.3.2 branch and get a good understanding how the build system works in this aspect including backporting them to your local copy of 1.3.2 which was released before I got involved.

Note that there is an issue with Foundation/include/Poco/Config.h - the makefile used to build MinGW has some preprocessor defines that pretty much negate the options in Config.h which is counter-intuitive. There is a reason this is like this, for now at least, but rather than address that topic in this response I will just point out the behavior.

HTH,
Chris Johnson
devcjohnson
 
Posts: 6
Joined: 19 Jul 2006, 23:06
Location: United_States

Re: Poco on MinGW (once again, but hopefully the last time)

Postby hersto » 13 Aug 2008, 22:35

> > Poco does not compile out of the box under MinGW. > I'd like to fix this, and have already succeeded with Foundation, Util and XML > in Poco 1.3.2.

> Through SVN, pull from trunk tip or the 1.3.3 branch.

arg, i though i could finally contribute something, and now it's already done....

Ok, next time...

i'm checking out the SVN now. It's comming with 7-8 KByte per sec....

Thanks, Herbert Stocker
hersto
 
Posts: 5
Joined: 18 Oct 2007, 12:42
Location: Germany


Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron