Enrico,
I would appreciate feedback from Cmake and Scons users as I don't know
whether the patches for these build systems (that I incorporated from
other commits in trunk) actually work.

Index: development/cmake/src/insets/CMakeLists.txt
===================================================================
--- development/cmake/src/insets/CMakeLists.txt (revision 31314)
+++ development/cmake/src/insets/CMakeLists.txt (working copy)
@@ -13,7 +13,7 @@ list(REMOVE_ITEM insets_sources ${TOP_SR
lyx_add_msvc_pch(insets) -include_directories(${TOP_SRC_DIR}/src/insets)
+include_directories(${TOP_SRC_DIR}/src/insets ${QT_INCLUDES})
if(NOT MERGE_FILES)

This is not necessary.

Index: development/cmake/src/CMakeLists.txt
===================================================================
--- development/cmake/src/CMakeLists.txt        (revision 31314)
+++ development/cmake/src/CMakeLists.txt        (working copy)
@@ -34,8 +34,10 @@ if (ASPELL_FOUND)
        set(lyx_sources ${lyx_sources} ${TOP_SRC_DIR}/src/ASpell.cpp)
 endif()
+lyx_automoc(${TOP_SRC_DIR}/src/Server.cpp)
+
 include_directories(${CMAKE_CURRENT_BINARY_DIR}
-       ${ZLIB_INCLUDE_DIR})
+       ${ZLIB_INCLUDE_DIR}) ${QT_INCLUDES})
lyx_add_msvc_pch(lyx)
-       ${ZLIB_INCLUDE_DIR}) ${QT_INCLUDES})
+       ${ZLIB_INCLUDE_DIR} ${QT_INCLUDES})

One ) too much.

You don't need Cygwin to test it.

1. Use "\\.\pipe\lyxpipe" (without quotes) as the LyXserver pipe path
   in the preferences.
2. Quit and restart LyX.
3. In a cmd.exe terminal type
     echo LYXCMD:test:file-open> \\.\pipe\lyxpipe.in
     type \\.\pipe\lyxpipe.out

If the file dialog opens, it works.
This doesn't work. I get an error message: "LyXComm: The parameter is invalid", 
or ERROR_INVALID_PARAMETER in server....@294.

If I do the following it works (but it'll not be the correct fix, but you know 
at least that it works in this case):

server....@280--282:
   success = ReadFile(pipe_[i].handle,
       pipe_[i].readbuf, PIPE_BUFSIZE - 1,
+       &pipe_[i].nbytes, &pipe_[i].overlap);
-       &pipe_[i].nbytes, NULL);


Vincent




Vincent

Reply via email to