compilation de lyx

2014-09-19 Par sujet Abdelkader Belahcene
Je travaille sur debian-like,
j 'essaie de compiler la version 2.1,
./configure me donne erreur :

checking for Qt 4 library name... failed
configure: error: cannot compile a simple Qt 4 executable. Check you
have the right $QT4DIR.


pourtant j ai installé  plus qu'il en faut
voila ce que donne par exemple
 dpkg-query -l | grep qt4


libpoppler-qt4-4   libqt4-core   libqt4-dbus  libqt4-declarative
libqt4-designer libqt4-dev   libqt4-dev-bin libqt4-help
libqt4-network libqt4-opengl  libqt4-opengl-dev  libqt4-qt3support
libqt4-script  libqt4-scripttools libqt4-sql
 libqt4-sql-mysql libqt4-svg libqt4-test  libqt4-xml
libqt4-xmlpatterns   python-qt4   qt4-default   qt4-linguist-tools
   qt4-qmake   qt4-qtconfig






meme la commande :

./configure  --with-qt4-libraries=/usr/lib/i386-linux-gnu/qt4

donne la meme erreur
quand je fais

ls -l /usr/lib/i386-linux-gnu/qt4
donne

drwxr-xr-x  2 root root 4096 sept. 19 09:54 bin
drwxr-xr-x 13 root root 4096 févr. 20  2013 plugins

apparemment il n y a pas  lib ???,  je ne comprends pas



Manque  t il quelque chose ??

merci pour l'aide


Re: compilation de lyx

2014-09-19 Par sujet Abdelkader Belahcene
bonjour,

voila le fichier config.log

merci

On 9/19/14, Jean-Marc Lasgouttes lasgout...@lyx.org wrote:
 Le 19/09/2014 11:59, Abdelkader Belahcene a écrit :
 Je travaille sur debian-like,
 j 'essaie de compiler la version 2.1,
 ./configure me donne erreur :

 checking for Qt 4 library name... failed
 configure: error: cannot compile a simple Qt 4 executable. Check you
 have the right $QT4DIR.

 Bonjour,

 Est-ce qu'on peut voir le fichier config.log?

 JMarc


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.1.1, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --with-qt4-libraries=/usr/lib/i386-linux-gnu/qt4

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

hostname = solydx
uname -m = i686
uname -r = 3.14-1-486
uname -s = Linux
uname -v = #1 Debian 3.14.12-1 (2014-07-11)

/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:2801: checking for build type
configure:2821: result: release
configure:2836: checking for version suffix
configure:2855: result: 
configure:2863: checking build system type
configure:2877: result: i686-pc-linux-gnu
configure:2897: checking host system type
configure:2910: result: i686-pc-linux-gnu
configure:2930: checking target system type
configure:2943: result: i686-pc-linux-gnu
configure:2969: checking what packaging should be used
configure:2984: result: posix
configure:3076: checking whether to enable maintainer-specific portions of Makefiles
configure:3085: result: no
configure:3116: checking for a BSD-compatible install
configure:3184: result: /usr/bin/install -c
configure:3195: checking whether build environment is sane
configure:3245: result: yes
configure:3386: checking for a thread-safe mkdir -p
configure:3425: result: /bin/mkdir -p
configure:3438: checking for gawk
configure:3454: found /usr/bin/gawk
configure:3465: result: gawk
configure:3476: checking whether make sets $(MAKE)
configure:3498: result: yes
configure:3580: checking whether make supports nested variables
configure:3597: result: yes
configure:3722: checking for a Python interpreter with version = 2.4.0
configure:3740: python -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.4.0'.split('.'))) + [0, 0, 0] minverhex = 0 maxverhex = 50331648 # = 3.0.0.0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex  8) + minver[i] sys.exit(sys.hexversion  minverhex or sys.hexversion = maxverhex)
configure:3743: $? = 0
configure:3749: result: python
configure:3757: checking for python
configure:3775: found /usr/bin/python
configure:3787: result: /usr/bin/python
configure:3805: checking for python version
configure:3812: result: 2.7
configure:3824: checking for python platform
configure:3831: result: linux2
configure:3838: checking for python script directory
configure:3866: result: ${prefix}/lib/python2.7/dist-packages
configure:3875: checking for python extension module directory
configure:3903: result: ${exec_prefix}/lib/python2.7/dist-packages
configure:3959: checking for ranlib
configure:3975: found /usr/bin/ranlib
configure:3986: result: ranlib
configure:4022: checking for style of include used by make
configure:4050: result: GNU
configure:4073: checking for a good enough C++ compiler
configure:4119: result: g++
configure:4234: checking for C++ compiler version
configure:4243: g++ --version 5
g++ (Debian 4.9.0-7) 4.9.0
Copyright (C) 2014 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:4254: $? = 0
configure:4243: g++ -v 5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-linux-gnu/4.9/lto-wrapper
Target: i586-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.0-7' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin 

compilation de lyx

2014-09-19 Par sujet Abdelkader Belahcene
Je travaille sur debian-like,
j 'essaie de compiler la version 2.1,
./configure me donne erreur :

checking for Qt 4 library name... failed
configure: error: cannot compile a simple Qt 4 executable. Check you
have the right $QT4DIR.


pourtant j ai installé  plus qu'il en faut
voila ce que donne par exemple
 dpkg-query -l | grep qt4


libpoppler-qt4-4   libqt4-core   libqt4-dbus  libqt4-declarative
libqt4-designer libqt4-dev   libqt4-dev-bin libqt4-help
libqt4-network libqt4-opengl  libqt4-opengl-dev  libqt4-qt3support
libqt4-script  libqt4-scripttools libqt4-sql
 libqt4-sql-mysql libqt4-svg libqt4-test  libqt4-xml
libqt4-xmlpatterns   python-qt4   qt4-default   qt4-linguist-tools
   qt4-qmake   qt4-qtconfig






meme la commande :

./configure  --with-qt4-libraries=/usr/lib/i386-linux-gnu/qt4

donne la meme erreur
quand je fais

ls -l /usr/lib/i386-linux-gnu/qt4
donne

drwxr-xr-x  2 root root 4096 sept. 19 09:54 bin
drwxr-xr-x 13 root root 4096 févr. 20  2013 plugins

apparemment il n y a pas  lib ???,  je ne comprends pas



Manque  t il quelque chose ??

merci pour l'aide


Re: compilation de lyx

2014-09-19 Par sujet Abdelkader Belahcene
bonjour,

voila le fichier config.log

merci

On 9/19/14, Jean-Marc Lasgouttes  wrote:
> Le 19/09/2014 11:59, Abdelkader Belahcene a écrit :
>> Je travaille sur debian-like,
>> j 'essaie de compiler la version 2.1,
>> ./configure me donne erreur :
>>
>> checking for Qt 4 library name... failed
>> configure: error: cannot compile a simple Qt 4 executable. Check you
>> have the right $QT4DIR.
>
> Bonjour,
>
> Est-ce qu'on peut voir le fichier config.log?
>
> JMarc
>
>
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.1.1, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --with-qt4-libraries=/usr/lib/i386-linux-gnu/qt4

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

hostname = solydx
uname -m = i686
uname -r = 3.14-1-486
uname -s = Linux
uname -v = #1 Debian 3.14.12-1 (2014-07-11)

/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:2801: checking for build type
configure:2821: result: release
configure:2836: checking for version suffix
configure:2855: result: 
configure:2863: checking build system type
configure:2877: result: i686-pc-linux-gnu
configure:2897: checking host system type
configure:2910: result: i686-pc-linux-gnu
configure:2930: checking target system type
configure:2943: result: i686-pc-linux-gnu
configure:2969: checking what packaging should be used
configure:2984: result: posix
configure:3076: checking whether to enable maintainer-specific portions of Makefiles
configure:3085: result: no
configure:3116: checking for a BSD-compatible install
configure:3184: result: /usr/bin/install -c
configure:3195: checking whether build environment is sane
configure:3245: result: yes
configure:3386: checking for a thread-safe mkdir -p
configure:3425: result: /bin/mkdir -p
configure:3438: checking for gawk
configure:3454: found /usr/bin/gawk
configure:3465: result: gawk
configure:3476: checking whether make sets $(MAKE)
configure:3498: result: yes
configure:3580: checking whether make supports nested variables
configure:3597: result: yes
configure:3722: checking for a Python interpreter with version >= 2.4.0
configure:3740: python -c import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.4.0'.split('.'))) + [0, 0, 0] minverhex = 0 maxverhex = 50331648 # = 3.0.0.0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex or sys.hexversion >= maxverhex)
configure:3743: $? = 0
configure:3749: result: python
configure:3757: checking for python
configure:3775: found /usr/bin/python
configure:3787: result: /usr/bin/python
configure:3805: checking for python version
configure:3812: result: 2.7
configure:3824: checking for python platform
configure:3831: result: linux2
configure:3838: checking for python script directory
configure:3866: result: ${prefix}/lib/python2.7/dist-packages
configure:3875: checking for python extension module directory
configure:3903: result: ${exec_prefix}/lib/python2.7/dist-packages
configure:3959: checking for ranlib
configure:3975: found /usr/bin/ranlib
configure:3986: result: ranlib
configure:4022: checking for style of include used by make
configure:4050: result: GNU
configure:4073: checking for a good enough C++ compiler
configure:4119: result: g++
configure:4234: checking for C++ compiler version
configure:4243: g++ --version >&5
g++ (Debian 4.9.0-7) 4.9.0
Copyright (C) 2014 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:4254: $? = 0
configure:4243: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-linux-gnu/4.9/lto-wrapper
Target: i586-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.0-7' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object 

Re: compilation de lyx

2014-09-19 Par sujet Jean-Marc Lasgouttes

Le 19/09/2014 21:06, Abdelkader Belahcene a écrit :

Ah oui oui
merci beaucoup J.Marc, tu es formidable.


Il faut dire que c'est moi qui gère ce script de configuration. De temps 
en temps j'essaie de l'améliorer pour que tout marche tout seul mais 
qu'on en est loin.



Tu peux me dire alors le role  pkg-config ?


C'est un système centralisé qui permet à chaque librairie de décrire ses 
dépendances.


Par exemple, si je veux savoir quelles librairies sont nécessaires pour 
compiler un programme GUI Qt, je fais

  pkg-config --libs QtGui
qui me retourne
  -lQtGui -lQtCore

En théorie, tu n'aurais pas dû avoir besoin de ça. On dirait que les 
fichiers d'entête (par ex. qglobal.h) ne sont pas dans un endroit 
standard ou que mon script ne fonctionne pas bien.


Bonne soirée.

JMarc