Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1142 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  [résolu]Problème lors compilation avec -lXrender.

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[résolu]Problème lors compilation avec -lXrender.

n°749869
Tom_
Posté le 07-11-2005 à 21:12:56  profilanswer
 

Bonjour,
Je souhaité compiler un programme, mais j'obtiens l'erreur suivante :  

Citation :

/usr/bin/ld: cannot find -lXrender
collect2: ld returned 1 exit status


 
J'ai pensé que ca venait des librairies de X qui n'étaient pas installées, mais ce n'est pas le cas puisque les librairies suivantes sont installées :  
- lib64xorg-x11-6.9-1.cvs20050915.2mdk
- lib64xorg-x11-devel-6.9-1.cvs20050915.2mdk
- lib64xorg-x11-static-devel-6.9-1.cvs20050915.2mdk
 
Vous avez une idée? Merci.


Message édité par Tom_ le 11-11-2005 à 23:19:58
mood
Publicité
Posté le 07-11-2005 à 21:12:56  profilanswer
 

n°749870
deather2
Posté le 07-11-2005 à 21:15:58  profilanswer
 

il te faut libxrender-dev

n°749883
Tom_
Posté le 07-11-2005 à 21:55:35  profilanswer
 

Ce paquet n'existe pas sous Mandriva :/. Puis les libs render semblent installées :  

Citation :


locate render  
....
/usr/X11R6/include/X11/extensions/Xrender.h
/usr/X11R6/include/X11/extensions/renderproto.h
/usr/X11R6/include/X11/extensions/render.h
/usr/X11R6/lib/libXrender.so.1
/usr/X11R6/lib/libXrender.so.1.2.2
/usr/X11R6/lib64/libXrender.so.1
/usr/X11R6/lib64/libXrender.so.1.2.2
/usr/X11R6/lib64/libXrender.so
/usr/X11R6/lib64/libXrender.a


 
Merci quand même de ta réponse.

n°749979
Tom_
Posté le 08-11-2005 à 10:29:23  profilanswer
 

Up! Personne n'a une idée?

n°750293
Tom_
Posté le 08-11-2005 à 23:57:49  profilanswer
 

Encore un petit up ...

n°750959
Bigon
Avis défavorable
Posté le 10-11-2005 à 21:35:54  profilanswer
 

C'est sous un processeur 64 bits? Si oui essaye de rajouter:

-L/usr/X11R6/lib64

à gcc.
Sinon il manque les libs de developement 32bits

n°751138
Tom_
Posté le 11-11-2005 à 12:02:02  profilanswer
 

Merci de ta réponse Bigon, ca a fonctionné.  
 
Le problème c'est que j'obtiens plein d'autres erreurs :  

Citation :


ake[5]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5'
cd qmake && make
make[6]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/qmake'
make[6]: « qmake » est à jour.
make[6]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/qmake'
cd src/moc && make
make[6]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/src/moc'
make[6]: Rien à faire pour « first ».
make[6]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/src/moc'
cd src && make
make[6]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/src'
make[6]: Rien à faire pour « first ».
make[6]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/src'
cd plugins/src && make
make[6]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src'
cd accessible && make -f Makefile
make[7]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/accessible'
make[7]: Rien à faire pour « first ».
make[7]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/accessible'
cd codecs && make -f Makefile
make[7]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/codecs'
make[7]: Rien à faire pour « first ».
make[7]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/codecs'
cd imageformats && make -f Makefile
make[7]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/imageformats'
cd jpeg && make -f Makefile
make[8]: Entering directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/imageformats/jpeg'
g++ -c -pipe -fno-exceptions -Wall -W -m64 -fPIC -L/usr/X11R6/lib64 -O2 -pipe -D_REENTRANT -fPIC  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/mkspecs/linux-g++-64 -I. -I/usr/include/freetype2 -I../../../../include -I.moc/release-shared-mt/ -o .obj/release-shared-mt/main.o main.cpp
In file included from main.cpp:11:
../../../../src/kernel/qjpegio.cpp:59:21: error: jpeglib.h: Aucun fichier ou répertoire de ce type
../../../../src/kernel/qjpegio.cpp:66: error: expected class-name before '{' token
../../../../src/kernel/qjpegio.cpp:75: error: variable or field 'my_error_exit' declared void
../../../../src/kernel/qjpegio.cpp:75: error: 'j_common_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:76: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp:91: error: expected class-name before '{' token
../../../../src/kernel/qjpegio.cpp:94: error: 'JOCTET' does not name a type
../../../../src/kernel/qjpegio.cpp:105: error: variable or field 'qt_init_source' declared void
../../../../src/kernel/qjpegio.cpp:105: error: 'j_decompress_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:106: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp:110: error: 'boolean' does not name a type
../../../../src/kernel/qjpegio.cpp:133: error: variable or field 'qt_skip_input_data' declared void
../../../../src/kernel/qjpegio.cpp:133: error: 'j_decompress_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:133: error: expected primary-expression before 'long'
../../../../src/kernel/qjpegio.cpp:133: error: initializer expression list treated as compound expression
../../../../src/kernel/qjpegio.cpp:134: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp:157: error: variable or field 'qt_term_source' declared void
../../../../src/kernel/qjpegio.cpp:157: error: 'j_decompress_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:158: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp: In constructor 'my_jpeg_source_mgr::my_jpeg_source_mgr(QImageIO*)':
../../../../src/kernel/qjpegio.cpp:168: error: 'jpeg_source_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:168: error: 'init_source' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:169: error: 'jpeg_source_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:169: error: 'fill_input_buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:169: error: 'qt_fill_input_buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:170: error: 'jpeg_source_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:170: error: 'skip_input_data' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:171: error: 'jpeg_source_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:171: error: 'resync_to_restart' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:171: error: 'jpeg_resync_to_restart' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:172: error: 'jpeg_source_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:172: error: 'term_source' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:174: error: 'bytes_in_buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:175: error: 'next_input_byte' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:175: error: 'buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp: In function 'void read_jpeg_image(QImageIO*)':
../../../../src/kernel/qjpegio.cpp:198: error: aggregate 'jpeg_decompress_struct cinfo' has incomplete type and cannot be defined
../../../../src/kernel/qjpegio.cpp:203: error: 'jpeg_create_decompress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:207: error: 'jpeg_std_error' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:208: error: 'struct my_error_mgr' has no member named 'error_exit'
../../../../src/kernel/qjpegio.cpp:214: error: 'jpeg_read_header' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:217: error: 'jpeg_start_decompress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:276: error: 'jpeg_read_scanlines' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:301: error: 'jpeg_finish_decompress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:324: error: 'jpeg_read_scanlines' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:325: error: 'jpeg_finish_decompress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:356: error: 'jpeg_destroy_decompress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp: At global scope:
../../../../src/kernel/qjpegio.cpp:361: error: expected class-name before '{' token
../../../../src/kernel/qjpegio.cpp:364: error: 'JOCTET' does not name a type
../../../../src/kernel/qjpegio.cpp:376: error: variable or field 'qt_init_destination' declared void
../../../../src/kernel/qjpegio.cpp:376: error: 'j_compress_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:377: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp:381: error: variable or field 'qt_exit_on_error' declared void
../../../../src/kernel/qjpegio.cpp:381: error: 'j_compress_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:381: error: expected primary-expression before '*' token
../../../../src/kernel/qjpegio.cpp:381: error: 'dev' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:381: error: initializer expression list treated as compound expression
../../../../src/kernel/qjpegio.cpp:382: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp:392: error: 'boolean' does not name a type
../../../../src/kernel/qjpegio.cpp:411: error: variable or field 'qt_term_destination' declared void
../../../../src/kernel/qjpegio.cpp:411: error: 'j_compress_ptr' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:412: error: expected ',' or ';' before '{' token
../../../../src/kernel/qjpegio.cpp: In constructor 'my_jpeg_destination_mgr::my_jpeg_destination_mgr(QImageIO*)':
../../../../src/kernel/qjpegio.cpp:433: error: 'jpeg_destination_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:433: error: 'init_destination' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:434: error: 'jpeg_destination_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:434: error: 'empty_output_buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:434: error: 'qt_empty_output_buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:435: error: 'jpeg_destination_mgr' has not been declared
../../../../src/kernel/qjpegio.cpp:435: error: 'term_destination' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:437: error: 'next_output_byte' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:437: error: 'buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:438: error: 'free_in_buffer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp: In function 'void write_jpeg_image(QImageIO*)':
../../../../src/kernel/qjpegio.cpp:447: error: aggregate 'jpeg_compress_struct cinfo' has incomplete type and cannot be defined
../../../../src/kernel/qjpegio.cpp:448: error: 'JSAMPROW' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:448: error: expected `;' before 'row_pointer'
../../../../src/kernel/qjpegio.cpp:449: error: 'row_pointer' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:454: error: 'jpeg_std_error' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:456: error: 'struct my_error_mgr' has no member named 'error_exit'
../../../../src/kernel/qjpegio.cpp:459: error: 'jpeg_create_compress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:479: error: 'JCS_GRAYSCALE' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:479: error: 'JCS_RGB' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:486: error: 'jpeg_set_defaults' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:507: error: 'jpeg_set_quality' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:508: error: 'jpeg_start_compress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:576: error: 'jpeg_write_scanlines' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:579: error: 'jpeg_finish_compress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp:580: error: 'jpeg_destroy_compress' was not declared in this scope
../../../../src/kernel/qjpegio.cpp: At global scope:
../../../../src/kernel/qjpegio.cpp:381: warning: 'qt_exit_on_error' defined but not used
make[8]: *** [.obj/release-shared-mt/main.o] Erreur 1
make[8]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/imageformats/jpeg'
make[7]: *** [sub-jpeg] Erreur 2
make[7]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src/imageformats'
make[6]: *** [sub-imageformats] Erreur 2
make[6]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5/plugins/src'
make[5]: *** [sub-plugins] Erreur 2
make[5]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free/work/qt-x11-free-3.3.5'
make[4]: *** [build-work/qt-x11-free-3.3.5/Makefile] Erreur 2
make[4]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/qt-x11-free'
make[3]: *** [dep-../../libs/qt-x11-free] Erreur 2
make[3]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/libs/arts'
make[2]: *** [dep-../../libs/arts] Erreur 2
make[2]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/kde/kdelibs'
make[1]: *** [dep-../../kde/kdelibs] Erreur 2
make[1]: Leaving directory `/home/thomas/Documents/Tmp/Download/konstruct/kde/kdewebdev'
make: *** [install] Erreur 2
[thomas@thomas kde]$

n°751197
Bigon
Avis défavorable
Posté le 11-11-2005 à 13:54:23  profilanswer
 

../../../../src/kernel/qjpegio.cpp:59:21: error: jpeglib.h: Aucun fichier ou répertoire de ce type


 
Manque les headers de libjpeg.. (libjpeg62-dev sous debian)

n°751276
Tom_
Posté le 11-11-2005 à 18:30:50  profilanswer
 

J'avais même pas vu ...  :pt1cable: merci beaucoup!  :jap:


Message édité par Tom_ le 11-11-2005 à 18:39:11

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  [résolu]Problème lors compilation avec -lXrender.

 

Sujets relatifs
probleme ohci-usb - chaleur - acpi ...( resolu) install ati sous mandriva 2006
[SON] Prob. de son et redémarrages...(résolu)[Résolu] web-cyradm
Samba + Cups - Probleme d'impressionprobleme partages de fichiers
Probleme STARTX et carte Nvidia [DEBIAN]Problème disque dur
[RESOLU] MERCI ! Cloner un hdd ET son mbrproblème de configuration de samba
Plus de sujets relatifs à : [résolu]Problème lors compilation avec -lXrender.


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR