On Wed, Aug 22, 2018 at 08:26:48PM +0200, M.B. Schiekel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Hi all,
> 
> 1. when I'm doing a LyX 'configure' and 'make' with
>   ./configure --with-qt-dir=/usr/share/qt5/ --enable-qt5
>   make
> everything is fine and I get a LyX-2.3.0 executable.
> 
> 2. when I try to build a rpm-file with:
>   lyx.spec -> /usr/src/packages/SPECS/
>   lyx-2.3.0.tar.gz -> /usr/src/packages/SOURCES/
>   QTDIR=/usr/share/qt5/
>   rpmbuild -bb /usr/src/packages/SPECS/lyx.spec
> I get an error-message from the configure-script:
>   checking for Qt library name... failed
>   configure: error: cannot compile a simple Qt executable.
>   Check you have the right $QTDIR.
> 
> Hmm? Any idea?

Are you open to using CMake? I don't know much about CMake or about .rpm
files, but the following produces a .rpm for me:

  mkdir build_dir && cd build_dir &&
  cmake -DLYX_CPACK=ON -DCPACK_BINARY_RPM:BOOL=ON /path/to/lyx/source &&
  make &&
  make package

Note that I do get a minor warning with the above:

CPackRPM:Warning: CPACK_SET_DESTDIR is set (=ON) while requesting a relocatable 
package (CPACK_RPM_PACKAGE_RELOCATABLE is set): this is not supported
, the package won't be relocatable.

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to