Menu

#19 mingw & msys support

open
nobody
None
5
2006-05-22
2006-05-22
No

Hi,

it would be nice to have official support of mingw
compilation on win32 using msys. The reason why I'm
interested in this is, that Trolltech Qt4 OpenSource
edition version is available only for mingw compilation
on windows platform and I'm using log4cpp in my Qt
project. This project is developed mainly on Linux, but
I would like to compile it also on windows.

I was able to compile log4cpp0.3.5rc3 with mingw&msys
using following steps:

1) run ./configure in MSYS

2) edit Makefile in src, remove -pedantic option from
g++ compiler options

3) edit Makefile in src, add _MINGW_ define

4) edit Portability.hh, change line
#if defined (_MSC_VER) || defined(__BORLANDC__)
to
#if defined (_MSC_VER) || defined(__BORLANDC__) ||
defined(_MINGW_)

5) in config-win32.h add following lines
#ifndef _GLIBCXX_USE_WCHAR_T
#define _GLIBCXX_USE_WCHAR_T
#endif

6) in config-win32.h comment out followng line
typedef int mode_t;

7) run make in MSYS

I used MinGW version 3.4.2 (installed automatically by
Qt4 installer) and MSYS version 1.0.11.

Zbynek Vrastil
zvrastil@seznam.cz

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.