Depuis quelques jours je me prend bien la tête pour compiler wsjt sur ubuntu 9.10.
Suite à mes galères, voila quelques manip que j'ai du effectuer pour arriver à mes fins :
- Télécharger le dernier wsjt (je n'ai pas pris celui du svn..). Le site de WSJT
- installer les dépendances préconisées (normal non ?)
- Installer le compilateur G95 (pas dans le dépot standard) => le site du g95 project ou directement le packet debian dans le répertoire de téléchargement.
- faire un ./configure; make... la ça doit planter avec : "make: *** [WsjtMod/Audio.so] Erreur 1". Renommer alors le fichier "stdint.h" en "stdint.h.ori" .(probleme avec include.h)
- Le script de lancement étant buggué, lancer directement wsjt : "#python wsjt.py" dans le répertoire du package.
- En utilisant la carte son default ou /dev/dsp pas d'erreur mais rien ne se passe... le problème vient du sample rate. Le plus simple et de pointer directement vers le hardware dasn les options. Nous avons alors une erreur de ce type : Erreur sample rate : -9997 (de tête car maintenant ça fonctionne pour moi ;-) ). Le problème vient du fait que votre carte réseau n'accepte pas le "sample rate" de 11025. Il faut alors tricher et créer une carte son fictive avec un sample rate adéquat :
Créer alors un fichier ".asoundrc" sous la racine de son compteet y mettre :
pcm.radio {
type hw
card 0
device 0
}
pcm_slave.radioslave {
pcm radio
rate 48000
}
pcm.radioconv {
type rate
slave radioslave
}
Il suffit ensuite de lancer wsjt et de configurer la carte son avec la nouvelle carte "radioconv"... a vous le wsjt..
Commentaires (3)
-
|Adresse IP :82.236.133.xxx |2010-01-01 21:39:14 f8arrSalut,
La partie important dans ton log de compilation est la suivante :
"You need to install the fftw3 libraries
You need to install the samplerate library
This program needs portaudio v19 to compile."
En général pour compiler on a besoin des "essentials" mais tu sembles les avoir. Pour ceux qui liraient ces lignes on fait ça en tant que root :
apt-get install build-essential
Pour ffw3 tu a besoin des librairies suivantes :
- libfftw3-3
- libfftw3-dev (surtout celle-la !)
apt-get install ou via aptitude ou en graphique synaptic
Pour samplerate :
- libsamplerate0-dev
- libsamplerate0
- libasound2-plugins
Pour portaudio :
- portaudio0
- portaudio2
- portaudio19-dev
Concernant le make normalement on ne dois avoir que cette commande à taper pour avoir un programme qui fonctionne.
Dans notre cas, ça plante avec l'erreur indiquée.
Tu vas alors dans le répertoire de ton wsjt, tu modifies le fichier indiqué et tu refait la commande make...
Bonne chance !!
73 qro
f8arr
-
|Adresse IP :83.134.39.xxx |2010-01-05 16:59:17 ON4MS - Encore moiSalut,
je ne parviens toujours pas à faire l'installation de ce programme.
J'ai fait ceci:
apt-get install build-essential
apt-get install libfftw3-3
apt-get install libfftw3-dev
apt-get install ibsamplerate0-dev
apt-get install libsamplerate0
apt-get install ibasound2-plugins
apt-get install portaudio0
apt-get install portaudio2
apt-get install portaudio19-dev
certains étaient déjà installés.
J'ai modifié le nom du fichier par "stdint.h.ori"
J'ai lancé ./configure et j'ai obtenu:
=
You are missing f2py, trying local copy.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating setup.py
***************
Using gfortran as fortran compiler.
Compiling wsjt 7.0 r848
Installing into: /usr/local/
root@ubuntu:/home/guy/Téléchargements/wsjt-7.03_r1090/trunk#
=
J'ai installé python-f2py_2.45.241+1926-3ubuntu1_all.deb et python-f2py-doc_2.45.241+1926-3ubuntu1_all.deb.
J'ai relancé ./configure et j'ai obtenu:
=
configure: creating ./config.status
config.status: creating Makefile
config.status: creating setup.py
***************
Using gfortran as fortran compiler.
Compiling wsjt 7.0 r848
Installing into: /usr/local/
guy@ubuntu:~/Téléchargements/wsjt-7.03_r1090/trunk$
=
J'ai lancé make et j'obtiens bien le message d'erreur;
make: *** [WsjtMod/Audio.so] Erreur 1
J'ai lancé python wsjt.py et j'obtiens:
Traceback (most recent call last):
File "wsjt.py", line 11, in
from WsjtMod import Audio
ImportError: cannot import name Audio
J'ai créé le fichier .asoundrc.
Je lance wsjt et je reçois:
=
guy@ubuntu:~/Téléchargements/wsjt-7.03_r1090/trunk$ wsjt
Le programme « wsjt » n'est pas installé. Vous pouvez l'installer en tapant :
sudo apt-get install wsjt
wsjt: command not found
guy@ubuntu:~/Téléchargements/wsjt-7.03_r1090/trunk$
=
Quelle erreur ai-je encore commise?
après le make, faut-il lancer une autre commande comme "install" par ex????
Merci pour votre aide (j'en ai grand besoin)
73's
Guy ON4MS
apt-get install build-essential
-
|Adresse IP :82.236.133.xxx |2010-01-05 20:50:00 f8arrSalut,
Concernant le bug peux tu me donner le log plsu complet ?
Citer:J'ai lancé make et j'obtiens bien le message d'erreur;
make: *** [WsjtMod/Audio.so] Erreur 1
Ensuite concernant la manip pour compiler :
./configure (pour faire le package de compilation en fonction de ton système).
make pour compiler
make install (optionnel, pour installer dans le système)
je te conseille de ne pas faire le "make install" et de lancer wsjt en allant dans le répertoire ou tu as fais la compilation et tu exécutes :
python wsjt.py
j'ai crée un petit lanceur (a adapter en fonction de tes besoins )
cd /home/f8arr/bin/wsjt-7.03_r1090/trunk
python /home/f8arr/bin/wsjt-7.03_r1090/trunk/wsjt.py
-
|Adresse IP :83.134.38.xxx |2010-01-07 10:42:05 ON4MS - SuiteSalut,
Désolé mais je ne trouve pas :
Concernant le bug peux tu me donner le log plsu complet ?
je vois bien le déroulement des instructions sur la console, mais il y a trop de lignes et la copie serait incomplète.
J'ai bien le config.log mais je ne crois pas que c'est ce dernier que tu demandes.
Est-il possible d'annexer un fichier à ce message (pour ne pas trop le saturer)?
pour info,
/home/guy/Téléchargements/wsjt-7.03_r1090/trunk$
Merci pour votre patience...
73's de Guy ON4MS
Powered by !JoomlaComment 4.0 beta1









j'essayes d'installer mais je bloque deja a "#./configure".
En effet, a la fin de la procedure, il me donne des erreurs:
=========================================
guy@ubuntu:~/Téléchargements/wsjt-7.03_r1090/trunk$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking uname -s... no
checking if gcc is Apple GCC... no
checking for library containing strerror... none required
checking for inline... inline
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for mv... /bin/mv
checking for ln... /bin/ln
checking for sed... /bin/sed
checking for ar... /usr/bin/ar
checking for ld... /usr/bin/ld
checking for test... /usr/bin/test
checking for python... /usr/bin/python
checking for f2py... /usr/bin/f2py
checking for g95... /usr/bin/g95
checking g95 lib path... /usr/lib/g95/bin/../lib/gcc-lib/i686-suse-linux-gnu/4.0.3//
checking g95 lib path... checking for gfortran42... no
checking for gfortran... /usr/bin/gfortran
checking gfortran lib path... /usr/lib/gcc/i486-linux-gnu/4.4.1/
checking OS... checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/syslog.h usability... yes
checking sys/syslog.h presence... yes
checking for sys/syslog.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking wait.h usability... yes
checking wait.h presence... yes
checking for wait.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for sys/resource.h... (cached) yes
checking linux/ppdev.h usability... yes
checking linux/ppdev.h presence... yes
checking for linux/ppdev.h... yes
checking dev/ppbus/ppi.h usability... no
checking dev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppi.h... no
checking for sys/stat.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking fftw3.h usability... no
checking fftw3.h presence... no
checking for fftw3.h... no
checking samplerate.h usability... no
checking samplerate.h presence... no
checking for samplerate.h... no
checking whether string.h and strings.h may both be included... yes
checking for sfftw_destroy_plan_ in -lfftw3f... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
*** gfortran compiler found
*** g95 compiler found
checking for a v19 portaudio ... portaudio not found trying FreeBSD paths
checking for a v19 portaudio in FreeBSD paths....
You need to install the fftw3 libraries
You need to install the samplerate library
This program needs portaudio v19 to compile.
Please use --with-portaudio-include-dir= and
--with-portaudio-lib-dir= to set the paths.
You are missing the fftw3.h include file
./configure: line 5822: fail: command not found
You are missing the fortran shim lib for fftw3 you need libfftw3f.
It is also possible your libfftw3f is missing the fortran shim entry points.
configure: error: Please check error messages and install missing packages.
guy@ubuntu:~/Téléchargements/wsjt-7.03_r1090/trunk$
=======================================
Hors j'ai installe via le gestionnaire de paquets Synaptic les fichiers,
libfftw3-doc & root-plugin-fftw3
mais je recois toujours les memes messages (meme avec sudo).
Pourrais-tu me guider et egalement detailler au maximum le paragraphe 4 (make ?? etc) car je suis encore NOVICE et je rame (meme sans la pluie). Un GRAND merci
Amities de
Guy ON4MS
Ubuntu 9.10 (karmic) / GNOME 2.28.1 / Kernel 2.6.31-16-generic
OS Type: Linux / GCC Version:4.4.1 (i486-linux-gnu)