#1 Le 07/06/2010, à 18:03
- xmatx
Installation avec cmake
Bonjour,
ma résidence vient de mettre en place un logiciel pour partager les fichiers dans la résidence, qui s'appelle WiLink.
Le fichier d'aide me donne
Requirements
============On Debian
----------$ sudo aptitude install cmake libgnome-keyring-dev libgphoto2-2-dev libqt4-dev
Building wiLink
===============$ mkdir build
$ cd build
$ cmake ..
$ make
J'ai installé les requirements et exécuté les différentes commandes, avec quelques erreurs au début (que je n'ai pas mis ici), ce qui me donne :
mathieu@mathieu:~$ mkdir build
mathieu@mathieu:~$ cd build
mathieu@mathieu:~/build$ cmake CMakelists.txt
-- 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.6.2 (using /usr/bin/qmake)
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Looking for include files HAVE_SCRNSAVER_H
-- Looking for include files HAVE_SCRNSAVER_H - not found.
-- Found GPhoto2 library: /usr/lib/libgphoto2.so
-- checking for module 'gnome-keyring-1'
-- found gnome-keyring-1, version 2.30.0
-- Found GNOME keyring support
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mathieu/build
mathieu@mathieu:~/build$ make
[ 0%] Generating wallet/moc_dummy.cxx.... J'ai enlevé les détails de la liste, si c'est important dite le moi.
[100%] Building CXX object src/qnetio/tests/CMakeFiles/qnetio-wallet.dir/moc_qnetio-wallet.cxx.o
Linking CXX executable qnetio-wallet
[100%] Built target qnetio-walletmathieu@mathieu:~/build$ sudo make install (le make install n'était pas indiqué sur le fichier d'aide mais l'était dans la doc ubuntu, j'ai préféré l'utiliser, de toute façon je n'arrivais pas a avoir le logiciel)
[sudo] password for mathieu:
[ 14%] Built target qnetio
[ 18%] Built target tests
[ 21%] Built target idle
[ 50%] Built target qxmpp
[ 94%] Built target wiLink
[ 95%] Built target gphoto_plugin
[ 96%] Built target gnome_plugin
[ 97%] Built target qnetio-filesystem
[100%] Built target qnetio-wallet
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/wiLink
-- Installing: /usr/local/lib/qt4/plugins/filesystem/libgphoto_plugin.so
-- Installing: /usr/local/lib/qt4/plugins/wallet/libgnome_plugin.so
-- Installing: /usr/local/bin/qnetio-wallet
Je pense donc avoir fini l'installation mais je ne sais pas comment lancer ce programme. A la premiere tentative j'avais ouvert un executable (appelé wilink) qui me demandait mon nom d'utilisateur et mdp, et lorsque je l'ai donné il ne sait rien passé. Maintenant je n'arrive plus a l'ouvrir.
J'ai essayé de lancer le programme dans le terminal en écrivant wilink, j'ai essayé d'ouvrir l'exécutable wilink placé dans usr/local/bin/ et dans le dossier build/src/ mais je n'obtiens rien.
Quelqu'un aurait-il une idée, pour lancer le logiciel?
Merci beaucoup !
Hors ligne
#2 Le 07/06/2010, à 18:04
- xmatx
Re : Installation avec cmake
Je vous donne le lien de la source, si ça peut vous etre utile : https://download.wifirst.net/public/wiLink-0.9.4.tar.bz2
Hors ligne
#3 Le 08/06/2010, à 00:17
- xmatx
Re : Installation avec cmake
Des news, j'ai un collègue qui a aussi installé le programme et ça marche parfaitement chez lui, j'ai supprimé les fichiers et recommencé l'install pour voir et je n'obtiens toujours rien.
J'ai cependant trouvé la commande à lancer : wiLink, qui me donne comme erreur :
mathieu@mathieu:~/build$ wiLink
Using data directory "/home/mathieu/.local/share/data/Wifirst/wiLink"
DummyWallet initialised
Wallet authentication required for "www.wifirst.net"
SRV lookup for "_xmpp-client._tcp.wifirst.net" failed
SRV lookup error: Aucune adresse associée avec le nom
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QMYSQL3 QMYSQL
ASSERT: "sharesDb.open()" in file /home/mathieu/build/src/plugins/shares/database.cpp, line 60
Abandon
Si quelqu'un pouvait m'aider.
Merci beaucoup
Hors ligne
#4 Le 21/06/2010, à 11:48
- jeremy_laine
Re : Installation avec cmake
Installe le package libqt4-sql-sqlite et ça devrait marcher.
Par ailleurs, plutôt que de compiler / installer à la main le logiciel, tu peux générer un package .deb à l'aide de la commande:
dpkg-buildpackage
Si tu as d'autres questions concernant wiLink, n'oublie pas qu'un forum lui est dédié sur wifirst.net
Jeremy
Hors ligne