Cela va être un peu long :
Voila ce que j'ai fait :
- récupération depuis le svn :
svn co
https://okawix.svn.sourceforge.net/svnroot/okawix okawix
- installation du paquet libbz2-dev nécessaire à la compilation de libzeno
- l'autogen.sh de libzeno me renvoie :
bakefile not found, please install it (www.bakefile.org)
- récupération de bakefile qui n'existe pas dans les dépôts d'ubuntu sur :
http://prdownloads.sourceforge.net/bakefile/bakefile-0.2.8.tar.gz?download
- compilation et installation de bakefile : OK
./configure --prefix=/usr
make
sudo make install
- compilation et installation de libzeno :
./autogen.sh
./configure --prefix=/usr
make
- le make me renvoie une erreur :
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_directory.o -I. -g -O2 ./src/cxxtools/directory.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_fileinfo.o -I. -g -O2 ./src/cxxtools/fileinfo.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_systemerror.o -I. -g -O2 ./src/cxxtools/systemerror.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_article.o -I. -g -O2 ./src/zeno/article.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_articlesearch.o -I. -g -O2 ./src/zeno/articlesearch.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_bunzip2stream.o -I. -g -O2 ./src/zeno/bunzip2stream.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_bzip2.o -I. -g -O2 ./src/zeno/bzip2.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_bzip2stream.o -I. -g -O2 ./src/zeno/bzip2stream.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_deflatestream.o -I. -g -O2 ./src/zeno/deflatestream.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_dirent.o -I. -g -O2 ./src/zeno/dirent.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_file.o -I. -g -O2 ./src/zeno/file.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_fileheader.o -I. -g -O2 ./src/zeno/fileheader.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_fileimpl.o -I. -g -O2 ./src/zeno/fileimpl.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_files.o -I. -g -O2 ./src/zeno/files.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_indexarticle.o -I. -g -O2 ./src/zeno/indexarticle.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_inflatestream.o -I. -g -O2 ./src/zeno/inflatestream.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_qunicode.o -I. -g -O2 ./src/zeno/qunicode.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_search.o -I. -g -O2 ./src/zeno/search.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_zintstream.o -I. -g -O2 ./src/zeno/zintstream.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_directoryimpl.o -I. -g -O2 ./src/cxxtools/directoryimpl.cpp
/home/jack/Bureau/okawix/trunk/libzeno/bk-deps g++ -c -o zeno_cxxfileimpl.o -I. -g -O2 ./src/cxxtools/cxxfileimpl.cpp
./src/cxxtools/cxxfileimpl.cpp: In static member function ‘static void cxxtools::FileImpl::remove(const std::string&)’:
./src/cxxtools/cxxfileimpl.cpp:75: error: ‘::remove’ has not been declared
./src/cxxtools/cxxfileimpl.cpp: In static member function ‘static void cxxtools::FileImpl::move(const std::string&, const std::string&)’:
./src/cxxtools/cxxfileimpl.cpp:82: error: ‘::rename’ has not been declared
./src/cxxtools/cxxfileimpl.cpp: In static member function ‘static void cxxtools::FileImpl::create(const std::string&)’:
./src/cxxtools/cxxfileimpl.cpp:89: error: ‘fopen’ was not declared in this scope
./src/cxxtools/cxxfileimpl.cpp:93: error: ‘fclose’ was not declared in this scope
make: *** [zeno_cxxfileimpl.o] Erreur 1
- Ceci est du à l'utilisation de gcc 4.4 dans karmic. Pour corriger, il suffit de modifier le fichier cxxfileimpl.cpp :
ajout de #include <cstdio>
- Compilation et installation : Ok
make clean
make
sudo make install
- installation des paquets pkg-config xulrunner-dev nécessaires à la compilation de zenocomponent.
- le fichier install de zenocomponent indique de faire :
./configure && make
- mais il n'y a pas de fichier configure dans le répertoire zenocomponent. J'utilise la commande autoconf pour générer le fichier configure.
- compilation : au lancement du configure, j'obtiens ceci :
checking build system type... x86_64-unknown-linux-gnu
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 ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... pkg-config
checking for xpidl... /usr/lib/xulrunner-devel-1.9.1.6/bin/xpidl
checking for main in -lzeno... no
configure: error: zeno not found
- Pour minitar, après un autoconf et ./configure, le make me donne :
g++ -o IMiniTar.so -fshort-wchar -I/usr/include/xulrunner-1.9.1.6/unstable -I/usr/include/xulrunner-1.9.1.6/stable/nspr -I/usr/include/nspr \
-fno-rtti -fno-exceptions -shared -D_POSIX_ -O3 -g -O2 minitar.cpp tar.cpp \
-L/usr/lib/xulrunner-devel-1.9.1.6/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
/usr/bin/ld: /tmp/cc8wtpWZ.o: relocation R_X86_64_32S against `vtable for MiniTar' can not be used when making a shared object; recompile with -fPIC
/tmp/cc8wtpWZ.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [IMiniTar.so] Erreur 1
- Pour minisearch, après un autoconf et ./configure, le make me donne :
/usr/lib/xulrunner-devel-1.9.1.6/bin/xpidl -m header -I /usr/share/idl/xulrunner-1.9.1.6/stable IMiniSearch.idl
g++ -o IMiniSearch.so -fshort-wchar -I/usr/include/xulrunner-1.9.1.6/stable -I/usr/include/xulrunner-1.9.1.6/stable/nspr -I/usr/include/nspr \
-fno-rtti -fno-exceptions -shared -D_POSIX_ -O3 -g -O2 minicomponent.cpp minisearch.cpp utf8.cpp \
-L/usr/lib/xulrunner-devel-1.9.1.6/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
In file included from /usr/include/string.h:640,
from wordhash.h:6,
from minisearch.h:12,
from minisearch.cpp:1:
In function ‘void* memset(void*, int, size_t)’,
inlined from ‘wordHash::wordDesc::wordDesc(char*, const char*)’ at wordhash.h:59,
inlined from ‘wordHash::wordDesc wordHash::append(const char*)’ at wordhash.h:86,
inlined from ‘void miniEngine::wordItemTable::feed(wordHash&)’ at minisearch.cpp:90,
inlined from ‘miniEngine::miniEngine(std::string&)’ at minisearch.cpp:208:
/usr/include/bits/string3.h:82: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters
In function ‘void* memset(void*, int, size_t)’,
inlined from ‘wordHash::wordDesc::wordDesc(char*, const char*)’ at wordhash.h:59,
inlined from ‘wordHash::wordDesc wordHash::append(const char*)’ at wordhash.h:86,
inlined from ‘void miniEngine::wordItemTable::feed(wordHash&)’ at minisearch.cpp:90,
inlined from ‘miniEngine::miniEngine(std::string&)’ at minisearch.cpp:208:
/usr/include/bits/string3.h:82: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters
/usr/bin/ld: /tmp/ccf4YWfI.o: relocation R_X86_64_32S against `vtable for MiniSearch' can not be used when making a shared object; recompile with -fPIC
/tmp/ccf4YWfI.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [IMiniSearch.so] Erreur 1
Je n'ai donc pas réussi à compiler zenocomponet, minitar et minisearch.