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.

        Kornel


Attachment: pgpif6oZFc4Lo.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to