Abdelrazak Younes wrote:
> Hello Kornel,
> 
> I got this each time I compile under windows:
> 
> 11>Génération de code en cours...
> 12>C:\devel\lyx-deps\bin\xgettext.exe: erreur lors de l'ouverture de ½
> Developers' ╗ en lecture: No such file or directory
> 12>Project : error PRJ0019: Un outil a retourné un code d'erreur à
> partir de "Generating LyX.pot"
> 
> I attach my CMakeCache.txt in case it could help.
> 
> Abdel.
> 


Same here without attached patch.
Seems msvc doesn't like 'LyX Developers' in its custum build rules.

Someone should apply the patch, I've no write access atm.

Peter
Index: development/cmake/po/CMakeLists.txt
===================================================================
--- development/cmake/po/CMakeLists.txt (revision 29504)
+++ development/cmake/po/CMakeLists.txt (working copy)
@@ -79,7 +79,7 @@
     OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
     COMMAND ${CMAKE_COMMAND} -E copy 
"${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" 
"${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
     COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE}
-    ARGS --default-domain=${_lyxname} --directory=${TOP_SRC_DIR} 
--add-comments=TRANSLATORS: --language=C++ --join-existing --keyword=_ 
--keyword=N_ --keyword=B_ --keyword=qt_ 
--files-from="${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in" --copyright-holder='LyX 
Developers' --msgid-bugs-address=lyx-de...@lists.lyx.org -o 
"${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
+    ARGS --default-domain=${_lyxname} --directory=${TOP_SRC_DIR} 
--add-comments=TRANSLATORS: --language=C++ --join-existing --keyword=_ 
--keyword=N_ --keyword=B_ --keyword=qt_ 
--files-from="${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in" --copyright-holder="LyX 
Developers" --msgid-bugs-address=lyx-de...@lists.lyx.org -o 
"${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
     DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" ${_potfiles_dep}
     )
 
Index: src/support/Systemcall.cpp
===================================================================
--- src/support/Systemcall.cpp  (revision 29504)
+++ src/support/Systemcall.cpp  (working copy)
@@ -18,6 +18,9 @@
 
 #include <cstdlib>
 
+#include <QDebug>
+#include <QProcess>
+
 using namespace std;
 
 namespace lyx {
@@ -39,6 +42,15 @@
                }
        }
 
+#define EVALUATE_QPROCESS
+#ifdef EVALUATE_QPROCESS
+       QString cmd = QString::fromLocal8Bit(command.c_str());
+       QProcess process;
+       process.start(cmd);
+       process.waitForFinished();
+       return process.exitCode();
+#endif
+
        return ::system(command.c_str());
 }
 

Reply via email to