Bonjour!

Je tiens à vous préciser tout d'abord que ma compétence Linuxienne n'a guère évoluée depuis 2007... (date de mon dernier post!) Moi non plus, je n'ai pas changé: je me lance toujours dans des projets que je n'arrive pas à conduire à leurs termes!

je vous explique: je tente d'installer Qastrocam-g2, un prog dédié à l'astrophotographie (capture webcam pour moi) http://thx8411.over-blog.com/ext/http://sourceforge.net/projects/qastrocam-g2/

Ce prog n'est pas dans les dépôts classiques de F14, alors le gros noob que je suis a tenté de compiler ce programme... mode M6: ...et c'est là que la soirée tourne au drame...
J'ai DL les sources sur sourceforge, dans la doc j'ai vu les librairies indispensables (deb) et j'ai tenté d'installer les equivalents pour F14 (yum et rpm externes...)
Dans le repertoire où j'ai décompresser les sources j'ai fait un "make", on m'a demandé d'éditer un fichier Makefile.arch, ce que j'ai fait comme j'ai pu (car Qastrocam nécessite qt3 et j'ai qt3 et qt4 d'installés, jonglage dans les adresses pointant vers les librairies de Qt)
# Qastrocam
# Copyright (C) 2003-2009   Franck Sicard
# Qastrocam-g2
# Copyright (C) 2009-2010   Blaise-Florentin Collin

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License v2
# as published by the Free Software Foundation.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA  02110-1301, USA.

show-avaible-arch:
    @echo "*******************************"
    @echo "*******************************"
    @echo "*******************************"
    @echo
    @echo "run '$(MAKE)' on one the following target to configure"
    @echo "the build for you system (it should be done only once):"
    @echo "  configure-debian"
    @echo "  configure-debian-mt"
    @echo "  configure-ubuntu"
    @echo "  configure-redhat"
    @echo "  configure-redhat-mt"
    @echo "  configure-redhat-fedoracore6"
    @echo "  configure-redhat-fedoracore6-mt"
    @echo "  configure-mandrake"
    @echo "  configure-mandrake-mt"
    @echo "  configure-mandriva"
    @echo "  configure-mandriva-mt"
    @echo "  configure-slackware"
    @echo "  configure-slackware-mt"
    @echo "  configure-gentoo"
    @echo "  configure-gentoo-mt"
    @echo
    @echo "then run '$(MAKE) all'"
    @echo
    @echo "if your distribution is not show, you must edit Makefile.arch"
    @echo "to add an entry for it."
    @echo "to do so copy the entry 'configure-generic', rename it and "
    @echo "in this new entry you will need to set the following variables:"
    @echo "   MOC (full path to the moc binary)"
    @echo "   QT_INC_DIR (full path to the directory that contains qwidget.h)"
    @echo "   QT_LIB_DIR (full path to the directory that contains QT libraries)"
    @echo "   QT_LIBS ( the libs needed to do the link (usualy -lqt or -lqt-mt))"
    @echo ""
    @echo "   CFITSIO_LINK (the link command needed to link cfitsio (path + lib))"
    @echo "   CFITSIO_INC (full path to the directory that contains cfitsio.h)"
    @echo "then please send by email the new entry"
    @echo
    @echo "*******************************"
    @echo "*******************************"
    @echo "*******************************"
    @exit 1

configure-generic: configure
    MOC=$(QT_BASE)/bin/moc QT_INC_DIR=$(QT_BASE)/include QT_LIB_DIR=$(QT_BASE)/lib QT_LIBS=-lqt$(QT_MT) CFITSIO_INC="-I $(CFITSIO_BASE)/include" CFITSIO_LINK="-L $(CFITSIO_BASE)/lib -lcfitsio" ./configure --prefix=/usr 
    touch configure_done

#debian
configure-debian: configure
    $(MAKE) configure-generic QT_BASE=/usr/share/qt3 -I/usr/include CFITSIO_BASE=/usr
configure-debian-mt: configure
    $(MAKE) configure-generic QT_MT=-mt QT_BASE=/usr/share/qt3 CFITSIO_BASE=/usr
#ubuntu
configure-ubuntu:
    $(MAKE) configure-debian-mt
    
#redhat, mandrake and mandiva
configure-redhat configure-mandrake configure-mandriva: configure
    $(MAKE) configure-generic QT_BASE=/usr/lib/qt3 CFITSIO_BASE=/usr
configure-redhat-mt configure-mandrake-mt configure-mandriva-mt: configure
    $(MAKE) configure-generic QT_MT=-mt QT_BASE=/usr/lib/qt3 CFITSIO_BASE=/usr

#redhat fedora core 6
configure-redhat-fedoracore6: configure
    QT_BASE=/usr/lib/qt3 CFITSIO_BASE=/usr
    MOC=/usr/lib/qt3/bin/moc QT_INC_DIR=/usr/lib/qt3/include QT_LIB_DIR=/usr/lib/qt3/lib QT_LIBS=-lqt CFITSIO_INC="-I /usr/include/cfitsio" CFITSIO_LINK="-lcfitsio" ./configure 
configure-redhat-fedoracore6-mt: configure
    MOC=/usr/lib/qt3/bin/moc QT_INC_DIR=/usr/lib/qt3/include QT_LIB_DIR=/usr/lib/qt3/lib QT_LIBS=-lqt-mt CFITSIO_INC="-I /usr/include/cfitsio" CFITSIO_LINK="-lcfitsio" ./configure 

#Slackware
configure-slackware: configure
    $(MAKE) configure-generic QT_BASE=/usr/lib/qt CFITSIO_BASE=/usr
configure-slackware-mt: configure
    $(MAKE) configure-generic QT_MT=-mt QT_BASE=/usr/lib/qt CFITSIO_BASE=/usr

#gentoo
configure-gentoo: configure
    $(MAKE) configure-generic QT_BASE=/usr/qt/3 CFITSIO_BASE=/usr
configure-gentoo-mt: configure
    $(MAKE) configure-generic QT_MT=-mt QT_BASE=/usr/qt/3 CFITSIO_BASE=/usr

#fedora 14
configure-fedora14: configure
    QT_BASE=/usr/lib64/qt4 CFITSIO_BASE=/usr
    MOC=/usr/lib64/qt4/lib/moc QT_INC_DIR=/usr/include/Qt QT_LIB_DIR=/usr/lib64/qt-3.3/lib QT_LIBS=-lqt-mt CFITSIO_INC="-I /usr/include/cfitsio" CFITSIO_LINK="-lcfitsio" ./configure
Ensuite j'ai fait un "make configure-fedora14" pour pouvoir utiliser le fichier nouvellement édité, procédure qui n'allait pas au bout car elle ne trouvait pas certaines librairies, mais une copie et renommage d'un répertoire des lib de qwtplot3d en qwtplot3d-qt3 (..hum hum...) ont "résolu" le problème, jusque là tout allait bien... bien que je fasse ça à l'instinct, sans vraiment maîtriser ce que je fais.
J'ai ensuite essayé de faire un ./configure (mais pourquoi?) et là...
configure: error: in `/home/Gwen/Téléchargements/qastrocam-g2':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
le fichier config.log en question me rapporte:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Qastrocam-g2 configure 3.6, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  $ ./configure 

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

hostname = gwen
uname -m = x86_64
uname -r = 2.6.35.12-88.fc14.x86_64
uname -s = Linux
uname -v = #1 SMP Thu Mar 31 21:21:57 UTC 2011

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

/bin/arch              = x86_64
/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/lib64/qt-3.3/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /home/Gwen/bin


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

configure:1976: checking for g++
configure:1992: found /usr/bin/g++
configure:2003: result: g++
configure:2018: checking for gcc
configure:2034: found /usr/bin/gcc
configure:2045: result: gcc
configure:2098: checking build system type
configure:2112: result: x86_64-unknown-linux-gnu
configure:2132: checking host system type
configure:2145: result: x86_64-unknown-linux-gnu
configure:2309: checking for C++ compiler version
configure:2318: g++ --version >&5
g++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Copyright (C) 2010 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:2329: $? = 0
configure:2318: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.5.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) 
configure:2329: $? = 0
configure:2318: g++ -V >&5
g++: '-V' option must have argument
configure:2329: $? = 1
configure:2318: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:2329: $? = 1
configure:2349: checking whether the C++ compiler works
configure:2371: g++  -I   -I   conftest.cpp  >&5
configure:2375: $? = 0
configure:2423: result: yes
configure:2426: checking for C++ compiler default output file name
configure:2428: result: a.out
configure:2434: checking for suffix of executables
configure:2441: g++ -o conftest  -I   -I   conftest.cpp  >&5
configure:2445: $? = 0
configure:2467: result: 
configure:2489: checking whether we are cross compiling
configure:2497: g++ -o conftest  -I   -I   conftest.cpp  >&5
configure:2501: $? = 0
configure:2508: ./conftest
configure:2512: $? = 0
configure:2527: result: no
configure:2532: checking for suffix of object files
configure:2554: g++ -c  -I   -I  conftest.cpp >&5
configure:2558: $? = 0
configure:2579: result: o
configure:2583: checking whether we are using the GNU C++ compiler
configure:2602: g++ -c  -I   -I  conftest.cpp >&5
configure:2602: $? = 0
configure:2611: result: yes
configure:2620: checking whether g++ accepts -g
configure:2640: g++ -c -g  -I  conftest.cpp >&5
g++: no input files
configure:2640: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2655: g++ -c   -I  conftest.cpp >&5
g++: no input files
configure:2655: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2671: g++ -c -g  -I  conftest.cpp >&5
g++: no input files
configure:2671: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2681: result: no
configure:2710: checking how to run the C++ preprocessor
configure:2737: g++ -E  -I  conftest.cpp
g++: no input files
configure:2737: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|              Syntax error
configure:2737: g++ -E  -I  conftest.cpp
g++: no input files
configure:2737: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|              Syntax error
configure:2737: /lib/cpp  -I  conftest.cpp
cc1: error: conftest.cpp: not a directory
configure:2737: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|              Syntax error
configure:2737: /lib/cpp  -I  conftest.cpp
cc1: error: conftest.cpp: not a directory
configure:2737: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|              Syntax error
configure:2776: result: /lib/cpp
configure:2796: /lib/cpp  -I  conftest.cpp
cc1: error: conftest.cpp: not a directory
configure:2796: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|              Syntax error
configure:2796: /lib/cpp  -I  conftest.cpp
cc1: error: conftest.cpp: not a directory
configure:2796: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Qastrocam-g2"
| #define PACKAGE_TARNAME "qastrocam-g2"
| #define PACKAGE_VERSION "3.6"
| #define PACKAGE_STRING "Qastrocam-g2 3.6"
| #define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|              Syntax error
configure:2826: error: in `/home/Gwen/Téléchargements/qastrocam-g2':
configure:2828: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_objext=o
ac_cv_prog_CC=gcc
ac_cv_prog_CXX=g++
ac_cv_prog_CXXCPP=/lib/cpp
ac_cv_prog_cxx_g=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

ARCHTYPE='x86_64'
AVICONFIG=''
CC='gcc'
CFITSIO_INC=''
CFITSIO_LINK=''
CPPFLAGS=' -I '
CXX='g++'
CXXCPP='/lib/cpp'
CXXFLAGS=' -I '
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MOC=''
OBJEXT='o'
PACKAGE_BUGREPORT='thx8411@users.sourceforge.net'
PACKAGE_NAME='Qastrocam-g2'
PACKAGE_STRING='Qastrocam-g2 3.6'
PACKAGE_TARNAME='qastrocam-g2'
PACKAGE_URL=''
PACKAGE_VERSION='3.6'
PATH_SEPARATOR=':'
QT_INC_DIR=''
QT_LIBS=''
QT_LIB_DIR=''
SDLCONFIG=''
SHELL='/bin/sh'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Qastrocam-g2"
#define PACKAGE_TARNAME "qastrocam-g2"
#define PACKAGE_VERSION "3.6"
#define PACKAGE_STRING "Qastrocam-g2 3.6"
#define PACKAGE_BUGREPORT "thx8411@users.sourceforge.net"
#define PACKAGE_URL ""

configure: exit 1

De ce que j'en comprends, g++ ne trouve pas le fichier "conftest.cpp"... moi non plus!! c'est mon installation de gcc ou g++ qui est foireuse?
Et là je ne sais plus quoi faire... si un Linuxien confirmé passe par là pour me dire que je suis un gros bourrin et que je n'ai que ce que je mérite, ben je serais bien d'accord avec lui! (je ne sais même pas comment doit se dérouler une compil qui va jusqu'au bout!)

Merci de m'avoir lu!
Bon, je m'en suis sorti plus ou moins seul...

Si des futurs utilisateurs du logiciels passent par là, il n'y avait pas besoin de faire un "./configure", c'est le "make configure-fc14" qui s'en charge, à la condition d'avoir correctement édité le Makefile.arch.

Cependant une des bibliothèques nécessaires n'est pas totalement la même et ne s'installe pas de la même façon selon que ce soit un paquet Deb ou RPM (qwtplot3d-qt3-dev pour le deb et qwtplot3d-devel pour le rpm). Du coup pas de problème pour la compilation à proprement parlé, mais le programme n'arrive pas à linker cette bibliothèque...
Dommage, le programme (que j'ai testé sur ubuntu (live cd)) correspondait parfaitement à mes besoins...

Au moins j'y vois un peu plus clair dans les procédés de compilation...