Automake configuration with '--with-included-iconv'

Kornel Benko kornel at lyx.org
Wed Nov 18 16:17:43 UTC 2020


Am Wed, 18 Nov 2020 16:45:34 +0100
schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:

> Le 18/11/2020 à 16:00, Kornel Benko a écrit :
> > Yes, compilable with cmake. For convenience of the automake users I tried to compile
> > with automake and failed.  
> 
> Reading commit log of 08afc52c4cc, I see that it is not supposed to work 
> with Linux. I am wary of tweaking it, because all this looks pretty 
> fragile and the gain is minimal at best.
> 
> JMarc

Still it works witch cmake. (The message claims: "Should not be used on Linux", but of
course it might)

The problems starts with the compilation of localcharset.c, plenty of warnings
(-Wunused-parameter)

The first error is
/usr2/src/lyx/lyx-test/3rdparty/libiconv/1.15/libcharset/lib/localcharset.c:77:38: error:
expected expression before ‘)’ token # define relocate(pathname) (pathname)

Apparently ENABLE_RELOCATABLE is not defined.
Checking the preprocessed in cmake, "ENABLE_RELOCATABLE 1" is done at command line
...
#define __ELF__ 1
#define __DECIMAL_BID_FORMAT__ 1
# 1 "<command-line>"
#define BUILDING_LIBCHARSET 1
#define ENABLE_RELOCATABLE 1
#define HAVE_CONFIG_H 1
...

	Kornel
                                ^

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20201118/0d4179a5/attachment.asc>


More information about the lyx-devel mailing list