User:Tstaerk

From KDE TechBase
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Current problem

I cannot install kdepimlibs from trunk, I get the error message

/root/svn/kdepimlibs/kpimutils/linklocator.cpp:65: undefined reference to `KEmoticons::KEmoticons()'

make VERBOSE delivers the failed command:

cd /root/svn/kdepimlibs/kpimutils && /usr/bin/cmake -E cmake_link_script CMakeFiles/kpimutils.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -g3 -fno-inline -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,libkpimutils.so.4 -o ../lib/libkpimutils.so.4.2.0 CMakeFiles/kpimutils.dir/kpimutils_automoc.o CMakeFiles/kpimutils.dir/email.o CMakeFiles/kpimutils.dir/linklocator.o CMakeFiles/kpimutils.dir/spellingfilter.o CMakeFiles/kpimutils.dir/kfileio.o -L/root/svn/kdepimlibs/lib -lkdecore -lQtSvg -lQtGui -lkdeui -lkutils ../lib/libkmime.so.4.2.0 -lQtDBus -lQtCore -lpthread -lkdecore -Wl,-rpath,/root/svn/kdepimlibs/lib 

These commands deliver the same error message. Emoticons are defined in libkutils.so. libkutils.so is missing for me in /usr/lib64, but available in /usr/lib. I can fix the compile command by adding

-L/usr/lib to the command

I can fix the make by doing

cp /usr/lib/libkutils.so /usr/lib64

Why is libkutils not installed in /usr/lib64?

What I have done

KnowHow

make a non-debug-release => cmake -DCMAKE_BUILD_TYPE=Release . && make && make install

On suse, install into /usr/lib64 instead of /usr/lib => libsuffix, see http://bugs.scribus.net/view.php?id=6010

Wiki2mindMap

Here's how I draw a mindmap of this wiki:

Download all pages

wget http://developernew.kde.org/Special:Allpages
cat >spider<<EOF
#!/usr/bin/perl
require HTML::LinkExtor;
\$p = HTML::LinkExtor->new(\&parse, "");
sub parse {
    my(\$tag, %links) = @_;
    my (\$att, \$url) = @{[%links]};
    print "\$url\n";
}
\$p->parse_file(\$ARGV[0]);
EOF
chmod 777 spider
./spider Special\:Allpages | \
grep "^/" | \
grep -v ":" | \
grep -v "?" | \
while read a
  do wget "http://developernew.kde.org$a"
done
for file in $(ls --ignore="*:*")
do ./spider $file | \
  grep "^/" | \
  grep -v ":" | \
  grep -v "?" | \
  grep -v "Main_Page" | \
  grep -v "Getting_Started$" | \
  grep -v "/Contribute$" | \
  grep -v "^/Projects$" | \
  grep -v "^/Development$" | \
  grep -v "^/Policies$" | \
  grep -v "^/Projects$" | \
  grep -v "^/Projects/NamingTheWiki$" | \
  grep -v "^/Schedules$" | \
  grep -v "^/favicon.ico$" | \
  grep -v "/opensearch_desc.php$" | \
  grep -v "^/$" | \
  grep -v ".png$" | \
  grep -v "^/Development/Tutorials$" | \
  sed "s;^/.*/;;" | \
  while read file2
  do echo "\"$file\" -> \"$file2\"" 
  done
done >datei
echo "# to create a ps file use 'dot -Tps -o graph.ps graph.dot' (dot it part of the graphviz package)" > graph.dot
echo "digraph \"Wikimap\" { " >> graph.dot
cat datei >>graph.dot
echo "}" >> graph.dot

dot -Tps -o graph.ps graph.dot