This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building Poco for Cygwin (was: Re: Cannot fork process for: g++: cygPocoFoundation.32.dll: Loaded to different address)


Hi Francis.

If you're still keen to build Poco for Cygwin yourself, then it's probably worth looking at the patches and compiler settings that I use, as you may want to make use of them. Download the source, either using Cygwin's setup.exe or directly from a mirror [1], and unpack. The 'poco.cygport' file is used for building; it has bash-like syntax. There should be four patch files, each with the '.patch' extension.

The most important thing is to build using the '-frepo' compiler flag when building Poco. This fixes a truly horrible crash when Poco's wide character strings are passed across a DLL boundary. This works at the expense of slowing the build somewhat. I wrote this up on a Poco GitHub ticket [2].

Cygwin's Poco is built unbundled, i.e. it uses the system zlib, pcre, etc. There are a couple of patches to support this. There is also a patch to fix 'testDequeue', as this test tries to compare two internal clocks of different accuracy, which fails randomly on Cygwin. The final patch gets Data/ODBC building with the iODBC library.

There are some notes towards the end of the 'poco.cygport' file about running the testsuite, and you might find these useful.

Hope this helps.

Dave.

[1] - https://www.mirrorservice.org/sites/sourceware.org/pub/cygwin/x86/release/poco/poco-1.6.1-1-src.tar.xz
[2] - https://github.com/pocoproject/poco/issues/723#issuecomment-93853102


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]