kde4 - cmakekde - kompilacja

Zagadnienia dotyczące menadżerów okien, środowisk graficznych - X, KDE, GNOME, Fluxbox, XFCE., Compiz itp.
LazzaR
Posty: 11
Rejestracja: 18 kwietnia 2008, 20:23

kde4 - cmakekde - kompilacja

Post autor: LazzaR »

Witam,
Probuje skompilowac kde4 z zrodel wg tej instrukcji link.
Szukalem pomocy na forum link, niestety nie znalazlem rozwiania.
Nie moge odpalic cmakekde

Kod: Zaznacz cały

kde4@debian:~/kde/src/kdesupport$ cmakekde
bash: cmakekde: command not found
dodam informacje:
root@debian:/home/someone$ cat ~/.bashrc

Kod: Zaznacz cały

###
## A script to setup some needed variables and functions for KDE 4 development.
## This should normally go in the ~/.bashrc file of your kde-devel user, so
## that it is executed when a session for that user is started.
##
## Example:
##   su - kde-devel
##   kwrite ~/.bashrc
##   (then paste this file)
##   exit
##   su - kde-devel
##
## If you don't use a separate user, the first section with the 
## environment variables should go into a separate file of course.
 
# KDE
export KDEDIR=$HOME/kde
export KDEHOME=$HOME/.kde4
export KDETMP=/tmp/$USER-kde4
mkdir -p $KDETMP
export KDEDIRS=$KDEDIR
export PKG_CONFIG_PATH=$KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
# Qt
# only set Qt related variables if you compiled Qt on your own
# (which is discouraged). if you use the distro provided Qt, skip
# this section. Uncomment it if neccessary.
#export QTDIR=$HOME/qt-copy
#export QT_PLUGINS_DIR=$KDEDIR/lib/kde4/plugins:$QT_PLUGINS_DIR
#export PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
# DBus
# only set DBUS related variables if you compiled dbus on your own
# (which is really discouraged). if you use the distro provided dbus,
# skip this variable. Uncomment it if neccessary.
#export DBUSDIR=$KDEDIR
#export PKG_CONFIG_PATH=$DBUSDIR/lib/pkgconfig:$PKG_CONFIG_PATH
# Other
# you might want to remove $PATH from the end of this line and add any
# essential items from your path - to make sure the your kde3 path isn't
# in here. Use the commented versions if you defined QTDIR above.
#export PATH=$KDEDIR/bin:$QTDIR/bin:/usr/local/bin:$PATH
#export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$KDEDIR/bin:/usr/local/bin:$PATH
export LD_LIBRARY_PATH=$KDEDIR/lib:$LD_LIBRARY_PATH
# only needed on some strange systems for compiling Qt. do not set
# it unless you have to.
#export YACC='byacc -d'
# XDG
unset XDG_DATA_DIRS # to avoid seeing kde3 files from /usr
unset XDG_CONFIG_DIRS
 
# build and src folders
# you might want to change these!
export KDE_BUILD=$HOME/kde/build
export KDE_SRC=$HOME/kde/src
 
# This will make the debug output prettier
export KDE_COLOR_DEBUG=1
export QTEST_COLORED=1
 
# Make
# Tell many scripts how to switch from source dir to build dir:
export OBJ_REPLACEMENT="s#$KDE_SRC#$KDE_BUILD#"
# Use makeobj instead of make, to automatically switch to the build dir.
# If you don't have makeobj, install the package named kdesdk-scripts or 
# kdesdk, or check out kdesdk/scripts from svn, or just don't set the alias
# yet.
alias make=makeobj
 
##
# IMPORTANT!  Uncomment the following lines if DBus does not work. DBus is not
# working if, when you run `dbus-uuidgen --ensure && qdbus`, you get an error.
#
# alias dbusstart="eval `PATH=$DBUSDIR/bin \
#  $DBUSDIR/bin/dbus-launch --auto-syntax`"
 
##
# A function to easily build the current directory of KDE.
#
# This builds only the sources in the current ~/{src,build}/KDE subdirectory.
# Usage: cs KDE/kdebase && cmakekde
#   will build/rebuild the sources in ~/src/KDE/kdebase
#
function cmakekde {
	if test -n "$1"; then
		# srcFolder is defined via command line argument
		srcFolder="$1"
	else
		# get srcFolder for current dir
		srcFolder=`pwd | sed -e s,$KDE_BUILD,$KDE_SRC,`
	fi
	# we are in the src folder, change to build directory
	# Alternatively, we could just use makeobj in the commands below...
	current=`pwd`
	if [ "$srcFolder" = "$current" ]; then
		cb
	fi
	# to enable tests, add -DKDE4_BUILD_TESTS=TRUE to the next line.
	# you can also change "debugfull" to "debug" to save disk space.
        # added "nice make..." to allow the user to work on the box while
        # compiling
        # Note: To speed up compiling, change 'make -j2' to 'make -jx',
        #   where x is your number of processors +1
	cmake "$srcFolder" -GKDevelop3 -DCMAKE_INSTALL_PREFIX=$KDEDIR \
		-DCMAKE_BUILD_TYPE=debugfull&& \
	nice make -j2 && \
	make install;
}
##
# for the lazy ones, add/comment other directories 
function cmakekdeall {
        cs kdesupport && svn up && cmakekde
        cs KDE/kdelibs && svn up && cmakekde
        cs KDE/kdepimlibs && svn up && cmakekde
        cs KDE/kdebase && svn up && cmakekde
        cs KDE/kdepim && svn up && cmakekde
        cs KDE/kdegraphics && svn up && cmakekde
        cs KDE/kdemultimedia && svn up && cmakekde
        cs KDE/kdenetwork && svn up && cmakekde
        cs KDE/kdeutils && svn up && cmakekde
}
 
##
# A function to easily change to the build directory.
# Usage: cb KDE/kdebase
#   will change to $KDE_BUILD/KDE/kdebase
# Usage: cb
#   will simply go to the build folder if you are currently in a src folder
#   Example:
#     $ pwd
#     /home/user/src/KDE/kdebase
#     $ cb && pwd
#     /home/user/build/KDE/kdebase
#
function cb {
	# Make sure build directory exists.
	mkdir -p "$KDE_BUILD"
 
	# command line argument
	if test -n "$1"; then
		cd "$KDE_BUILD/$1"
		return
	fi
	# substitute src dir with build dir
	dest=`pwd | sed -e s,$KDE_SRC,$KDE_BUILD,`
	if test ! -d "$dest"; then
		# build directory does not exist, create
		mkdir -p "$dest"
	fi
	cd "$dest"
}
 
##
# Change to the source directory.  Same as cb, except this
# switches to $KDE_SRC instead of $KDE_BUILD.
# Usage: cs KDE/kdebase
#	will change to $KDE_SRC/KDE/kdebase
# Usage: cs
#   will simply go to the source folder if you are currently in a build folder
#   Example:
#     $ pwd
#     /home/user/build/KDE/kdebase
#     $ cs && pwd
#     /home/user/src/KDE/kdebase
#
function cs {
	# Make sure source directory exists.
	mkdir -p "$KDE_SRC"
 
	# command line argument
	if test -n "$1"; then
		cd "$KDE_SRC/$1"
	else
		# substitute build dir with src dir
		dest=`pwd | sed -e s,$KDE_BUILD,$KDE_SRC,`
		current=`pwd`
		if [ "$dest" = "$current" ]; then
			cd "$KDE_SRC"
		else
			cd "$dest"
		fi
	fi
}
 
##
# Add autocompletion to cs function
#
function _cs_scandir
{
	base=$1
	ext=$2
	if [ -d $base ]; then
		for d in `ls $base`; do
			if [ -d $base/$d ]; then
				dirs="$dirs $ext$d/"
			fi
		done
	fi
}
 
function _cs()
{
	local cur dirs
	_cs_scandir "$KDE_SRC"
	_cs_scandir "$KDE_SRC/KDE" "KDE/"
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	COMPREPLY=( $(compgen -W "${dirs}" -- ${cur}) )
}
 
# Remove comment on next line to enable cs autocompletion
#complete -F _cs cs
 
function start3app {
  mkdir -p /tmp/$USER-kde
  export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games 
  export LD_LIBRARY_PATH= 
  export KDETMP=/tmp/$USER-kde 
  export KDEVARTMP=/var/tmp/$USER-kde 
  export KDEHOME=$HOME/.kde 
  export KDEDIR=/usr 
  export KDEDIRS=$KDEDIR 
  export DISPLAY=:0 
  eval "$@"
  source $HOME/.bashrc   #Reset environment variables again
}
po odpaleniu polecenia

Kod: Zaznacz cały

root@debian:/home/dawid$ source ~/.bashrc
dalej mam:

Kod: Zaznacz cały

kde4@debian:~/kde/src/kdesupport$ cmakekde
bash: cmakekde: command not found
Co powinienem zrobic by skompilowac kde4?
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

Polecenie

Kod: Zaznacz cały

source ~/.bashrc
masz odpalać nie z konta roota, tylko na swoim testowym koncie kde4.
Dokładniej, polecenie to powoduje przeładowanie pliku .bashrc i sprawdzenie, czy nie pojawiły się tam nowe funkcje/definicje ścieżek/aliasy. Nie wystarczy sama edycja tego pliku, trzeba jeszcze powłoce dać znać, że coś się tam zmieniło.
Taki sam efekt da wylogowanie się z konta kde4 i ponowne zalogowanie

Edit: zalecałbym również przejrzenie funkcji cmakekde (tylko nie mów że nie możesz jej znaleźć) w tym pliku i zmianę linijki

Kod: Zaznacz cały

-DCMAKE_BUILD_TYPE=debugfull
na

Kod: Zaznacz cały

-DCMAKE_BUILD_TYPE=Release

(pozbędziesz się dzięki temu mnóstwa informacji debujących z kodu, przez co powinien znacznie przyspieszyć.
oraz zmianę

Kod: Zaznacz cały

make -j2
na

Kod: Zaznacz cały

make -j3
jeśli masz procesor dwurdzeniowy

Dodatkowo, jeśli chciałbyś pobawić się flagami kompilacji, to

Kod: Zaznacz cały

make edit_cache
albo make cache_edit
(nie pamiętam dokładnie) w folderze ze źródłami (oddzielnie ustawia się to dla kdesupport, kdelibs, kdebase itd)
W szczególności polecam zmianę z O3 na O2.
LazzaR
Posty: 11
Rejestracja: 18 kwietnia 2008, 20:23

Post autor: LazzaR »

Dziękuję, zadziałało ;)

Teraz pojawił się mi taki błąd:
[ 69%] Building CXX object strigi/src/archivereader/CMakeFiles/archivecat.dir/archivecat.o
Linking CXX static library libpdfstream.a
[ 69%] Built target pdfstream
[ 69%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
Linking CXX executable archivecat
[ 69%] Built target archivecat
[ 69%] Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
No DOMImplementationRegistry found.
Scanning dependencies of target strigidaemonconfiguration
[ 69%] Scanning dependencies of target metadataproperties
Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
[ 69%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
No DOMImplementationRegistry found.
No DOMImplementationRegistry found.
[ 69%] [ 69%] Building CXX object strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.o
Building CXX object strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.o
c++: c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/strigidaemonconfiguration.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
/home/kde4/kde/build/kdesupport/strigi/src/xsd/metadataproperties.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: make[2]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
*** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/all] Błąd 2
make: *** [all] Błąd 2
fnmirk
Senior Member
Posty: 8295
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

LazzaR przejrzałeś te teksty, do których linki zamieściłeś w pierwszym poście :-P Mnie się wydaje, że je tylko znalazłeś i stwierdziłeś prościej zadać pytanie niż się w nie zagłębiać.

http://debian.linux.pl/viewtopic.php?p=57088#57088

Autor postu miał dokładnie taki sam błąd jak Ty i przytacza go wyżej (wcześniejsze teksty).


Przejrzyj uwagi jakie zawarł w swoich postach ruun, przed wklejeniem kolejnego tasiemca. Czasem ktoś przegląda :-P
apacz42
Posty: 9
Rejestracja: 06 maja 2007, 19:02

Post autor: apacz42 »

Witam

Pozwolę sobie odświeżyć temat, bo pomimo upływu czasu problem widzę nie został rozwiązany, a i ja mam podobny.
próbuję skompilować KDE4 z svn i oto co dostaję po cmakekde:

Kod: Zaznacz cały

kde4@sandbox:~/kde/src/kdesupport$ cmakekde
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found Automoc4: /home/kde4/kde/build/kdesupport/automoc/automoc4
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ MySQL Server
Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found Qt-Version 4.4.3
-- Found Redland 1.0.7: libs - /usr/lib/librdf.so; includes - /usr/include
-- Found Raptor 1.4.17: libs - /usr/lib/libraptor.so; includes - /usr/include
-- Found Rasqal 0.9.15: libs - /usr/lib/librasqal.so; includes - /usr/include
-- Found CLucene library: /usr/lib/libclucene.so
-- Found CLucene include dir: /usr/include
-- Found CLucene library dir: /usr/lib
-- Found CLucene: /usr/lib/libclucene.so
-- Could not find Java JNI
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
---------------------------------------------------------------------------------------
-- Soprano Components that will be built:
   * Redland storage backend
   * Raptor RDF parser
     (including TriG parser)
   * Raptor RDF serializer
   * The CLucene-based full-text search index library

-- Soprano Components that will NOT be built:
   * Sesame2 storage backend (java-based)
---------------------------------------------------------------------------------------
** Expat is disabled. No support for XML via Expat
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found CLucene library: /usr/lib/libclucene.so
-- Found CLucene include dir: /usr/include
-- Found CLucene library dir: /usr/lib
-- Found CLucene: /usr/lib/libclucene.so
** CLucene is found. Support for CLucene backend is enabled
** HyperEstraier is disabled. No support for HyperEstraier backend
** SQLite is disabled. No support for SQLite backend
** Exiv2 is found. Support for indexing of EXIF/IPTC metadata is enabled
-- Found Qt-Version 4.4.3
** Qt4 is found. Support for Qt4 GUI client is enabled
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found dbus-1 release >= 1.0
** DBus-1 is found. Support for DBus interface in Strigi daemon is enabled
** Log4cxx is disabled. No support for advanced logging
** FAM is disabled. No support for efficient file change monitoring system
-- Ensure you cppunit installed version is at least 1.12.0
** CppUnit not found. Support for Strigi unit tests is disabled
Java5 found TRUE
-- dbus support enabled
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found Automoc4: /home/kde4/kde/build/kdesupport/automoc/automoc4
-- Found GStreamer Plugins:
    /usr/lib/libgstaudio-0.10.so
    /usr/lib/libgstcdda-0.10.so
    /usr/lib/libgstnetbuffer-0.10.so
    /usr/lib/libgstpbutils-0.10.so
    /usr/lib/libgstriff-0.10.so
    /usr/lib/libgstrtp-0.10.so
    /usr/lib/libgstrtsp-0.10.so
    /usr/lib/libgstsdp-0.10.so
    /usr/lib/libgsttag-0.10.so
    /usr/lib/libgstvideo-0.10.so
-- Found GLIB2: /usr/lib/libglib-2.0.so
-- Found GObject libraries: gobject-2.0;glib-2.0
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found ALSA: /usr/lib/libasound.so
--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ GStreamer
+ GStreamer video plugin
+ GStreamer audio plugin
+ GLib2
+ LibXml2
+ OpenGL
+ XCB
Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Found TELEPATHY_QT: QtTelepathyClient
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
-- Found TELEPATHY_QT: QtTelepathyClient
-- Found TAPIOCA_QT: QtTapioca
-- Configuring done
CMake Warning (dev) at soprano/backends/redland/CMakeLists.txt:36 (add_library):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "soprano_redlandbackend" links to some libraries for which
  the linker must search:

    -lpthread

  and other libraries with known full path:

    /home/kde4/kde/build/kdesupport/soprano/backends/redland/libsoprano_redlandcore.a
    /home/kde4/kde/build/kdesupport/soprano/soprano/libsoprano.so.4.1.0

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/kde4/kde/build/kdesupport
[  0%] Built target automoc4
[  0%] Built target akonadiprotocolinternals
[  5%] Built target tag
[  5%] Built target tstringtest
[ 12%] Built target soprano
[ 12%] Built target testpt
[ 13%] Built target xmlstream
[ 16%] Built target streams
[ 16%] [ 16%] Built target grepindex
Built target grepindexer
[ 16%] Built target searchclient
[ 17%] Built target filterwidget
[ 17%] Built target dbuscpp
[ 17%] Built target strigiqtdbusclient
[ 17%] Built target eventlistener
[ 17%] Built target xesam
[ 17%] Built target archiveengine
[ 17%] Built target pdf
[ 19%] Built target testrunner-streams
[ 20%] Built target qclient
[ 20%] Built target strigiqtdbustest
[ 20%] Built target filterwidgettest
[ 21%] Built target strigiasynctest
[ 21%] [ 23%] Built target dbustest
Built target newdaemon
[ 24%] Built target qimageblitz
[ 25%] Built target cpptoxml
[ 28%] Built target phonon
[ 38%] Built target QtTelepathyClient
[ 47%] Built target akonadiprivate
[ 47%] Built target akonadictl
[ 50%] Built target akonadi_control
[ 50%] Built target interpretertest
[ 50%] Built target querybuildertest
Generating handlertest.moc
[ 50%] Built target docs
[ 50%] Built target tag_c
[ 51%] Built target sopranoindex
[ 51%] Built target soprano_redlandcore
[ 51%] Built target soprano_raptorparser
[ 52%] Built target soprano_nquadparser
[ 52%] Generating raptorserializer.moc
Scanning dependencies of target soprano_raptorserializer
[ 52%] Building CXX object soprano/serializers/raptor/CMakeFiles/soprano_raptorserializer.dir/raptorserializer.o
Linking CXX shared library libsoprano_raptorserializer.so
[ 52%] Built target soprano_raptorserializer
[ 52%] Built target soprano_nquadserializer
[ 56%] Built target sopranoclient
Scanning dependencies of target handlertest
[ 58%] Built target sopranoserver
[ 58%] Built target onto2vocabularyclass
Scanning dependencies of target sopranocmd
[ 58%] Building CXX object akonadi/server/tests/unittest/CMakeFiles/handlertest.dir/handlertest.o
[ 58%] Building CXX object soprano/tools/CMakeFiles/sopranocmd.dir/sopranocmd.o
[ 59%] Building CXX object akonadi/server/tests/unittest/CMakeFiles/handlertest.dir/teststoragebackend.o
Linking CXX executable sopranocmd
[ 59%] Built target sopranocmd
[ 59%] Built target asyncmodeltest
[ 59%] Built target cluceneindextest
[ 60%] Built target errortest
[ 60%] Built target multithreadingtest
[ 60%] Built target inferencemodeltest
[ 60%] Built target literaltest
[ 60%] Built target localsocketmultithreadtest
[ 61%] Built target nodetest
[ 61%] Built target nrlmodeltest
[ 61%] Built target parsertest
[ 61%] Built target queryresultstatementiteratortest
[ 61%] Built target sopranomodeltest
[ 61%] Built target redlandmultithreadtest
[ 62%] Generating RedlandPersistentModelTest.moc
[ 62%] Building CXX object akonadi/server/tests/unittest/CMakeFiles/handlertest.dir/handlertest_automoc.o
Linking CXX executable handlertest
Scanning dependencies of target redlandpersistentmodeltest
[ 62%] Built target handlertest
[ 62%] Built target statementiteratortest
[ 62%] Built target serveroperatortest
[ 62%] Built target simplestatementiteratortest
[ 62%] Building CXX object soprano/test/CMakeFiles/redlandpersistentmodeltest.dir/RedlandPersistentModelTest.o
[ 62%] Built target sopranodbusclienttest
[ 62%] Built target sopranodbusmultithreadtest
[ 63%] Built target sopranodbussignalspy
[ 63%] Built target sopranodclienttest
[ 63%] Built target sopranodsocketclienttest
[ 64%] Built target statementtest
[ 64%] Built target storagescalingtest
[ 64%] Built target oletest
[ 64%] Built target pdfstream
[ 64%] Built target archivecat
[ 64%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
Linking CXX executable redlandpersistentmodeltest
[ 64%] Built target redlandpersistentmodeltest
[ 64%] Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
[ 64%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
No DOMImplementationRegistry found.
[ 64%] Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
[ 64%] Building CXX object strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.cpp.o
c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/metadataproperties.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.cpp.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
No DOMImplementationRegistry found.
[ 64%] Building CXX object strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.cpp.o
c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/strigidaemonconfiguration.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.cpp.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/all] Błąd 2
make: *** [all] Błąd 2
Z tego co pamiętam, to w zeszłym roku jakoś udało mi się rozwiązać ten problem, ale jak :-/ tego już niestety nie pamiętam.

To co mi się rzuca w oczy to:

1. w czasie sprawdzania konfiguracji
-- Could not find Java JNI

2. informacja pod koniec kompilacji
No DOMImplementationRegistry found.

Obydwie informacje kierują mnie przez google do kilku bibliotek (min.: libdom1-java, libjaxp1.2-java libjmagick6-jni libjogl-jni), które są już zainstalowane.

Z góry dziękuję za wszelką pomoc i wskazówki. :)

pzdr.
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

Jaką masz wersję cmake? KDE 4.2 wymaga 2.6.2
apacz42
Posty: 9
Rejestracja: 06 maja 2007, 19:02

Post autor: apacz42 »

Na początku próbowałem z wersją 2.6.0-6 z debianowego repozytorium.
Później na tej stronie
http://techbase.kde.org/Getting_Started ... E4/Generic
znalazłem informację iż potrzebny jest cmake 2.6.1, a jako iż nie mogłem znaleźć paczki to ją sam stworzyłem. Spróbuję jeszcze raz, tym razem z cmake w wersji 2.6.2.

pzdr.

EDI:
cmake w wersji 2.6.2 też nie daje rady.
Poniżej wynik.

Kod: Zaznacz cały

kde4@sandbox:~/kde/src/kdesupport$ cmakekde
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found Automoc4: /home/kde4/kde/build/kdesupport/automoc/automoc4
--
---------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ MySQL Server
Congratulations! All external packages have been found.
---------------------------------------

-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- PKGCONFIG() indicates that cppunit is not installed (install the package which contains cppunit.pc if you want to support this feature)
-- Found Qt-Version 4.4.3
-- Found Redland 1.0.7: libs - /usr/lib/librdf.so; includes - /usr/include
-- Found Raptor 1.4.17: libs - /usr/lib/libraptor.so; includes - /usr/include
-- Found Rasqal 0.9.15: libs - /usr/lib/librasqal.so; includes - /usr/include
-- Found CLucene library: /usr/lib/libclucene.so
-- Found CLucene include dir: /usr/include
-- Found CLucene library dir: /usr/lib
-- Found CLucene: /usr/lib/libclucene.so
-- Could not find Java JNI
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
---------------------------------------
-- Soprano Components that will be built:
   * Redland storage backend
   * Raptor RDF parser
     (including TriG parser)
   * Raptor RDF serializer
   * The CLucene-based full-text search index library

-- Soprano Components that will NOT be built:
   * Sesame2 storage backend (java-based)
---------------------------------------
** Expat is disabled. No support for XML via Expat
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found CLucene library: /usr/lib/libclucene.so
-- Found CLucene include dir: /usr/include
-- Found CLucene library dir: /usr/lib
-- Found CLucene: /usr/lib/libclucene.so
** CLucene is found. Support for CLucene backend is enabled
** HyperEstraier is disabled. No support for HyperEstraier backend
** SQLite is disabled. No support for SQLite backend
** Exiv2 is found. Support for indexing of EXIF/IPTC metadata is enabled
-- Found Qt-Version 4.4.3
** Qt4 is found. Support for Qt4 GUI client is enabled
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found dbus-1 release >= 1.0
** DBus-1 is found. Support for DBus interface in Strigi daemon is enabled
** Log4cxx is disabled. No support for advanced logging
** FAM is disabled. No support for efficient file change monitoring system
-- Ensure you cppunit installed version is at least 1.12.0
** CppUnit not found. Support for Strigi unit tests is disabled
Java5 found TRUE
-- dbus support enabled
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake-qt4)
-- Found Threads: TRUE
-- Found Automoc4: /home/kde4/kde/build/kdesupport/automoc/automoc4
-- Found GStreamer Plugins:
    /usr/lib/libgstaudio-0.10.so
    /usr/lib/libgstcdda-0.10.so
    /usr/lib/libgstnetbuffer-0.10.so
    /usr/lib/libgstpbutils-0.10.so
    /usr/lib/libgstriff-0.10.so
    /usr/lib/libgstrtp-0.10.so
    /usr/lib/libgstrtsp-0.10.so
    /usr/lib/libgstsdp-0.10.so
    /usr/lib/libgsttag-0.10.so
    /usr/lib/libgstvideo-0.10.so
-- Found GLIB2: /usr/lib/libglib-2.0.so
-- Found GObject libraries: gobject-2.0;glib-2.0
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found ALSA: /usr/lib/libasound.so
--
---------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ GStreamer
+ GStreamer video plugin
+ GStreamer audio plugin
+ GLib2
+ LibXml2
+ OpenGL
+ XCB
Congratulations! All external packages have been found.
---------------------------------------

-- Found TELEPATHY_QT: QtTelepathyClient
-- Looking for doxygen...
-- Looking for doxygen... - found /usr/bin/doxygen
-- Looking for dot tool...
-- Looking for dot tool... - found /usr/bin/dot
-- Found TELEPATHY_QT: QtTelepathyClient
-- Found TAPIOCA_QT: QtTapioca
-- Configuring done
CMake Warning (dev) at soprano/backends/redland/CMakeLists.txt:36 (add_library):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "soprano_redlandbackend" links to some libraries for which
  the linker must search:

    -lpthread

  and other libraries with known full path:

    /home/kde4/kde/build/kdesupport/soprano/backends/redland/libsoprano_redlandcore.a
    /home/kde4/kde/build/kdesupport/soprano/soprano/libsoprano.so.4.1.0

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/kde4/kde/build/kdesupport
[  0%] Built target automoc4
[  0%] Built target akonadiprotocolinternals
[  5%] Built target tag
[  5%] Built target tstringtest
[ 12%] Built target soprano
[ 12%] Built target testpt
[ 13%] Built target xmlstream
[ 16%] Built target streams
[ 16%] [ 16%] Built target grepindex
Built target grepindexer
[ 16%] Built target searchclient
[ 17%] Built target filterwidget
[ 17%] Built target dbuscpp
[ 17%] Built target eventlistener
[ 17%] Built target strigiqtdbusclient
[ 17%] Built target xesam
[ 17%] Built target archiveengine
[ 17%] Built target pdf
[ 19%] Built target testrunner-streams
[ 20%] Built target qclient
[ 21%] Built target strigiasynctest
[ 21%] Built target strigiqtdbustest
[ 21%] Built target filterwidgettest
[ 23%] Built target newdaemon
[ 23%] Built target dbustest
[ 24%] Built target qimageblitz
[ 25%] Built target cpptoxml
[ 28%] Built target phonon
[ 38%] Built target QtTelepathyClient
[ 47%] Built target akonadiprivate
[ 47%] Built target akonadictl
[ 47%] Built target docs
[ 47%] Built target interpretertest
[ 47%] Built target querybuildertest
[ 50%] Built target akonadi_control
[ 50%] Built target tag_c
[ 51%] Built target handlertest
[ 51%] Built target soprano_redlandcore
[ 52%] Built target sopranoindex
[ 53%] [ 53%] Built target soprano_raptorparser
Built target soprano_nquadparser
[ 53%] [ 53%] Built target soprano_nquadserializer
Built target soprano_raptorserializer
[ 56%] Built target sopranoserver
[ 59%] Built target sopranoclient
[ 59%] Built target onto2vocabularyclass
[ 59%] Built target asyncmodeltest
[ 59%] Built target cluceneindextest
[ 60%] Built target errortest
[ 60%] Built target multithreadingtest
[ 60%] Built target inferencemodeltest
[ 60%] Built target literaltest
[ 60%] Built target localsocketmultithreadtest
[ 61%] Built target nodetest
[ 61%] Built target nrlmodeltest
[ 61%] Built target parsertest
[ 61%] Built target queryresultstatementiteratortest
[ 61%] Built target sopranomodeltest
[ 61%] Built target statementiteratortest
[ 61%] Built target redlandmultithreadtest
[ 61%] Built target simplestatementiteratortest
[ 61%] Built target serveroperatortest
[ 61%] Built target sopranodbusclienttest
[ 61%] Built target sopranodbusmultithreadtest
[ 62%] Built target sopranodbussignalspy
[ 62%] Built target sopranodclienttest
[ 62%] Built target sopranodsocketclienttest
[ 63%] Built target statementtest
[ 63%] Built target storagescalingtest
[ 63%] [ 63%] Built target pdfstream
Built target oletest
[ 63%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
[ 63%] Built target archivecat
[ 63%] Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
No DOMImplementationRegistry found.
[ 63%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
[ 63%] Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
[ 63%] Building CXX object strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.cpp.o
c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/metadataproperties.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.cpp.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
No DOMImplementationRegistry found.
[ 63%] Building CXX object strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.cpp.o
c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/strigidaemonconfiguration.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.cpp.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/all] Błąd 2
make: *** [all] Błąd 2
pzdr.
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

Hmm... kompilujesz trunk'a tak?
To poczekaj dzień albo 2, samo się naprawi. :-)
Jak kompilowałem kiedyś 4.1 to parę razy miałem takie sytuacje, że kod z trunk'a się nie kompilował.
apacz42
Posty: 9
Rejestracja: 06 maja 2007, 19:02

Post autor: apacz42 »

Kompiluje trunka :) .
Dzisiaj próbowałem z wersją 894477.
Niestety cały czas ten sam problem:

Kod: Zaznacz cały

...
[ 62%] Building CXX object soprano/test/CMakeFiles/sopranodsocketclienttest.dir/sopranodsocketclienttest.o
Linking CXX executable sopranodclienttest
[ 62%] Built target sopranodclienttest
[ 62%] Generating StatementTest.moc
Scanning dependencies of target statementtest
[ 63%] Building CXX object soprano/test/CMakeFiles/statementtest.dir/StatementTest.o
Linking CXX executable sopranodsocketclienttest
[ 63%] Built target sopranodsocketclienttest
[ 63%] Generating storagescalingtest.moc
Scanning dependencies of target storagescalingtest
[ 63%] Building CXX object soprano/test/CMakeFiles/storagescalingtest.dir/storagescalingtest.o
Linking CXX executable statementtest
[ 63%] Built target statementtest
Scanning dependencies of target oletest
[ 63%] Building CXX object strigi/src/streams/CMakeFiles/oletest.dir/oletest.cpp.o
Linking CXX executable oletest
[ 63%] Built target oletest
Scanning dependencies of target pdfstream
[ 63%] Building CXX object strigi/src/streams/pdf/CMakeFiles/pdfstream.dir/pdfparser.cpp.o
Linking CXX executable storagescalingtest
[ 63%] Built target storagescalingtest
Scanning dependencies of target archivecat
[ 63%] Linking CXX static library libpdfstream.a
Building CXX object strigi/src/archivereader/CMakeFiles/archivecat.dir/archivecat.cpp.o
[ 63%] Built target pdfstream
[ 63%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
Linking CXX executable archivecat
[ 63%] Built target archivecat
[ 63%] Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
No DOMImplementationRegistry found.
Scanning dependencies of target metadataproperties
Scanning dependencies of target strigidaemonconfiguration
[ 63%] [ 63%] Generating metadataproperties.cpp, metadataproperties.h, metadatapropertiestest.cpp
Generating strigidaemonconfiguration.cpp, strigidaemonconfiguration.h, strigidaemonconfigurationtest.cpp
No DOMImplementationRegistry found.
[ 63%] Building CXX object strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.cpp.o
c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/metadataproperties.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/metadataproperties.cpp.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/metadataproperties.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
No DOMImplementationRegistry found.
[ 63%] Building CXX object strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.cpp.o
c++: /home/kde4/kde/build/kdesupport/strigi/src/xsd/strigidaemonconfiguration.cpp: Nie ma takiego pliku ani katalogu
c++: no input files
make[2]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/strigidaemonconfiguration.cpp.o] Błąd 1
make[1]: *** [strigi/src/xsd/CMakeFiles/strigidaemonconfiguration.dir/all] Błąd 2
make: *** [all] Błąd 2
Mam dziwne wrażenie, że problemem nie jest wersja źródeł, a konfiguracja systemu na którym chcę skompilować KDE4. No nic, wracam do punktu wyjścia i znowu Google w ruch idzie. Spróbuję skompilować samo strigi i zobaczę co ciekawego mi powie na wyjściu.

pzdr.
AdeBe
Junior Member
Posty: 825
Rejestracja: 01 grudnia 2007, 14:41

Post autor: AdeBe »

Albo podejdź do problemu od drugiej strony: wyłącz kompilację strigi (chyba nie jest wymagane ZTCP).
ODPOWIEDZ