Re: Lyx3.2 and QT5 configure error [Solved]

2018-03-21 Thread Gilles Mioni

Thanks to Pavel Sanda and Kornel Benko for their good advices.


Re: Lyx3.2 and QT5 configure error

2018-03-21 Thread Pavel Sanda
Gilles Mioni wrote:
> I tried to compile lyx 2.3 on linux Debian buster amd64
> I launched : ./configure --enable-qt5 --with-qt-dir=/usr/lib/qt5/
> I obtained the message :
> checking for Qt library name... failed
> configure: error: cannot compile a simple Qt executable. Check you have the 
> right $QTDIR.
>
> Any idea ?

It is good idea to run
apt-get build-dep lyx
to get all needed dependencies when compiling in debian.

https://wiki.lyx.org/LyX/LyXOnDebian

Pavel


Re: Lyx3.2 and QT5 configure error

2018-03-21 Thread Kornel Benko
Am Mittwoch, 21. März 2018 14:19:39 CET schrieb Gilles Mioni 
:
> Gilles Mioni wrote:
> > I tried to compile lyx 2.3 on linux Debian buster amd64
> > I launched : ./configure --enable-qt5 --with-qt-dir=/usr/lib/qt5/
> > I obtained the message :
> > checking for Qt library name... failed
> > configure: error: cannot compile a simple Qt executable. Check you 
> > have the right $QTDIR.
> > 
> > Any idea ?
> > Thanks for help
> 
> I join config.log

1.) you need the package libqt5x11extras5-dev
2.) also the package libqt5svg5-dev
3.) libice-dev # probably you need only libice6 here
4.) qtbase5-dev

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: Lyx3.2 and QT5 configure error

2018-03-21 Thread Gilles Mioni

Gilles Mioni wrote:

I tried to compile lyx 2.3 on linux Debian buster amd64
I launched : ./configure --enable-qt5 --with-qt-dir=/usr/lib/qt5/
I obtained the message :
checking for Qt library name... failed
configure: error: cannot compile a simple Qt executable. Check you 
have the right $QTDIR.


Any idea ?
Thanks for help


I join config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by LyX configure 2.3.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --enable-qt5 --with-qt-dir=/usr/lib/qt5/

## - ##
## Platform. ##
## - ##

hostname = chaos
uname -m = x86_64
uname -r = 4.14.0-3-amd64
uname -s = Linux
uname -v = #1 SMP Debian 4.14.17-1 (2018-02-14)

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


## --- ##
## Core tests. ##
## --- ##

configure:2903: checking for build type
configure:2921: result: release
configure:2933: checking for version suffix
configure:2952: result: 
configure:2956: checking whether Qt5 is requested
configure:2965: result: yes
configure:2974: checking build system type
configure:2988: result: x86_64-pc-linux-gnu
configure:3008: checking host system type
configure:3021: result: x86_64-pc-linux-gnu
configure:3041: checking target system type
configure:3054: result: x86_64-pc-linux-gnu
configure:3080: checking what packaging should be used
configure:3097: result: posix
configure:3197: checking whether to enable maintainer-specific portions of Makefiles
configure:3206: result: no
configure:3230: checking whether make supports nested variables
configure:3247: result: yes
configure:3278: checking for a BSD-compatible install
configure:3346: result: /usr/bin/install -c
configure:3357: checking whether build environment is sane
configure:3412: result: yes
configure:3563: checking for a thread-safe mkdir -p
configure:3602: result: /bin/mkdir -p
configure:3609: checking for gawk
configure:3625: found /usr/bin/gawk
configure:3636: result: gawk
configure:3647: checking whether make sets $(MAKE)
configure:3669: result: yes
configure:3756: checking whether UID '0' is supported by ustar format
configure:3759: result: yes
configure:3766: checking whether GID '0' is supported by ustar format
configure:3769: result: yes
configure:3777: checking how to create a ustar tar archive
configure:3788: tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:3791: $? = 0
configure:3831: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:3834: $? = 0
configure:3838: tar -xf - = 2.7.0 or 3.3.0
configure:4030: python -c import sys version = sys.version_info[:3] sys.exit(not ((2,7,0) <= version < (3,0,0) or version >= (3,3,0)))
configure:4033: $? = 0
configure:4039: result: python
configure:4047: checking for python
configure:4065: found /usr/bin/python
configure:4077: result: /usr/bin/python
configure:4157: checking for python version
configure:4164: result: 2.7
configure:4176: checking for python platform
configure:4183: result: linux2
configure:4209: checking for python script directory
configure:4244: result: ${prefix}/lib/python2.7/dist-packages
configure:4253: checking for python extension module directory
configure:4288: result: ${exec_prefix}/lib/python2.7/dist-packages
configure:4315: checking for style of include used by make
configure:4343: result: GNU
configure:4414: checking for gcc
configure:4430: found /usr/bin/gcc
configure:4441: result: gcc
configure:4670: checking for C compiler version
configure:4679: gcc --version >&5
gcc (Debian 7.3.0-11) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4690: $? = 0
configure:4679: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 7.3.0-11' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enabl

Lyx3.2 and QT5 configure error

2018-03-21 Thread Gilles Mioni

I tried to compile lyx 2.3 on linux Debian buster amd64
I launched : ./configure --enable-qt5 --with-qt-dir=/usr/lib/qt5/
I obtained the message :
checking for Qt library name... failed
configure: error: cannot compile a simple Qt executable. Check you have 
the right $QTDIR.


Any idea ?
Thanks for help