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
Dernière modification par biginoz le sam. 06 mars 2010, 22:56, modifié 1 fois.
dell XPS L502 + xfce4.10
Membre de l'équipe de traduction fr de Xfce
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.
dell XPS L502 + xfce4.10
Membre de l'équipe de traduction fr de Xfce
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.
dell XPS L502 + xfce4.10
Membre de l'équipe de traduction fr de Xfce
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
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...
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.
dell XPS L502 + xfce4.10
Membre de l'équipe de traduction fr de Xfce
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.
dell XPS L502 + xfce4.10
Membre de l'équipe de traduction fr de Xfce
Building C object libgarmin/CMakeFiles/garmin.dir/usb_comm.o
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
Dernière modification par benjarobin le sam. 06 mars 2010, 20:15, modifié 3 fois.
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 ?
dell XPS L502 + xfce4.10
Membre de l'équipe de traduction fr de Xfce
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