Am 08.03.2016 um 22:20 schrieb Scott Kostyshak <skost...@lyx.org>:
> 
> On Mon, Mar 07, 2016 at 12:26:54PM -0500, Scott Kostyshak wrote:
>> On Mon, Mar 07, 2016 at 11:36:08AM +0100, Jean-Marc Lasgouttes wrote:
>>> Le 07/03/2016 06:14, Scott Kostyshak a écrit :
>>>> But setting --enable-monolithic-build to "no" leads to all of the
>>>> commands passing.
>>> 
>>> I would just advise to avoid this option for distcheck, then :) We do not
>>> have to test all possibilities here (the monolithic option is used for
>>> preparing the distribution, not for building it).
>> 
>> OK so I will just do make and make check for the non-standard
>> compilation tests.
> 
> I'm still curious whether someone also gets the error. There is an open
> question of whether the error results from a timing issue or autotools
> version (i.e. system specific) or whether we just haven't run the exact
> same commands when comparing results (for example, I had been using
> out-of-source builds). I'll paste the commands again below that result
> in an error for me:
> 
> ./autogen.sh &&
> ./configure --enable-build-type=pre --enable-monolithic-build=yes &&
> make &&
> make check &&
> make distcheck &&
> echo "all passed“

1. What’s the point of using --enable-monolithic-build=yes ?

I cannot compile LyX with it on Mac.

============================
  CXX      liblyxqt4.o
liblyxqt4.cpp:1:1: error: expected external declaration
-e 
^
liblyxqt4.cpp:1:2: error: unknown type name 'e'
-e 
 ^
In file included from liblyxqt4.cpp:2:
In file included from 
/Users/stephan/git/lyx/src/frontends/qt4/ButtonPolicy.cpp:13:
/Users/stephan/git/lyx/src/frontends/qt4/ButtonPolicy.h:18:1: error: expected 
unqualified-id
namespace lyx {
^
============================

2. make check fails because of missing rpath

==============================================
$ make  check-TESTS
FAIL: tests/test_convert
FAIL: tests/test_filetools
FAIL: tests/test_lstrings
FAIL: tests/test_trivstring
$ head src/support/test-suite.log
==============================================
   LyX 2.2.0dev: src/support/test-suite.log
==============================================

# TOTAL: 4
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  4
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/test_convert
========================

dyld: Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore
  Referenced from: 
/Users/stephan/git/lyx-build/LyX-2.2.0dev.build/src/support/./check_convert
  Reason: image not found
FAIL tests/test_convert (exit status: 1)
==============================================

3. make distcheck fails because of not using the configure parameters of 1st 
configure call.
  
==============================================
checking for Qt library name... failed
configure: error: cannot compile a simple Qt executable. Check you have the 
right $QTDIR.
make: *** [distcheck] Error 1
==============================================

This is with out-of-source builds.

Stephan

PS. Im not going to try it within the source directory.

Reply via email to