Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Questions relatives à des problèmes logiciels.
Beta-Pictoris
Messages : 827
Inscription : 07 janvier 2014, 21:48
Localisation : Angers, France

Re: Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Messagepar Beta-Pictoris » 13 septembre 2016, 14:13

C'est libxcb, pas libxcd.

DamienF
Messages : 20
Inscription : 09 septembre 2016, 15:21

Re: Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Messagepar DamienF » 13 septembre 2016, 14:21

Beta-Pictoris a écrit :C'est libxcb, pas libxcd.

J'ai reecris le code sur le forum c'est une faute de frappe, voici le copier coller du code :

Code : Tout sélectionner

yum install libxcb-devel
Loaded plugins: fastestmirror, priorities, protectbase, security, versionlock
Loading mirror speeds from cached hostfile
 * base: mirror.karneval.cz
 * elrepo: ftp.nluug.nl
 * epel: mirror.slu.cz
 * extras: mirror.karneval.cz
 * updates: mirror.karneval.cz
Excluding Packages in global exclude list
Finished
0 packages excluded due to repository protections
Reading version lock configuration
Setting up Install Process
No package libxcb-devel available.
Nothing to do

Beta-Pictoris
Messages : 827
Inscription : 07 janvier 2014, 21:48
Localisation : Angers, France

Re: Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Messagepar Beta-Pictoris » 13 septembre 2016, 14:29

libxcb n'existant pas sur Centos 5, tu ne peux pas continuer dans cette direction.
Le mieux est de tenter de compiler une ancienne version des sources: https://sourceforge.net/projects/record ... mydesktop/
Essaye de compiler la version 0.2.0 pour voir.

DamienF
Messages : 20
Inscription : 09 septembre 2016, 15:21

Re: Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Messagepar DamienF » 13 septembre 2016, 15:11

Beta-Pictoris a écrit :libxcb n'existant pas sur Centos 5, tu ne peux pas continuer dans cette direction.
Le mieux est de tenter de compiler une ancienne version des sources: https://sourceforge.net/projects/record ... mydesktop/
Essaye de compiler la version 0.2.0 pour voir.

Code complet :

Code : Tout sélectionner

$ cd ~/Downloads/
$ gzip -d recordmydesktop-0.2.0.tar.gz
$ tar xvf recordmydesktop-0.2.0.tar
recordmydesktop-0.2.0/
recordmydesktop-0.2.0/Makefile.in
recordmydesktop-0.2.0/README
recordmydesktop-0.2.0/stamp-h.in
recordmydesktop-0.2.0/AUTHORS
recordmydesktop-0.2.0/COPYING
recordmydesktop-0.2.0/ChangeLog
recordmydesktop-0.2.0/INSTALL
recordmydesktop-0.2.0/Makefile.am
recordmydesktop-0.2.0/NEWS
recordmydesktop-0.2.0/TODO
recordmydesktop-0.2.0/aclocal.m4
recordmydesktop-0.2.0/config.guess
recordmydesktop-0.2.0/config.h.in
recordmydesktop-0.2.0/config.sub
recordmydesktop-0.2.0/configure
recordmydesktop-0.2.0/configure.ac
recordmydesktop-0.2.0/install-sh
recordmydesktop-0.2.0/missing
recordmydesktop-0.2.0/mkinstalldirs
recordmydesktop-0.2.0/include/
recordmydesktop-0.2.0/include/recordmydesktop.h
recordmydesktop-0.2.0/src/
recordmydesktop-0.2.0/src/Makefile.in
recordmydesktop-0.2.0/src/Makefile.am
recordmydesktop-0.2.0/src/recordmydesktop.c
recordmydesktop-0.2.0/src/zpixmaptobmp.c
recordmydesktop-0.2.0/src/getzpixmap.c
recordmydesktop-0.2.0/src/parseargs.c
recordmydesktop-0.2.0/src/rectinsert.c
recordmydesktop-0.2.0/src/setbrwindow.c
recordmydesktop-0.2.0/src/queryextensions.c
recordmydesktop-0.2.0/src/register_callbacks.c
recordmydesktop-0.2.0/src/get_frame.c
recordmydesktop-0.2.0/src/update_image.c
recordmydesktop-0.2.0/src/poll_damage.c
recordmydesktop-0.2.0/src/encode_image_buffer.c
recordmydesktop-0.2.0/src/bgr_to_yuv.c
recordmydesktop-0.2.0/src/flush_to_ogg.c
recordmydesktop-0.2.0/src/make_dummy_pointer.c
recordmydesktop-0.2.0/src/opendev.c
recordmydesktop-0.2.0/src/capture_sound.c
recordmydesktop-0.2.0/src/encode_sound_buffer.c
recordmydesktop-0.2.0/src/init_encoder.c
recordmydesktop-0.2.0/doc/
recordmydesktop-0.2.0/doc/Makefile.in
recordmydesktop-0.2.0/doc/Makefile.am
recordmydesktop-0.2.0/doc/recordmydesktop.1
$ cd recordmydesktop-0.2.0
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
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 ANSI C... none needed
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for X... libraries /usr/lib64, headers in standard search path
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 png.h usability... no
checking png.h presence... no
checking for png.h... no
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking vorbis/vorbisfile.h usability... yes
checking vorbis/vorbisfile.h presence... yes
checking for vorbis/vorbisfile.h... yes
checking for isnan in -lm... yes
checking for deflate in -lz... yes
checking for XOpenDisplay in -lX11... yes
checking for XShmQueryVersion in -lXext... yes
checking for XDamageQueryExtension in -lXdamage... yes
checking for vorbis_info_clear in -lvorbis... yes
checking for ov_open in -lvorbisfile... yes
checking for vorbis_encode_init in -lvorbisenc... yes
checking for ogg_stream_init in -logg... yes
checking for theora_encode_YUVin in -ltheora... yes
checking for pthread_mutex_lock in -lpthread... yes
checking for snd_pcm_drain in -lasound... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing default-1 commands
$ make
make  all-recursive
make[1]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
Making all in src
make[2]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/src'
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c recordmydesktop.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c zpixmaptobmp.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c getzpixmap.c
getzpixmap.c: In function ‘GetZPixmap’:
getzpixmap.c:42: warning: large integer implicitly truncated to unsigned type
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c parseargs.c
parseargs.c: In function ‘ParseArgs’:
parseargs.c:78: warning: ignoring return value of ‘realloc’, declared with attribute warn_unused_result
parseargs.c:130: warning: ignoring return value of ‘realloc’, declared with attribute warn_unused_result
parseargs.c:205: warning: ignoring return value of ‘realloc’, declared with attribute warn_unused_result
parseargs.c:349: warning: ignoring return value of ‘realloc’, declared with attribute warn_unused_result
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c rectinsert.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c setbrwindow.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c queryextensions.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c register_callbacks.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c get_frame.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c update_image.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c poll_damage.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c encode_image_buffer.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c bgr_to_yuv.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c flush_to_ogg.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c make_dummy_pointer.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c opendev.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c capture_sound.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c encode_sound_buffer.c
gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../include    -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -c init_encoder.c
gcc  -g -O2 -O3 -Wall -D_THREAD_SAFE -pthread -L/usr/lib64  -o recordmydesktop -D_THREAD_SAFE -pthread -Wall -O3 recordmydesktop.o zpixmaptobmp.o getzpixmap.o parseargs.o rectinsert.o setbrwindow.o queryextensions.o register_callbacks.o get_frame.o update_image.o poll_damage.o encode_image_buffer.o bgr_to_yuv.o flush_to_ogg.o make_dummy_pointer.o opendev.o capture_sound.o encode_sound_buffer.o init_encoder.o  -lasound -lpthread -ltheora -logg -lvorbisenc -lvorbisfile -lvorbis -lXdamage -lXext -lX11 -lz -lm
make[2]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/src'
Making all in doc
make[2]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[2]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
make[1]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
$ su
Password:
# make install
Making install in src
make[1]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/src'
make[2]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/src'
/bin/sh ../mkinstalldirs /usr/local/bin
  /usr/bin/install -c  recordmydesktop /usr/local/bin/recordmydesktop
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/src'
make[1]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/src'
Making install in doc
make[1]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[2]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[2]: Nothing to be done for `install-exec-am'.
make  install-man1
make[3]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
/bin/sh ../mkinstalldirs /usr/local/man/man1
mkdir /usr/local/man
mkdir /usr/local/man/man1
 /usr/bin/install -c -m 644 ./recordmydesktop.1 /usr/local/man/man1/recordmydesktop.1
make[3]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[2]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[1]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0/doc'
make[1]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
make[2]: Entering directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
make[1]: Leaving directory `/home/nmrsu/Downloads/recordmydesktop-0.2.0'
[root@CZC4323K7Q recordmydesktop-0.2.0]# cd ..
[root@CZC4323K7Q Downloads]# cd ..
# cd /usr/local/bin
# ls
recordmydesktop
# ./recordmydesktop
Initializing...
Couldn't open PCM device hw:0,0
Error while opening/configuring soundcard hw:0,0
Procceeding with no sound
Capturing!


Donc quand je lance j'obtiens ca :

Code : Tout sélectionner

# ./recordmydesktop
Initializing...
Couldn't open PCM device hw:0,0
Error while opening/configuring soundcard hw:0,0
Procceeding with no sound
Capturing!

Au risque d'avoir l'ere idiot (ci ce n'est pas deja fait), pourquoi rien n'apparait ? je pensais que le logiciel se serait lancer et que j'y aurais acces..
Je loupe encore quelque chose ?

Beta-Pictoris
Messages : 827
Inscription : 07 janvier 2014, 21:48
Localisation : Angers, France

Re: Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Messagepar Beta-Pictoris » 13 septembre 2016, 15:20

Appuie sur une touche ou fais un CTRL-C pour lancer l'enregistrement. Il existe un front-end gtk-recordmydesktop qui permet de gérer l'application à la souris.

Si ça marche avec la version 0.20, essaye les versions plus récentes.

DamienF
Messages : 20
Inscription : 09 septembre 2016, 15:21

Re: Erreur au lancement d'un logiciel. (Débutant sur Linux CentOS)

Messagepar DamienF » 13 septembre 2016, 15:41

Beta-Pictoris a écrit :Appuie sur une touche ou fais un CTRL-C.

Si ça marche avec la version 0.20, essaye les versions plus récentes.


C'est bon ça fonctionne parfaitement !
Maintenant que j'ai compris la méthode je vais tester les autres versions et garder la plus récente.
Merci beaucoup !

J'ai encore un soucis sur CentOS 7 donc je n'en parlerais pas ici, mais je suis content d'en avoir finis avec CentOS 5.
Encore merci.

Cdt.