Page 1 sur 2
[debug de paquet] Sportwatcher (Résolu)
Publié : jeu. 04 mars 2010, 20:11
par biginoz
Bonjour.
Ayant fait l'acquisition d'un gps Garmin, j'ai cherché un programme pour l'exploiter et participer à openstreetmap. Pour cela il me faut un logiciel capable de récupérer les données stockées sur le GPS et sportwatcher fait son entrée!
J'ai été sur le site
http://www.theosys.at/sportwatcher/
et j'ai fait un pkgbuild suivant leur indication pour le compiler.
La compilation pourtant a lieu pas d'erreur de dépendance.
mais elle se casse la figure!
J'ai néanmoins transmit sur AUR le paquet pour faciliter l'accès au test des gens.
Sur AUR le paquet s'appelle sportwatcher.
Merci pour toute l'aide ou même l'intérêt de m'avoir lu

Re: [debug de paquet] Sportwatcher (en cours)
Publié : jeu. 04 mars 2010, 20:49
par benjarobin
mais elle se casse la figure!
Quoi la compilation ?
Re: [debug de paquet] Sportwatcher (en cours)
Publié : ven. 05 mars 2010, 06:54
par biginoz
oui la compilation plante.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : ven. 05 mars 2010, 08:42
par gyo
Ok, la compilation plante mais encore ?
Montre-nous la sortie de la compilation pour que l'on voit se qui se passe, merci.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : ven. 05 mars 2010, 19:36
par biginoz
Le paquet est sur AUR : sportwatcher
On peut essayer de l'installer, le configure ne plante pas mais c'est au moment de la compilation.
- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found GDAL: /usr/lib/libgdal.so
-- Found LIBUSB: /usr/lib/libusb.so
-- Found Freetype: -lfreetype -lz
-- Found Mapnik: /usr/lib/libmapnik.so
-- Looking for include files HAVE_GDAL
-- Looking for include files HAVE_GDAL - found
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/build
Scanning dependencies of target gant_automoc
[ 0%] Built target gant_automoc
Scanning dependencies of target gant
[ 2%] Building CXX object libgant/CMakeFiles/gant.dir/gant_automoc.o
[ 4%] Building CXX object libgant/CMakeFiles/gant.dir/gant.o
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp: In member function ‘bool ant::get_data(int)’:
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp:352: attention : contrôle a atteint la fin non void de la fonction
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp:213: attention : ‘next’ may be used uninitialized in this function
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp: At global scope:
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp:40: attention : ‘sendack1’ defined but not used
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp:47: attention : ‘sendack2’ defined but not used
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp:51: attention : ‘sendack3’ defined but not used
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgant/gant.cpp:54: attention : ‘sendack4’ defined but not used
Linking CXX static library ../lib/libgant.a
[ 4%] Built target gant
Scanning dependencies of target garmin
[ 7%] Building C object libgarmin/CMakeFiles/garmin.dir/byte_util.o
Dans le fichier inclus à partir de /tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/byte_util.c:1:
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/build/config.h:18:8: attention : éléments lexicaux superflus à la fin de la directive #endif
Puis ca continue avec les warnings( c'est très long, c'est pour ça que je recommande le test de l'installation) puis on obtient :
Scanning dependencies of target sportwatcher
[ 58%] Building CXX object src/CMakeFiles/sportwatcher.dir/sportwatcher_automoc.o
[ 60%] Building CXX object src/CMakeFiles/sportwatcher.dir/coordinateswidget.o
[ 63%] Building CXX object src/CMakeFiles/sportwatcher.dir/disassemble.o
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/disassemble.cpp: In member function ‘void disassemble::garmin_print_dlist(garmin_list*)’:
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/disassemble.cpp:281: attention : ‘stTime’ may be used uninitialized in this function
[ 65%] Building CXX object src/CMakeFiles/sportwatcher.dir/import.o
[ 68%] Building CXX object src/CMakeFiles/sportwatcher.dir/main.o
Dans le fichier inclus à partir de /tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/sportwatcher.h:30,
à partir de /tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/main.cpp:24:
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/sportwatcherwidget.h:36:31: erreur: gdal/gdal_priv.h : Aucun fichier ou dossier de ce type
In file included from /tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/sportwatcher.h:30,
from /tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/main.cpp:24:
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/sportwatcherwidget.h:178: erreur: ISO C++ forbids declaration of ‘GDALDataset’ with no type
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/src/sportwatcherwidget.h:178: erreur: expected ‘;’ before ‘*’ token
make[2]: *** [src/CMakeFiles/sportwatcher.dir/main.o] Erreur 1
make[1]: *** [src/CMakeFiles/sportwatcher.dir/all] Erreur 2
make: *** [all] Erreur 2
==> ERREUR: La compilation a échoué.
Abandon...
Error: Makepkg n'a pas pu construire le paquetage sportwatcher.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : ven. 05 mars 2010, 20:43
par benjarobin
Tout ce que tu devait copier c'est ceci :
Code : Tout sélectionner
src/sportwatcherwidget.h:36:31: erreur: gdal/gdal_priv.h : Aucun fichier ou dossier de ce type
=> Il manque une dépendance
http://www.archlinux.org/packages/?sort ... =&limit=50
Si elle est deja installer on regardera plus en détail...
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 09:16
par biginoz
gdal est installé, c'est une dépendance qui est inclue dans le pkgbuild.
C'est d'ailleurs pour ça qu'il essaie de compiler, avant il s'arrêtait avant au moment où il vérifie que tout les dépendances pour la compilation sont respectées.
C'est d'ailleurs pour ça que je sèche.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 17:18
par benjarobin
Il est ou ce fichier gdal_priv.h ? Bon je tente une compilation cela ira plus vite
Edit1: Bon je créer le patch il ne cherche pas la librairie au bon endroit c'est tout
Edit2: Bon il n'y a pas que ce bug.... je coince sur freetype...
Edit3: Trouvé

mais voir poste suivant
Le PKGBUILD corrigé
Code : Tout sélectionner
# SportWatcher
# Contributor: Biginoz <biginoz (at) free.fr>
pkgname=sportwatcher
pkgver=0.7
pkgrel=1
pkgdesc="SportWatcher is a KDE program, who reads data out of a Garmin GPS-device"
arch=("i686" "x86_64")
url="http://www.theosys.at/download/index.html"
license=("GPL2")
depends=("gdal" "mapnik")
makedepends=("cmake")
source=(http://www.theosys.at/download/${pkgname}-${pkgver}.tar.gz)
md5sums=('b106c939f0af350d5a8adc04f0c0487f');
build() {
cd ${srcdir}/${pkgname}-${pkgver}
msg "Patch files"
sed -i "s/<gdal\//</" src/*.h src/*.cpp || return 1
sed -i "s/include_directories(/include_directories\(\/usr\/include\/freetype2 /" CMakeLists.txt || return 1
msg "Start build"
mkdir build
# Build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr/local || return 1
make || return 1
make install || return 1
}
PS: Je n'ai pas tester l'installation... mais cela compile et créer le paquet
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 18:44
par benjarobin
Je voudrai juste savoir par des gens un peu plus qualifié que moi, tuxce ? si c'était normal le patch que j'ai fait de CMakeLists.txt ? Pourquoi je dois ajouter le chemin de freetype ? alors qu'il y a un recherche paquage freetype. A moins que cela soit pour le linkage uniquement...
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 19:15
par biginoz
Je suis impressionné! bon au moins ca me donne quelque bille pour savoir où chercher quand on a des soucis de bibliothèques lors de compilation alors que celle-ci sont installées.
Merci néanmoins pour ce début de correction.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 19:42
par biginoz
Merci mais ca ne compile pas en fait
tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:196: undefined reference to `usb_strerror'
../lib/libgarmin.a(usb_comm.o): In function `garmin_write':
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:501: undefined reference to `usb_bulk_write'
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:518: undefined reference to `usb_strerror'
../lib/libgarmin.a(usb_comm.o): In function `garmin_read':
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:443: undefined reference to `usb_interrupt_read'
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:463: undefined reference to `usb_bulk_read'
../lib/libgarmin.a(usb_comm.o): In function `garmin_close':
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:90: undefined reference to `usb_release_interface'
/tmp/yaourt-tmp-arnaud/aur-sportwatcher/sportwatcher/src/sportwatcher-0.7/libgarmin/usb_comm.c:91: undefined reference to `usb_close'
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [src/sportwatcher] Erreur 1
make[1]: *** [src/CMakeFiles/sportwatcher.dir/all] Erreur 2
make: *** [all] Erreur 2
==> ERREUR: La compilation a échoué.
Abandon...
Error: Makepkg n'a pas pu construire le paquetage sportwatcher.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 20:07
par benjarobin
C'est c'est la partie
Mais chez moi cela marche.... Et je viens de tout d'installer... Tu es en 64 bits ? Moi je suis en i686
Il me faudrait plus de détails car je n'arrive pas a situer exactement si c'est le linkage ou la création de l'objet qui coince
Tente sans yaourt. Fait juste makepkg... avec le PKGBUILD seul dans un dossier
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 20:12
par biginoz
non je suis en i686.
Etrange.
Peut-être une dépendance qui manque en plus de celle que j'ai prévue alors?
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 20:16
par benjarobin
Pastebin la trace complète si cela ne marche pas par avec makepkg
Soit ce que tu as donné n'est pas complet, soit je ne comprend plus...
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 20:38
par biginoz
Voila la trace
http://pastebin.com/62WiBAVe
C'est étrange ce qu'il y a à partir de la ligne 135, non?
Merci en tout cas de ton aide.
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 21:28
par benjarobin
C'est étrange ce qu'il y a à partir de la ligne 135, non?
Non c'est juste pas très bine codé...
Sinon il faut tenter de rajouter un -lusb je te fournit le patch dès que tester
Bon chez moi le -lusb est bien rajouter par cmake...
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 21:32
par biginoz
T'es vraiment sympa!
Sincèrement merci !
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 21:52
par benjarobin
Bon en faite en rajoutant ma pour usb ligne j'obtiens un truc assez similaire a ton erreur... Je crois comprendre
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 21:53
par biginoz
Linking C shared library ../lib/libusb.so
CMakeFiles/usb.dir/usb_comm.o: In function `garmin_open':
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:155: undefined reference to `usb_init'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:156: undefined reference to `usb_find_busses'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:157: undefined reference to `usb_find_devices'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:159: undefined reference to `usb_busses'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:177: undefined reference to `usb_open'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:187: undefined reference to `usb_set_configuration'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:194: undefined reference to `usb_claim_interface'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:182: undefined reference to `usb_strerror'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:189: undefined reference to `usb_strerror'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:196: undefined reference to `usb_strerror'
CMakeFiles/usb.dir/usb_comm.o: In function `garmin_write':
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:501: undefined reference to `usb_bulk_write'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:518: undefined reference to `usb_strerror'
CMakeFiles/usb.dir/usb_comm.o: In function `garmin_read':
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:443: undefined reference to `usb_interrupt_read'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:463: undefined reference to `usb_bulk_read'
CMakeFiles/usb.dir/usb_comm.o: In function `garmin_close':
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:90: undefined reference to `usb_release_interface'
/home/arnaud/compil/src/sportwatcher-0.7/libgarmin/usb_comm.c:91: undefined reference to `usb_close'
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [lib/libusb.so] Erreur 1
make[1]: *** [libgarmin/CMakeFiles/usb.dir/all] Erreur 2
make: *** [all] Erreur 2
ça plante pire qu'avant, si je comprends un problème pour localiser libusb ?
Re: [debug de paquet] Sportwatcher (en cours)
Publié : sam. 06 mars 2010, 22:03
par benjarobin
En faite j'ai dis une connerie avec libusb... Bref....
Tu as bien ceci
Code : Tout sélectionner
1 core/libusb 0.1.12-4 [installé] (base)
Library to enable user space application programs to communicate with USB
devices
2 extra/libusb1 1.0.6-1
Library to enable user space application programs to communicate with USB
devices.
libusb1 est installer chez toi ? Car moi j'ai que libusb
Sinon si tu veux vraiment l'installer voici le lien compiler
http://benjarobin.fr/upload/sportwatche ... pkg.tar.gz (il se peut que cela ne marche pas comme tu as peut être des paquets manquant)