Bo Peng a écrit :
> Yes. It also has some other improvement, like creating prefix
> directory, full locale/gettext support, and some cleaning of code.

Didn't you say you were having a week-end vacation? ;-)

Most of are done on last Friday, and I managed to test it a bit during
the weekend, without sacrificing playing time.

I had a crash of some gettex utils... So your test doesn't seem to work
on mingw.

The only thing I did was calling msgfmt on the po files. Can you do
this from command line?

D:\cygwin\home\yns\lyx\trunk\po>msgfmt bg.po

D:\cygwin\home\yns\lyx\trunk\po>msgfmt ca.po

D:\cygwin\home\yns\lyx\trunk\po>msgfmt cs.po

Seems to work...

Anyway, you only need to do 'scons ... qt4' to test the included moc files.

libqt4 was compiled successfully (and very quickly :-)) but I had a compiling error: g++ -o release\common\support\path.o -c -ID:\cygwin\home\yns\lyx\trunk\boost -ID:\cygwin\home\yns\lyx\trunk\src
 D:\cygwin\home\yns\lyx\trunk\src\support\path.C
D:\cygwin\home\yns\lyx\trunk\src\support\mkdir.C: In function `int lyx::support::mkdir(const std::string&, long unsigned int)': D:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/io.h:162: error: too many arguments to function `int mkdir(const char*)' D:\cygwin\home\yns\lyx\trunk\src\support\mkdir.C:38: error: at this point in file
scons: *** [release\common\support\mkdir.o] Error 1
scons: building terminated because of errors.

This is because HAVE_MKDIR is set to 1 in "config.h" did you change something WRT that?

The code in question is:

int lyx::support::mkdir(std::string const & pathname, unsigned long int mode)
{
        // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
#if HAVE_MKDIR
# if MKDIR_TAKES_ONE_ARG
        // MinGW32
        return ::mkdir(pathname.c_str());
# else
        // POSIX
        return ::mkdir(pathname.c_str(), mode_t(mode));
# endif
#elif defined(_WIN32)
        // plain Windows 32
        return CreateDirectory(pathname.c_str(), 0) != 0 ? 0 : -1;
#elif HAVE__MKDIR
        return ::_mkdir(pathname.c_str());
#else
#   error "Don't know how to create a directory on this system."
#endif
}



Bo


Reply via email to