Georg Baum <[EMAIL PROTECTED]> writes: > > Am Freitag, 10. Februar 2006 17:17 schrieb Enrico Forestieri: > > I am trying to compile a LyX/Cygwin with native Qt support (no X11). > > Why? Because of the linker problems of mingw?
Several reasons. Cygwin offers a posix compliant environment. It already has all the tools needed by LyX and they can be installed with no hassle. A LyX/Cygwin package can be installed by the standard cygwin setup.exe using pre- and post-install bourne shell scripts. There is a command line utility (regtool) by which you can easily manipulate the registry. I think that in the past a cygwin port was not considered an option by most people due to the fact that they would also need an X server (tons of Mb). [snip] > > With this patch I am able to see files and directories, but when > choosing > > a file I am presented with an empty document and the title bar shows > > something like "LyX:.../C:\work\test.lyx" hinting to a wrong path issue. > > > > I am not sure if this is a problem in LyX or in Qt and I am trying to > find > > my way in the src/support/os_... files. Packaging is posix, so may be I > am > > missing something from os_win32.C? > > Yes. AFAIK LyX does see unix style paths /x/y/z under cygwin, but you now > changed the file dialog so that it returns windows style paths. I think > that it would work if you translate the windows style path in > FileDialog::save etc. to a cygwin style path before returning. You maybe > need a mixture of os_cygwin.C and os_win32.C to do that. I found that the problem is to be solved in the Qt sources, see my other post. I am really pleased that it seems I have to patch nothing in the LyX sources ;-) Well... I had to manually add -DQ_CYGWIN_WIN to the defines in the Makefiles in src/frontends/qt2, but only because I didn't want to reconfigure. Is there a better way than adding that define to CXXFLAGS? After all it is only needed for the sources in qt2. Or, better, why not add it to the sources? Perhaps in config.h, something along the lines of #if defined(X_DISPLAY_MISSING) && defined(__CYGWIN__) #define Q_CYGWIN_WIN 1 #endif -- Enrico