Pages : 1
#1 Le 25/05/2009, à 18:39
- paul92
[résolu] Compiler kopete-facebook
Salut, j'ai téléchargé ça http://github.com/dmacvicar/kopete-facebook/tree/master avec git, mais je sais pas comment le compiler sur ma kubuntu afin d'avoir le protocole facebook sur kopete. Quelqu'un saurait m'aider?
Merci et A+
Dernière modification par paul92 (Le 31/05/2009, à 16:55)
Hors ligne
#2 Le 25/05/2009, à 19:51
- Seren
Re : [résolu] Compiler kopete-facebook
Il y a un CmakeList.txt donc ça utilise "cmake" pour builder.
Je sais pas exactement comment ça marche mais essaye toujours de faire "cmake" à l'endroit où est le fichier Cmakelist.txt .
"I am not young enough to know everything". Oscar Wilde
Hors ligne
#3 Le 25/05/2009, à 19:51
- guguscat
Re : [résolu] Compiler kopete-facebook
qmake -project
qmake
make
make install
?
Un problème non résolu ? Indiquez le en insultant les gens qui tentent de vous aider.
Hors ligne
#4 Le 25/05/2009, à 20:21
- paul92
Re : [résolu] Compiler kopete-facebook
Seren, merci mais cmake ne donne rien tout seul.
guguscat, tout va jusqu'au make qui me donne :
make: *** Pas de règle pour fabriquer la cible « facebookaccount.moc », nécessaire pour « facebookaccount.o ». Arrêt.
Merci.
Hors ligne
#5 Le 25/05/2009, à 20:32
- anthon
Re : [résolu] Compiler kopete-facebook
Normalement faut faire quelque chose de ce style là:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
make install
Bon perso j'ai essayé mais cmake ne reconnait pas certaines "commandes" appellées dans les CMakeList... Je ne suis pas expert donc je sèche.
Après j'ai vu sur le post du blog du type qu'il faut cette librairie donc faudra regarder aussi de ce coté.
Dernière modification par anthon (Le 25/05/2009, à 20:38)
Hors ligne
#6 Le 25/05/2009, à 20:34
- paul92
Re : [résolu] Compiler kopete-facebook
Merci, ça avance...
paul@balthazar:~/kopete-facebook$ cd build
paul@balthazar:~/kopete-facebook/build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at icons/CMakeLists.txt:3 (kde4_install_icons):
Unknown CMake command "kde4_install_icons".CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such ascmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.-- Configuring incomplete, errors occurred!
Hors ligne
#7 Le 25/05/2009, à 20:38
- anthon
Re : [résolu] Compiler kopete-facebook
Voilà moi ça me fait pareil...
Hors ligne
#8 Le 26/05/2009, à 18:49
- paul92
Re : [résolu] Compiler kopete-facebook
Merci anthon, sinon il y a aussi un rpm pour OpenSUSE http://software.opensuse.org/search?bas … l-facebook mais ça donne pas mieux...
sudo alien -i /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
attention: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Entête V3 DSA signature: NOKEY, key ID 4b8b0a41
warning: /home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4b8b0a41
Unpacking of '/home/paul/Téléchargement/kde4-kopete-protocol-facebook-0.1.2-2.1.i586.rpm' failed at /usr/share/perl5/Alien/Package/Rpm.pm line 155
Dernière modification par paul92 (Le 26/05/2009, à 18:51)
Hors ligne
#9 Le 30/05/2009, à 20:47
- paul92
Re : [résolu] Compiler kopete-facebook
up, toujours si ça peut aider à trouver une solution, il y a aussi un pkgbuild pour Arch... http://aur.archlinux.org/packages.php?ID=26731&detail=1
Hors ligne
#10 Le 31/05/2009, à 09:41
- bruno
Re : [résolu] Compiler kopete-facebook
Tu auras beaucoup de mal à compiler ce module pour kopete. En effet ce module dépend de qjson et je ne vois aucun paquet correspondant dans les dépôts Ubuntu...
L'erreur de compilation obtenue est due soit à l'absence de paquets de développement (kdebase-workspace-dev) soit au CMakelist.txt lui même.
EDIT : je viens d'essayer après avoir compilé qtjson et corrigé les erreurs dans le CMakeList.txt de kopete-facebook j'ai fini par réussi à le compiler. Je vais maintenant tester ;-)
Dernière modification par bruno (Le 31/05/2009, à 11:32)
En ligne
#11 Le 31/05/2009, à 14:14
- paul92
Re : [résolu] Compiler kopete-facebook
Salut, j'ai compilé qjson, peux-tu me donner le bon CMakelist.txt?
Dernière modification par paul92 (Le 31/05/2009, à 14:47)
Hors ligne
#12 Le 31/05/2009, à 14:32
- bruno
Re : [résolu] Compiler kopete-facebook
Le voici :
find_package(KDE4 REQUIRED)
find_package(Qt4 REQUIRED)
INCLUDE_DIRECTORIES(${QT4_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${QT_QTGUI_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${QT_QTNETWORK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${KDE4_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${KDE4_INCLUDES})
include (KDE4Defaults)
include (MacroLibrary)
find_path(KOPETE_INCLUDES NAMES kopeteversion.h PATHS ${CMAKE_INSTALL_PREFIX}/include/kopete)
if(NOT KOPETE_INCLUDES)
MESSAGE(FATAL "kopete headers not found")
endif(NOT KOPETE_INCLUDES)
find_path(QJSON_INCLUDES NAMES json_driver.hh PATHS ${CMAKE_INSTALL_PREFIX}/include/qjson)
if(NOT QJSON_INCLUDES)
MESSAGE(FATAL "qjson headers not found")
endif(NOT QJSON_INCLUDES)
add_subdirectory( icons )
include_directories(
${KOPETE_INCLUDES}
${KOPETE_INCLUDES}/ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/
)
set(facebook_SRCS
facebook/chatservice.cpp
facebook/buddyinfo.cpp
facebook/chatmessage.cpp
)
set(kopete_facebook_PART_SRCS
facebookprotocol.cpp
facebookcontact.cpp
facebookaccount.cpp
facebookchatsession.cpp
facebookaddcontactpage.cpp
facebookeditaccountwidget.cpp
${facebook_SRCS}
)
kde4_add_ui_files(kopete_facebook_PART_SRCS
facebookaddui.ui
)
kde4_add_ui_files(kopete_facebook_PART_SRCS
facebookaccountpreferences.ui
)
kde4_add_plugin(kopete_facebook ${kopete_facebook_PART_SRCS})
#QT4_AUTOMOC(${facebook_SRCS})
kde4_add_executable(facebooktest test.cpp ${facebook_SRCS})
target_link_libraries(facebooktest kopete qjson)
target_link_libraries(kopete_facebook ${KDE4_KIO_LIBS} kopete qjson)
install(TARGETS kopete_facebook DESTINATION ${PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES kopete_facebook.desktop DESTINATION ${SERVICES_INSTALL_DIR})
En ligne
#13 Le 31/05/2009, à 14:45
- paul92
Re : [résolu] Compiler kopete-facebook
Merci, ça évolue
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/paul/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:1 (find_package)CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such ascmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.-- Configuring incomplete, errors occurred!
[HS] Sinon, j'ai été vachement déçu du salon IRC anglophone de Kopete (apparement ils connaissaient le sujet puisque le lien pour openSUSE était dans la description du salon) et sur 50 participant j'ai eu une réponse qui en gros était un rtfm plus qu'autre chose...[/HS]
Hors ligne
#14 Le 31/05/2009, à 15:08
- bruno
Re : [résolu] Compiler kopete-facebook
ERROR: cmake/modules/FindKDE4Internal.cmake not found
=> Sans avoir installé le paquet kdelibs5-dev ça va être dur ...
Tu peux aussi rajouter cette ligne en haut du fichier :
cmake_minimum_required(VERSION 2.6)
mais ce n'est pas une erreur bloquante.
En ligne
#15 Le 31/05/2009, à 15:40
- paul92
Re : [résolu] Compiler kopete-facebook
merci, je teste ça tout de suite
EDIT : Il doit encore me manquer des trucs :
paul@balthazar:~/Téléchargement/dmacvicar-kopete-facebook/build$ cmake .. -DCMAK
E_INSTALL_PREFIX=`kde4-config --prefix`
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.1 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Phonon Version: 4.3.0
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
FATALkopete headers not found
FATALqjson headers not found
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
KOPETE_INCLUDES
used as include directory in directory /home/paul/Téléchargement/dmacvicar-kopete-facebook-- Configuring incomplete, errors occurred!
Mais je sens que ça approche, en tout cas, merci déjà beaucoup pour ton aide!
Dernière modification par paul92 (Le 31/05/2009, à 15:43)
Hors ligne
#16 Le 31/05/2009, à 15:55
- bruno
Re : [résolu] Compiler kopete-facebook
Vérifie ce que tu as comme fichiers dans /usr/include/kopete et dans /usr/include/qjson
Si le premier et vide ou n'existe pas, installe libkopete-dev. Si le second est vide ou n'existe pas tu t'es planté dans la compilation de qjson.
Pour rappel la procédure à suivre est :
1. récupérer les sources et les décomapcter si nécessaire dans le dossier toto/
2. cd toto
3. mkdir build
4. cd build
5. cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
6. si pas d'erreurs on laisse une compilation pour voir :
make
7. si pas d'erreurs on construit un paquet .deb :
sudo checkinstall
(ou si on est maso ;-) 7. on installe avec make install)
Dernière modification par bruno (Le 31/05/2009, à 16:11)
En ligne
#17 Le 31/05/2009, à 16:08
- paul92
Re : [résolu] Compiler kopete-facebook
Je n'ai aucun dossier ou fichier semblable.
EDIT : j'ai installé libkopete-dev, j'ai un dossier kopete, je vais recompiler qjson, j'ai du faire une erreur...
Dernière modification par paul92 (Le 31/05/2009, à 16:11)
Hors ligne
#18 Le 31/05/2009, à 16:31
- paul92
Re : [résolu] Compiler kopete-facebook
cette fois, ça approche, j'ai compilé qjson et le dossier est bien dans /usr/include mais j'ai encore une erreur :
paul@balthazar:~/Téléchargement/dmacvicar-kopete-facebook/build$ cmake .. -DCMAK
E_INSTALL_PREFIX=`kde4-config --prefix`
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.1 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Phonon Version: 4.3.0
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
CMake Error in CMakeLists.txt:
Cannot find source file "facebookchatsession.cpp". Tried extensions .c .C
.c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx-- Build files have been written to: /home/paul/Téléchargement/dmacvicar-kopete-facebook/build
Merci!
Hors ligne
#19 Le 31/05/2009, à 16:44
- bruno
Re : [résolu] Compiler kopete-facebook
Cannot find source file "facebookchatsession.cpp"
Là je ne peux rien faire : ce fichier devrait être dans les sources que tu as téléchargé...
En ligne
#20 Le 31/05/2009, à 16:51
- paul92
Re : [résolu] Compiler kopete-facebook
on dirait que c'est l'archive qui était mauvaise, j'arrive à maker... je te dis tout de suite si c'est ok, merci!
EDIT : Merci Beaucoup! Ça marche!
Dernière modification par paul92 (Le 31/05/2009, à 16:55)
Hors ligne
#21 Le 14/06/2009, à 15:09
- ahsid
Re : [résolu] Compiler kopete-facebook
Personnellement, je l'ai installé sous Opensuse, et ça envoie tout droit !!!
OpenSuse & KDE 4.4 (mais mon rêve c'est de pouvoir remettre Chakra, Sony de #&@*ù$&# ! )
Hors ligne
Pages : 1