Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites".
Test de l'ISO d'Ubuntu francophone : nous avons besoin de testeurs pour la version francophone d'Ubuntu 14.04. Liens et informations ici.
nombre réponses : 25

#0 -1 »  [Résolu] Ubuntu 14.04 et squeezebox (Logitech Media Server) » Le 07/07/2014, à 22:54

grigouille
Réponses : 3

Bonjour,

Je n'arrive pas à installer le Logitech Media Server (LMS) sur ma Xubuntu 14.04 64 bits. J'utilise
les dépôts slimdevice squeezebox. La version stable ne fonctionne pas et la version testing donne :

E: Impossible de récupérer http://debian.slimdevices.com/pool/main/l/logitechmediaserver/logitechmediaserver_7.7.4~1402661577_all.deb  Taille incohérente

E: Impossible de récupérer quelques archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?

J'ai aussi essayé la version unstable mais j'ai le même message avec une version 7.8 du LMS. J'ai bien sûr faire update et la version avec --fix-missing, sans succès.

Quelqu'un a-t-il réussi l'installation sur la 14.04 ? Que se passe-t-il ?

Pour info :

$ perl -v

This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
(with 41 registered patches, see perl -V for more detail)

Merci pour votre retour d'expérience.

#1 Re : -1 »  [Résolu] Ubuntu 14.04 et squeezebox (Logitech Media Server) » Le 08/07/2014, à 19:00

grigouille
Réponses : 3

Cela fonctionne. Merci pour le dépannage.
Je vais mettre à jour la page squeezebox.

#2 Re : -1 »  [Résolu] Ubuntu 14.04 et squeezebox (Logitech Media Server) » Le 01/09/2014, à 21:11

grigouille
Réponses : 3

Impossible de faire marcher logitechmediaserver. Avec la 7.7 ou 7.8 téléchargés via  wget, l'accès via le dépôt ne fonctionnant pas,  j'ai droit au message :

Logitech Media Server died. Restarting.

Dommage car cela avait toujours très bien fonctionné avant.
Pas de chance.

#3 Re : -1 »  Impossible de graver un DVD » Le 29/12/2013, à 22:51

grigouille
Réponses : 2

Bonjour,
J'arrive à graver des CD-RW mais pas des CD-R. La gravure commence puis soudain s'arrête. Si quelqu'un a une idée ?

Devices
-----------------------
ASUS BW-12B1ST 1.03 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, BD-ROM, BD-R, BD-RE, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-R Dual Layer Jump, DVD-RAM, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW, BD-ROM, BD-R Sequential (SRM), BD-R Random (RRM), BD-RE] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite, Layer Jump, Random Recording, Sequential Recording, Sequential Recording + POW] [%7]

System
-----------------------
K3b Version: 2.0.2
KDE Version: 4.11.3
QT Version:  4.8.4
Kernel:      3.11.0-14-generic

Used versions
-----------------------
cdrecord: 1.1.11

cdrecord
-----------------------
/usr/bin/wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
SCSI buffer size: 64512
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
TOC Type: 0 = CD-DA
Driveropts: 'burnfree'
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'ASUS    '
Identification : 'BW-12B1ST       '
Revision       : '1.03'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009 (CD-R)
Profile: 0x0043 (BD-RE) 
Profile: 0x0042 (BD-R random recording) 
Profile: 0x0041 (BD-R sequential recording) 
Profile: 0x0040 (BD-ROM) 
Profile: 0x002B (DVD+R/DL) 
Profile: 0x001B (DVD+R) 
Profile: 0x001A (DVD+RW) 
Profile: 0x0016 (DVD-R/DL layer jump recording) 
Profile: 0x0015 (DVD-R/DL sequential recording) 
Profile: 0x0014 (DVD-RW sequential recording) 
Profile: 0x0013 (DVD-RW restricted overwrite) 
Profile: 0x0012 (DVD-RAM) 
Profile: 0x0011 (DVD-R sequential recording) 
Profile: 0x0010 (DVD-ROM) 
Profile: 0x000A (CD-RW) 
Profile: 0x0009 (CD-R) (current)
Profile: 0x0008 (CD-ROM) 
Profile: 0x0002 (Removable disk) 
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE FORCESPEED 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 7901696 = 7716 KB
FIFO size      : 12582912 = 12288 KB
Speed set to 8468 KB/s
pregap1: -1
Track 01: audio    8 MB (00:52.45) no preemp swab copy
Track 02: audio   24 MB (02:23.37) no preemp swab copy
Track 03: audio   54 MB (05:24.85) no preemp swab copy
Track 04: audio   42 MB (04:15.26) no preemp swab copy
Track 05: audio   29 MB (02:54.10) no preemp swab copy
Track 06: audio   23 MB (02:18.28) no preemp swab copy
Track 07: audio   17 MB (01:46.16) no preemp swab copy
Track 08: audio   53 MB (05:17.32) no preemp swab copy
Track 09: audio   24 MB (02:24.86) no preemp swab copy
Track 10: audio   48 MB (04:45.72) no preemp swab copy
Track 11: audio   27 MB (02:44.98) no preemp swab copy
Track 12: audio    6 MB (00:40.14) no preemp swab copy
Track 13: audio   44 MB (04:25.17) no preemp swab copy
Track 14: audio   42 MB (04:14.70) no preemp swab copy
Track 15: audio   13 MB (01:20.48) no preemp swab copy
Track 16: audio   87 MB (08:42.78) no preemp swab copy
Track 17: audio    6 MB (00:36.32) no preemp swab copy
Total size:      556 MB (55:07.00) = 248025 sectors
Lout start:      556 MB (55:09/00) = 248025 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in:  -11634 (97:26/66)
  ATIP start of lead out: 359846 (79:59/71)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 111821
Forcespeed is OFF.
Starting to write CD/DVD at speed  48.0 in real SAO mode for single session.
Last chance to quit, starting real write in    2 seconds.
   1 seconds.
   0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:    0 of    8 MB written.
Track 01:    1 of    8 MB written (fifo  95%) [buf  21%]  68.2x.
Track 01:    2 of    8 MB written (fifo  92%) [buf  38%] 282.1x.
Track 01:    3 of    8 MB written (fifo  88%) [buf  53%] 317.7x.
Track 01:    4 of    8 MB written (fifo  84%) [buf  69%] 310.0x.
Track 01:    5 of    8 MB written (fifo  80%) [buf  85%] 322.0x.
Track 01:    6 of    8 MB written (fifo  99%) [buf  99%]   0.6x.
Track 01:    7 of    8 MB written (fifo  98%) [buf  99%]  22.4x.
Track 01:    8 of    8 MB written (fifo 100%) [buf  96%]  18.6x.
Track 01: Total bytes read/written: 9252768/9252768 (3934 sectors).
Starting new track at sector: 3934
Track 02:    0 of   24 MB written.
Track 02:    1 of   24 MB written (fifo  99%) [buf  98%]  22.3x.
Track 02:    2 of   24 MB written (fifo  98%) [buf  98%]  22.8x.
Track 02:    3 of   24 MB written (fifo  98%) [buf  98%]  22.4x.
Track 02:    4 of   24 MB written (fifo  98%) [buf  99%]  23.0x.
Track 02:    5 of   24 MB written (fifo  98%) [buf  98%]  22.2x.
Track 02:    6 of   24 MB written (fifo  98%) [buf  99%]  23.0x.
Track 02:    7 of   24 MB written (fifo  98%) [buf  98%]  22.4x.
Track 02:    8 of   24 MB written (fifo  98%) [buf  99%]  22.9x.
Track 02:    9 of   24 MB written (fifo  98%) [buf  98%]  22.3x.
Track 02:   10 of   24 MB written (fifo  98%) [buf  99%]  22.9x.
Track 02:   11 of   24 MB written (fifo  99%) [buf  98%]  22.3x.
Track 02:   12 of   24 MB written (fifo  98%) [buf  99%]  22.7x.
Track 02:   13 of   24 MB written (fifo  98%) [buf  98%]  22.3x.
Track 02:   14 of   24 MB written (fifo  98%) [buf  98%]  22.9x.
Track 02:   15 of   24 MB written (fifo  98%) [buf  98%]  22.1x.
Track 02:   16 of   24 MB written (fifo  98%) [buf  98%]  22.7x.
Track 02:   17 of   24 MB written (fifo  99%) [buf  97%]  22.0x.
Track 02:   18 of   24 MB written (fifo 100%) [buf  97%]  22.8x.
Track 02:   19 of   24 MB written (fifo 100%) [buf  96%]  22.1x.
Track 02:   20 of   24 MB written (fifo 100%) [buf  96%]  22.8x.
Track 02:   21 of   24 MB written (fifo  98%) [buf  99%]  28.4x.
Track 02:   22 of   24 MB written (fifo  98%) [buf  99%]  22.6x.
Track 02:   23 of   24 MB written (fifo  98%) [buf  98%]  22.1x.
Track 02:   24 of   24 MB written (fifo  99%) [buf  97%]  22.5x.
Track 02: Total bytes read/written: 25291056/25291056 (10753 sectors).
Starting new track at sector: 14687
Track 03:    0 of   54 MB written.
Track 03:    1 of   54 MB written (fifo  98%) [buf  98%]  22.2x.
Track 03:    2 of   54 MB written (fifo  98%) [buf  98%]  22.9x.
Track 03:    3 of   54 MB written (fifo 100%) [buf  97%]  22.5x.
Track 03:    4 of   54 MB written (fifo 100%) [buf  96%]  22.7x.
Track 03:    5 of   54 MB written (fifo  98%) [buf  98%]  28.7x.
Track 03:    6 of   54 MB written (fifo  98%) [buf  98%]  22.6x.
Track 03:    7 of   54 MB written (fifo 100%) [buf  96%]  22.3x.
Track 03:    8 of   54 MB written (fifo  97%) [buf  99%]  29.1x.
Track 03:    9 of   54 MB written (fifo  98%) [buf  98%]  22.2x.
Track 03:   10 of   54 MB written (fifo  99%) [buf  97%]  22.7x.
Track 03:   11 of   54 MB written (fifo 100%) [buf  96%]  22.3x.
Track 03:   12 of   54 MB written (fifo  98%) [buf  99%]  29.5x.
Track 03:   13 of   54 MB written (fifo  99%) [buf  97%]  22.1x.
Track 03:   14 of   54 MB written (fifo  99%) [buf  97%]  22.8x.
Track 03:   15 of   54 MB written (fifo  98%) [buf  99%]  28.9x.
Track 03:   16 of   54 MB written (fifo  98%) [buf  98%]  22.8x.
Track 03:   17 of   54 MB written (fifo 100%) [buf  96%]  22.1x.
Track 03:   18 of   54 MB written (fifo  97%) [buf  99%]  29.4x.
Track 03:   19 of   54 MB written (fifo  98%) [buf  98%]  22.2x.
Track 03:   20 of   54 MB written (fifo  99%) [buf  97%]  22.7x.
Track 03:   21 of   54 MB written (fifo  98%) [buf  99%]  28.5x.
Track 03:   22 of   54 MB written (fifo  98%) [buf  97%]  22.5x.
Track 03:   23 of   54 MB written (fifo  97%) [buf  99%]  28.7x.
Track 03:   24 of   54 MB written (fifo  98%) [buf  98%]  22.6x.
Track 03:   25 of   54 MB written (fifo 100%) [buf  96%]  22.1x.
Track 03:   26 of   54 MB written (fifo  97%) [buf  99%]  29.1x.
Track 03:   27 of   54 MB written (fifo  99%) [buf  97%]  21.9x.
Track 03:   28 of   54 MB written (fifo 100%) [buf  96%]  22.5x.
Track 03:   29 of   54 MB written (fifo  98%) [buf  97%]  28.4x.
Track 03:   30 of   54 MB written (fifo 100%) [buf  96%]  22.5x.
Track 03:   31 of   54 MB written (fifo  99%) [buf  98%]  28.5x.
Track 03:   32 of   54 MB written (fifo  99%) [buf  96%]  22.6x.
Track 03:   33 of   54 MB written (fifo  98%) [buf  98%]  28.5x.
Track 03:   34 of   54 MB written (fifo  99%) [buf  97%]  22.5x.
Track 03:   35 of   54 MB written (fifo  98%) [buf  98%]  28.3x.
Track 03:   36 of   54 MB written (fifo  99%) [buf  97%]  22.3x.
Track 03:   37 of   54 MB written (fifo  98%) [buf  98%]  28.4x.
Track 03:   38 of   54 MB written (fifo  99%) [buf  96%]  22.3x.
Track 03:   39 of   54 MB written (fifo  98%) [buf  98%]  28.1x.
Track 03:   40 of   54 MB written (fifo  99%) [buf  96%]  22.5x.
Track 03:   41 of   54 MB written (fifo  98%) [buf  98%]  28.1x.
Track 03:   42 of   54 MB written (fifo 100%) [buf  96%]  22.4x.
Track 03:   43 of   54 MB written (fifo  98%) [buf  98%]  29.5x.
Track 03:   44 of   54 MB written (fifo  98%) [buf  99%]  28.8x.
Track 03:   45 of   54 MB written (fifo  98%) [buf  97%]  22.9x.
Track 03:   46 of   54 MB written (fifo  97%) [buf  99%]  29.0x.
Track 03:   47 of   54 MB written (fifo  99%) [buf  97%]  22.9x.
Track 03:   48 of   54 MB written (fifo  98%) [buf  98%]  29.1x.
Track 03:   49 of   54 MB written (fifo  99%) [buf  96%]  23.0x.
Track 03:   50 of   54 MB written (fifo  98%) [buf  97%]  28.8x.
Track 03:   51 of   54 MB written (fifo 100%) [buf  95%]  22.9x.
Track 03:   52 of   54 MB written (fifo  99%) [buf  96%]  28.7x.
Track 03:   53 of   54 MB written (fifo  98%) [buf  98%]  29.2x.
Track 03:   54 of   54 MB written (fifo  98%) [buf  99%]  28.9x.
Track 03: Total bytes read/written: 57304128/57304128 (24364 sectors).
Starting new track at sector: 39051
Track 04:    0 of   42 MB written.
Track 04:    1 of   42 MB written (fifo  99%) [buf  97%]  28.5x.
Track 04:    2 of   42 MB written (fifo  97%) [buf  99%]  29.7x.
Track 04:    3 of   42 MB written (fifo 100%) [buf  96%]  22.4x.
Track 04:    4 of   42 MB written (fifo  98%) [buf  98%]  29.6x.
Track 04:    5 of   42 MB written (fifo  98%) [buf  99%]  29.1x.
Track 04:    6 of   42 MB written (fifo  99%) [buf  96%]  22.9x.
Track 04:    7 of   42 MB written (fifo  98%) [buf  97%]  29.0x.
Track 04:    8 of   42 MB written (fifo  97%) [buf  99%]  29.6x.
Track 04:    9 of   42 MB written (fifo 100%) [buf  95%]  22.3x.
Track 04:   10 of   42 MB written (fifo  98%) [buf  97%]  29.4x.
Track 04:   11 of   42 MB written (fifo  98%) [buf  98%]  29.1x.
Track 04:   12 of   42 MB written (fifo 100%) [buf  95%]  22.8x.
Track 04:   13 of   42 MB written (fifo  99%) [buf  96%]  29.1x.
Track 04:   14 of   42 MB written (fifo  98%) [buf  98%]  29.2x.
Track 04:   15 of   42 MB written (fifo  98%) [buf  98%]  28.8x.
Track 04:   16 of   42 MB written (fifo 100%) [buf  96%]  22.7x.
Track 04:   17 of   42 MB written (fifo  99%) [buf  96%]  28.9x.
Track 04:   18 of   42 MB written (fifo  98%) [buf  98%]  29.7x.
Track 04:   19 of   42 MB written (fifo  98%) [buf  98%]  28.6x.
Track 04:   20 of   42 MB written (fifo 100%) [buf  96%]  22.8x.
Track 04:   21 of   42 MB written (fifo  99%) [buf  96%]  28.5x.
Track 04:   22 of   42 MB written (fifo  98%) [buf  97%]  29.4x.
Track 04:   23 of   42 MB written (fifo  98%) [buf  98%]  28.4x.
Track 04:   24 of   42 MB written (fifo  97%) [buf  99%]  29.3x.
Track 04:   25 of   42 MB written (fifo 100%) [buf  95%]  21.9x.
Track 04:   26 of   42 MB written (fifo  99%) [buf  96%]  29.4x.
Track 04:   27 of   42 MB written (fifo  98%) [buf  97%]  28.6x.
Track 04:   28 of   42 MB written (fifo  98%) [buf  98%]  29.3x.
Track 04:   29 of   42 MB written (fifo  97%) [buf  99%]  28.6x.
Track 04:   30 of   42 MB written (fifo  98%) [buf  99%]  28.1x.
Track 04:   31 of   42 MB written (fifo 100%) [buf  95%]  22.1x.
Track 04:   32 of   42 MB written (fifo  99%) [buf  96%]  29.3x.
Track 04:   33 of   42 MB written (fifo  99%) [buf  97%]  28.5x.
Track 04:   34 of   42 MB written (fifo  98%) [buf  98%]  29.0x.
Track 04:   35 of   42 MB written (fifo  98%) [buf  98%]  28.6x.
Errno: 5 (Input/output error), write_g1 scsi sendcmd: no error
CDB:  2A 00 00 00 D6 C5 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 71 00 03 00 00 00 00 0A 00 00 00 00 0C 00 00 00
Sense Key: 0x3 Medium Error, deferred error, Segment 0
Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.267s timeout 200s
/usr/bin/wodim: A write error occured.
/usr/bin/wodim: Please properly read the error message above.
write track data: error after 37467360 bytes
Writing  time:   57.500s
Average write speed  74.3x.
Min drive buffer fill was 95%
Fixating...
Fixating time:    0.003s
/usr/bin/wodim: fifo had 2229 puts and 2039 gets.
/usr/bin/wodim: fifo was 0 times empty and 460 times full, min fill was 76%.
BURN-Free was never needed.

cdrecord command:
-----------------------
/usr/bin/wodim -v gracetime=2 dev=/dev/sr0 speed=48 -sao driveropts=burnfree -useinfo -audio /tmp/kde-frederic/k3b_audio_0_01.inf /tmp/kde-frederic/k3b_audio_0_02.inf /tmp/kde-frederic/k3b_audio_0_03.inf /tmp/kde-frederic/k3b_audio_0_04.inf /tmp/kde-frederic/k3b_audio_0_05.inf /tmp/kde-frederic/k3b_audio_0_06.inf /tmp/kde-frederic/k3b_audio_0_07.inf /tmp/kde-frederic/k3b_audio_0_08.inf /tmp/kde-frederic/k3b_audio_0_09.inf /tmp/kde-frederic/k3b_audio_0_10.inf /tmp/kde-frederic/k3b_audio_0_11.inf /tmp/kde-frederic/k3b_audio_0_12.inf /tmp/kde-frederic/k3b_audio_0_13.inf /tmp/kde-frederic/k3b_audio_0_14.inf /tmp/kde-frederic/k3b_audio_0_15.inf /tmp/kde-frederic/k3b_audio_0_16.inf /tmp/kde-frederic/k3b_audio_0_17.inf

J'utilise k3b sous Kubuntu 13.10.

#4 Re : -1 »  VDR : Installation, configuration... Topic Unique » Le 20/12/2013, à 23:41

grigouille
Réponses : 5

Bonjour,
J'ai installé vdr sur Kubuntu 13.10. Plusieurs problèmes :
- Je n'arrive pas activer le désentrelacement avec vdr-sxfe
- Quelqu'un a-t-il réussi à connecter xbmc et vdr ?

Merci.

#5 Re : -1 »  [RESOLU] Avermedia Volar black HD non détécté ?? » Le 11/05/2013, à 23:07

grigouille
Réponses : 41

Merci pour cette info. C'est tout bête finalement.

#6 Re : -1 »  [RESOLU] Avermedia Volar black HD non détécté ?? » Le 12/05/2013, à 15:53

grigouille
Réponses : 41

J'ai modifié la page avermedia_avertv_volar_black_hd. J'espère que c'est bon.

Bonne journée.

#7 Re : -1 »  [RESOLU] Avermedia Volar black HD non détécté ?? » Le 12/05/2013, à 19:05

grigouille
Réponses : 41

Sur Ubuntu server 12.04, j'ai installé le paquet linux-firmware-nonfree, redémarré la machine mais w_scan ne détecte rien.

$ w_scan 
w_scan version 20111203 (compiled for DVB API 5.4)
guessing country 'FR', use -c <country> to override
using settings for FRANCE
DVB aerial
DVB-T FR
frontend_type DVB-T, channellist 5
output format vdr-1.6
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
main:3079: FATAL: ***** NO USEABLE DVB-T CARD FOUND. *****
Please check wether dvb driver is loaded and
verify that no dvb application (i.e. vdr) is running.

Pourtant le tuner est bien en place :

$ lsusb 
Bus 001 Device 002: ID 07ca:850a AVerMedia Technologies, Inc. AverTV Volar Black HD (A850)

Qu'est-ce qui manque ?

#8 Re : -1 »  [RESOLU] Avermedia Volar black HD non détécté ?? » Le 13/05/2013, à 13:57

grigouille
Réponses : 41

Il semble que

sudo modprobe dvb_usb_af9015

aide à la reconnaissance du tuner.

$ dmesg | grep dvb
[    9.146960] dvb-usb: found a 'AverMedia AVerTV Volar Black HD (A850)' in warm state.
[    9.147235] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[    9.489870] dvb-usb: AverMedia AVerTV Volar Black HD (A850) successfully initialized and connected.
[    9.645488] usbcore: registered new interface driver dvb_usb_af9015

Par contre w_scan ne détecte rien.
Curieux.

#9 Re : -1 »  [RESOLU] Avermedia Volar black HD non détécté ?? » Le 14/05/2013, à 09:06

grigouille
Réponses : 41

Pour faire fonctionner w_scan, il faut être dans le groupe video !

$ ll /dev/dvb/adapter0/frontend0 
crw-rw---- 1 root video 212, 3 mai   14 08:47 /dev/dvb/adapter0/frontend0

#10 Re : -1 »  M6 replay et ubuntu 12.4 [RÉSOLU] » Le 13/06/2013, à 22:52

grigouille
Réponses : 29

Effectivement cela recommence.

#12 Re : -1 »  [résolu]numériser un document sur all in one HP » Le 27/10/2013, à 12:27

grigouille
Réponses : 20

Ton imprimange a besoin d'hplip 3.11.10
http://hplipopensource.com/hplip-web/mo … eries.html

Ubuntu 13.10 a hplip 3.13.9
http://packages.ubuntu.com/saucy/hplip

Pour installer ton imprimante il suffit de faire:

sudo hp-setup -iax

#13 Re : -1 »  [résolu]numériser un document sur all in one HP » Le 27/10/2013, à 17:04

grigouille
Réponses : 20

Bizarre ton message. Juste pour vérifier que hp-setup est bien là, tape :

hp-setup -h

est-ce que cela fonctionne ?

#14 Re : -1 »  Ubuntu 12.04, installation du plugin java avec chromium » Le 14/07/2013, à 21:13

grigouille
Réponses : 9

Intéressant ce QupZilla. À tester.

#15 Re : -1 »  Logiciel de géométrie dans l'espace? » Le 12/07/2013, à 12:39

grigouille
Réponses : 13

Bonjour,
Sous Xubuntu 12.04, j'ai installé giac-xcas via le dépôt.
Par contre, j'ai :

$ giac
giac: error while loading shared libraries: liblapack.so.3gf: cannot open shared object file: No such file or directory
$ xcasnew 
xcasnew: error while loading shared libraries: liblapack.so.3gf: cannot open shared object file: No such file or directory
$ sudo apt-get install liblapack3gf
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
liblapack3gf est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

Si quelqu'un a une idée ...

Merci.

#16 Re : -1 »  Logiciel de géométrie dans l'espace? » Le 12/07/2013, à 22:40

grigouille
Réponses : 13

Je vois que tu as tenté la version testing. J'ai installé la version stable.
Curieux ce phénomène.

#17 Re : -1 »  Logiciel de géométrie dans l'espace? » Le 14/07/2013, à 21:09

grigouille
Réponses : 13

Merci pour vos réponses.

#18 Re : -1 »  Creation d'un serveur personnel, etape et question generale » Le 05/07/2013, à 11:06

grigouille
Réponses : 7

Bonjour,
NAS + Raspberry peut être intéressant pour limiter la consommation électrique.
Le Raspberry peut servir comme serveur de messagerie, serveur pour la TNT, etc.

Pour plus de puissance et une consommation électrique faible, tu peux partir sur des cartes mères
avec un processeur intégré refroidi passivement. On en trouve en mini-ITX et même en micro-ATX.

Mais pour ce faire la main, commence avec ton Revo.

#19 Re : -1 »  utilisation de skype sur ubuntu 13.04 » Le 02/05/2013, à 15:34

grigouille
Réponses : 5

Le problème de skype apparaît dans les notes de releases :
https://wiki.ubuntu.com/RaringRingtail/ … es#Desktop

#20 -1 »  [Résolu] c++ template : Problème de compilation » Le 07/06/2013, à 16:49

grigouille
Réponses : 4

Bonjour,

J'essaie d'écrire une class Vector dans le style de la nouvelle classe array de <array>.
J'essaie aussi d'appliquer la technique d'addition sans temporaire que l'on peut trouver dans "The C++ Programming Language" de Stroustrup §22.4.7.

Problème, avec la version template

cout << u+v

ne compile pas alors qu'une conversion implicite devrait se faire.
La version sans template (vecteur de double de taille 3) fonctionne parfaitement. Pourquoi ?

Si quelqu'un pouvait m'expliquer. Merci.

Version sans template :

#ifndef VectorLib_h
#define VectorLib_h
 
#include <iostream>
#include<algorithm>
using namespace std;


typedef size_t Index;


class Vector;
void add(Vector& res, const Vector& a, const Vector& b);
/** ABadd */
struct ABadd {
	const Vector& a;
	const Vector& b;
	ABadd(const Vector& aa, const Vector& bb) : a(aa), b(bb){}
	//operator Vector() const {Vector res;add(res, a, b);return res;}	
};

/**
	\class Vector
*/


class Vector {
protected:
	/** Support for zero-sized arrays mandatory */
	double elem[3 ? 3 : 1];
public:
	typedef double			value_type;
	typedef double*			pointer;
	typedef const double*	const_pointer;
	typedef value_type&			reference;
	typedef const value_type&	const_reference;
	typedef value_type*			iterator;
	typedef const value_type*	const_iterator;
	typedef Index				size_type;
	
	/** Iterators */
	iterator begin() {return &(elem[0]);}
	const_iterator begin() const {return &(elem[0]);}

	iterator end() {return begin() + 3;}
	const_iterator end() const {return begin() + 3;}
	
	/** Element access */
	reference operator()(const Index i) {return elem[i];}
	const_reference operator()(const Index i) const {return elem[i];}
		
	/** Capacity */
	size_type size() const {return 3;}
	/** destructor */
	~Vector(){}

	/** constructor */
	Vector(const double& a = double()) {for(Index i = 0 ; i < size() ; ++i) elem[i] = a;}	
	Vector(const Vector& a) {copy(a.begin(), a.end(), begin());}
	Vector(const ABadd& a) {add(*this, a.a, a.b);}

	/** assignment */
	Vector& operator=(const Vector& a) {if(&a != this) copy(a.begin(), a.end(), begin());return *this;}
	Vector& operator=(const ABadd& a){add(*this, a.a, a.b);return *this;}
};
 
const char sep1 = '(';
const char sep2 = ')';

/** operator<< */
inline
std::ostream& operator<<(std::ostream& os, const Vector& a) {
	os << sep1;
	for(Index i = 0 ; i < a.size() ; ++i) os << a(i) << ' ';	
	return os << sep2;
}

/** add */
inline
void add(Vector& res, const Vector& a, const Vector& b) {for(Index i = 0 ; i < a.size() ; ++i) res(i) = a(i)+b(i);}



inline
ABadd operator+(const Vector& a, const Vector& b) {return ABadd(a,b);}

int main() {
	Vector v;
	v(0) = 7;
	v(1)=-1;
	v(2)=4;
	Vector w;
	w(0) = 2;
	w(1) = 1;
	w(2) = -3;
	cout << "w " << w << endl
	<< "v " << v << endl << "w+v\n";
	//cout  << static_cast<Vector<double,3> >(w+v);
//	w = w + v;
	cout  << w+v;
	//cout  << typeid(w+v).name();
	cout << endl;
	return 0;
}


 #endif //VectorLib_h

Version avec template :

#ifndef VectorLib_h
#define VectorLib_h
 
#include<algorithm>
#include <iostream>
using namespace std;


typedef size_t Index;


template<class T, Index N> class Vector;
template<class T, Index N> void add(Vector<T,N>& res, const Vector<T,N>& a, const Vector<T,N>& b);
/** ABadd */
template<class T, Index N> struct ABadd {
	const Vector<T,N>& a;
	const Vector<T,N>& b;
	ABadd(const Vector<T,N>& aa, const Vector<T,N>& bb) : a(aa), b(bb){}
	//operator Vector<T,N>() const {Vector<T,N> res;add(res, a, b);return res;}	
};


/**
	\class Vector
	\brief A standard container for storing a fixed size sequence of elements.
	Sets support random access iterators.
	I could have derived it from STL array
	
	\param T Type of element. Required to be a complete type.
	\param N Number of elements.
*/

template<class T, Index N>
class Vector {
protected:
	/** Support for zero-sized arrays mandatory */
	T elem[N ? N : 1];
public:
	typedef T			value_type;
	typedef T*			pointer;
	typedef const T*	const_pointer;
	typedef value_type&			reference;
	typedef const value_type&	const_reference;
	typedef value_type*			iterator;
	typedef const value_type*	const_iterator;
	typedef Index				size_type;
	
	/** Iterators */
	iterator begin() {return &(elem[0]);}
	const_iterator begin() const {return &(elem[0]);}

	iterator end() {return begin() + N;}
	const_iterator end() const {return begin() + N;}
	
	/** Element access */
	reference operator()(const Index i) {return elem[i];}
	const_reference operator()(const Index i) const {return elem[i];}
	
	/** Capacity */
	size_type size() const {return N;}
	/** destructor */
	~Vector(){}

	/** constructor */
	Vector(const T& a = T()) {for(Index i = 0 ; i < size() ; ++i) elem[i] = a;}	
	Vector(const Vector<T,N>& a) {copy(a.begin(), a.end(), begin());}
	Vector(const ABadd<T,N>& a) {add(*this, a.a, a.b);}

	/** assignment */
	Vector& operator=(const Vector<T,N>& a) {if(&a != this) copy(a.begin(), a.end(), begin());return *this;}
	Vector& operator=(const ABadd<T,N>& a){add(*this, a.a, a.b);return *this;}
};
 
const char sep1 = '(';
const char sep2 = ')';

/** operator<< */
template<class T, Index N> inline
std::ostream& operator<<(std::ostream& os, const Vector<T,N>& a) {
	os << sep1;
	for(Index i = 0 ; i < a.size() ; ++i) os << a(i) << ' ';	
	return os << sep2;
}

/** add */
template<class T, Index N> inline
void add(Vector<T,N>& res, const Vector<T,N>& a, const Vector<T,N>& b) {for(Index i = 0 ; i < a.size() ; ++i) res(i) = a(i)+b(i);}


template<class T, Index N> inline
ABadd<T,N> operator+(const Vector<T,N>& a, const Vector<T,N>& b) {return ABadd<T,N>(a,b);}


int main() {
	Vector<double,3> v;
	v(0) = 7;
	v(1)=-1;
	v(2)=4;
	Vector<double,3> w;
	w(0) = 2;
	w(1) = 1;
	w(2) = -3;
	cout << "w " << w << endl
	<< "v " << v << endl << "w+v\n";
	//cout  << static_cast<Vector<double,3> >(w+v);
//	w = w + v;
	cout  << w+v;
	//cout  << typeid(w+v).name();
	cout << endl;
	return 0;
}

 #endif //VectorLib_h

#21 Re : -1 »  [Résolu] c++ template : Problème de compilation » Le 07/06/2013, à 17:04

grigouille
Réponses : 4

Merci de t'intéresser à ce problème. Voici le retour du compilo :

$ g++ -o vector  -Wall Vector.cpp
Vector.cpp: In function ‘int main()’:
Vector.cpp:107:13: erreur: no match for ‘operator<<’ in ‘std::cout << operator+ [with T = double, long unsigned int N = 3ul]((*(const Vector<double, 3ul>*)(& w)), (*(const Vector<double, 3ul>*)(& v)))’
Vector.cpp:107:13: note: candidates are:
/usr/include/c++/4.6/ostream:110:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:110:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}’
/usr/include/c++/4.6/ostream:119:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>, std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
/usr/include/c++/4.6/ostream:119:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
/usr/include/c++/4.6/ostream:129:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:129:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘std::ios_base& (*)(std::ios_base&)’
/usr/include/c++/4.6/ostream:167:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:167:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘long int’
/usr/include/c++/4.6/ostream:171:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:171:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘long unsigned int’
/usr/include/c++/4.6/ostream:175:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:175:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘bool’
/usr/include/c++/4.6/bits/ostream.tcc:93:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.6/bits/ostream.tcc:93:5: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘short int’
/usr/include/c++/4.6/ostream:182:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:182:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘short unsigned int’
/usr/include/c++/4.6/bits/ostream.tcc:107:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.6/bits/ostream.tcc:107:5: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘int’
/usr/include/c++/4.6/ostream:193:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:193:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘unsigned int’
/usr/include/c++/4.6/ostream:202:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:202:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘long long int’
/usr/include/c++/4.6/ostream:206:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:206:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘long long unsigned int’
/usr/include/c++/4.6/ostream:211:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:211:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘double’
/usr/include/c++/4.6/ostream:215:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:215:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘float’
/usr/include/c++/4.6/ostream:223:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:223:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘long double’
/usr/include/c++/4.6/ostream:227:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
/usr/include/c++/4.6/ostream:227:7: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘const void*’
/usr/include/c++/4.6/bits/ostream.tcc:121:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_ostream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
/usr/include/c++/4.6/bits/ostream.tcc:121:5: note:   no known conversion for argument 1 from ‘ABadd<double, 3ul>’ to ‘std::basic_ostream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
Vector.cpp:79:15: note: template<class T, long unsigned int N> std::ostream& operator<<(std::ostream&, const Vector<T, N>&)
/usr/include/c++/4.6/ostream:528:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
/usr/include/c++/4.6/ostream:523:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
/usr/include/c++/4.6/ostream:510:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
/usr/include/c++/4.6/bits/ostream.tcc:323:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
/usr/include/c++/4.6/ostream:493:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
/usr/include/c++/4.6/ostream:473:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
/usr/include/c++/4.6/ostream:468:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
/usr/include/c++/4.6/ostream:462:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
/usr/include/c++/4.6/ostream:456:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
/usr/include/c++/4.6/ostream:451:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
/usr/include/c++/4.6/bits/basic_string.h:2693:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)

Je remets le code pour être sûr :

#ifndef VectorLib_h
#define VectorLib_h
 
#include<algorithm>
#include <iostream>
using namespace std;


typedef size_t Index;


template<class T, Index N> class Vector;
template<class T, Index N> void add(Vector<T,N>& res, const Vector<T,N>& a, const Vector<T,N>& b);
/** ABadd */
template<class T, Index N> struct ABadd {
	const Vector<T,N>& a;
	const Vector<T,N>& b;
	ABadd(const Vector<T,N>& aa, const Vector<T,N>& bb) : a(aa), b(bb){}
	//operator Vector<T,N>() const {Vector<T,N> res;add(res, a, b);return res;}	
};


/**
	\class Vector
	\brief A standard container for storing a fixed size sequence of elements.
	Sets support random access iterators.
	I could have derived it from STL array
	
	\param T Type of element. Required to be a complete type.
	\param N Number of elements.
*/

template<class T, Index N>
class Vector {
protected:
	/** Support for zero-sized arrays mandatory */
	T elem[N ? N : 1];
public:
	typedef T			value_type;
	typedef T*			pointer;
	typedef const T*	const_pointer;
	typedef value_type&			reference;
	typedef const value_type&	const_reference;
	typedef value_type*			iterator;
	typedef const value_type*	const_iterator;
	typedef Index				size_type;
	
	/** Iterators */
	iterator begin() {return &(elem[0]);}
	const_iterator begin() const {return &(elem[0]);}

	iterator end() {return begin() + N;}
	const_iterator end() const {return begin() + N;}
	
	/** Element access */
	reference operator()(const Index i) {return elem[i];}
	const_reference operator()(const Index i) const {return elem[i];}
	
	/** Capacity */
	size_type size() const {return N;}
	/** destructor */
	~Vector(){}

	/** constructor */
	Vector(const T& a = T()) {for(Index i = 0 ; i < size() ; ++i) elem[i] = a;}	
	Vector(const Vector<T,N>& a) {copy(a.begin(), a.end(), begin());}
	Vector(const ABadd<T,N>& a) {add(*this, a.a, a.b);}

	/** assignment */
	Vector& operator=(const Vector<T,N>& a) {if(&a != this) copy(a.begin(), a.end(), begin());return *this;}
	Vector& operator=(const ABadd<T,N>& a){add(*this, a.a, a.b);return *this;}
};
 
const char sep1 = '(';
const char sep2 = ')';

/** operator<< */
template<class T, Index N> inline
std::ostream& operator<<(std::ostream& os, const Vector<T,N>& a) {
	os << sep1;
	for(Index i = 0 ; i < a.size() ; ++i) os << a(i) << ' ';	
	return os << sep2;
}

/** add */
template<class T, Index N> inline
void add(Vector<T,N>& res, const Vector<T,N>& a, const Vector<T,N>& b) {for(Index i = 0 ; i < a.size() ; ++i) res(i) = a(i)+b(i);}


template<class T, Index N> inline
ABadd<T,N> operator+(const Vector<T,N>& a, const Vector<T,N>& b) {return ABadd<T,N>(a,b);}


int main() {
	Vector<double,3> v;
	v(0) = 7;
	v(1)=-1;
	v(2)=4;
	Vector<double,3> w;
	w(0) = 2;
	w(1) = 1;
	w(2) = -3;
	cout << "w " << w << endl
	<< "v " << v << endl << "w+v\n";
	//cout  << static_cast<Vector<double,3> >(w+v);
//	w = w + v;
	cout  << w+v;
	//cout  << typeid(w+v).name();
	cout << endl;
	return 0;
}

 #endif //VectorLib_h

Je ne comprends pas pourquoi il ne fait pas la conversion implicite. Aucun souci si on enlève les templates.

#22 Re : -1 »  [Résolu] c++ template : Problème de compilation » Le 07/06/2013, à 22:57

grigouille
Réponses : 4

Merci beaucoup grim7reaper pour avoir mis la main sur ce fil !

Avec les template, il faut décidément s'attendre à des grosses surprises.

Bonne compilation à tous.

#23 Re : -1 »  [Ubuntu 13.04] Installation de HP lip 3.13.5 » Le 25/05/2013, à 18:32

grigouille
Réponses : 4

Ton imprimante a besoin d'hplip >= 1.7.2 :
http://hplipopensource.com/hplip-web/mo … k5400.html

La version d'hplip d'Ubuntu est donc largement suffisante.

#24 Re : -1 »  [ RESOLU ] Conversion format PDF en doc » Le 12/05/2013, à 16:05

grigouille
Réponses : 14

Je te propose

unoconv -f odt fichier.pdf

sinon

man unoconv