On 8/8/20 7:18 PM, Kornel Benko wrote: > Am Sat, 8 Aug 2020 18:59:43 -0400 > schrieb Richard Kimberly Heck <rikih...@lyx.org>: > >> On 8/8/20 3:10 PM, Scott Kostyshak wrote: >>> On Sat, Aug 08, 2020 at 07:31:44AM +0200, Kornel Benko wrote: >>>> Am Sat, 8 Aug 2020 00:33:47 -0400 >>>> schrieb Richard Kimberly Heck <rikih...@lyx.org>: >>>> >>>>> On Linux: >>>>> >>>>> ./autogen.sh >>>>> mkdir build >>>>> cd build >>>>> make -j4 >>>>> sudo make install >>>>> >>>>> CMake Error at po/cmake_install.cmake:45 (file): >>>>> file INSTALL cannot find "/cvs/lyx/lyx-pristine/build/po/ar.gmo": No >>>>> such >>>>> file or directory. >>>>> >>>>> The gmo files are not at /cvs/lyx/lyx-pristine/build/po/ but at >>>>> /cvs/lyx/lyx-pristine/po/. >>>>> >>>>> Riki >>>>> >>>>> >>>> I don't get it. >>>> ./autogen.sh is for automake, how is it cmake related? >> Just ignore that then. >> >>> Also, it would be helpful to know if you can reproduce the problem with >>> an out-of-source build. From what I understand, building inside the >>> source directory is discouraged for both CMake and Automake. >> Same error. >> >> Riki >> > As I understand, there are 3 possibilities > 1.) 'gettext' is found. In this case the .gmo files are created > in /cvs/lyx/lyx-pristine/build/po. But maybe not with 'sudo make install", > because this changes the PATH. > You have to use 'make all; sudo make install' > or 'make package; sudo make install' > 2.) if 'gettext' is not found, then the provided .gmo files from > /cvs/lyx/lyx-pristine/po > are copied into /cvs/lyx/lyx-pristine/build/po. > 3.) The cmake is called without '-DLYX_NLS=ON' > In this case no gmo files are created or copied. This seems to be the case > here. > Calling 'cmake -DLYX_INSTALL=ON' is probaly the best choice, because then the > LYX_NLS is > set automatically. > So, if one wants to use 'make install' one has to configure it accordingly.
Sorry, I omitted the cmake step. Here's what I did this time: mkdir build/ # from the LyX directory cd build/ cmake .. make sudo make install This used to work just fine but now doesn't. If instead I do: cmake -DLYX_NLS=ON .. then the gmo files are created, as you said. But, as I said, I did not need to do that previously, I don't think. Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel