[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building calligra 2.4.1



Am Samstag, 12. Mai 2012 schrieb Martin Steigerwald:
> Am Samstag, 12. Mai 2012 schrieb Martin Steigerwald:
> > Am Freitag, 11. Mai 2012 schrieb Eshat Cakar:
> > > Hi Martin,
> > 
> > Hi Eshat,
> > 
> > Thanks a lot for your detailed answer.
> > 
> > > On Thursday 10 May 2012 10:20:22 Martin Steigerwald wrote:
> > > > I am trying to build calligra 2.4.1, but it fails:
> > > [...]
> > > 
> > > > CMake Error: The source directory
> > > > "/home/martin/KDE/Calligra/calligra" does not appear to contain
> > > > CMakeLists.txt.
> > > > Any idea?
> > > 
> > > The git repositories do not contain the upstream sources. They only
> > > include the debian/ folder.
> > > That is why you need to get the upstream tarball and extract it
> > > into the git directory.
> > > Run "uscan --force-download calligra" in /home/martin/KDE/Calligra
> > > to get the latest upstream source. uscan also takes care of the
> > > right symlink "calligra_2.4.1.orig.tar.bz2 ->
> > > calligra-2.4.1.tar.bz2"
> > 
> > I got as far as downloading the upstream source and naming it
> > correctly manually. Although I did not think of just using uscan for
> > that.
> > 
> > But I didn´t think that I have to unpack it manually - I don´t have
> > to do this after git-import-orig I use with my debian packages ;).
> > This could be related to…
> > 
> > > cd into your calligra directory and run
> > > tar ../calligra_2.4.1.orig.tar.bz2 --strip=1
> > 
> > stripping one level from the path.
> > 
> > > Now retry your dpkg-buildpackage command.
> > 
> > … works.
> > 
> > But then fails during build:
> > 
> > Linking CXX shared library ../../lib/libkritaimage.so
> > cd
> > /home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/krita/image
> > && /usr/bin/cmake -E cmake_link_script
> > CMakeFiles/kritaimage.dir/link.txt -- verbose=1
> > /usr/bin/c++  -fPIC -g -O2 -fstack-protector
> > --param=ssp-buffer-size=4 - Wformat -Werror=format-security
> > -D_FORTIFY_SOURCE=2
> > -Wnon-virtual-dtor - Wno-long-long -ansi -Wundef -Wcast-align
> > -Wchar-subscripts -Wall -W - Wpointer-arith -Wformat-security
> > -fno-exceptions -DQT_NO_EXCEPTIONS -fno- check-new -fno-common
> > -Woverloaded-virtual -fno-threadsafe-statics - fvisibility=hidden
> > -Werror=return-type -fvisibility-inlines-hidden - DNDEBUG
> > -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--
> > no-undefined -lc  -Wl,-z,relro -Wl,--as-needed -shared -Wl,-
> > soname,libkritaimage.so.9 -o ../../lib/libkritaimage.so.9.0.0
> > CMakeFiles/kritaimage.dir/kritaimage_automoc.o
> > CMakeFiles/kritaimage.dir/tiles3/kis_tile.o
[…]
> > CMakeFiles/kritaimage.dir/recorder/kis_recorded_shape_paint_action.o
> > - L/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/lib
> > /usr/lib/libkparts.so.4.7.0 ../../lib/libkomain.so.9.0.0
> > ../../lib/libpigmentcms.so.9.0.0 /usr/lib/libthreadweaver.so.4.7.0
> > -lImath -lIlmImf -lIex -lHalf -lIlmThread -lfftw3 -lm
> > /usr/lib/libkparts.so.4.7.0 ../../lib/libkowidgets.so.9.0.0
> > ../../lib/libkotext.so.9.0.0
> > ../../lib/libflake.so.9.0.0 ../../lib/libpigmentcms.so.9.0.0 -lImath
> > - lIlmImf -lIex -lHalf -lIlmThread ../../lib/libkoplugin.so.9.0.0
> > ../../lib/libkoodf.so.9.0.0 /usr/lib/libkio.so.5.7.0
> > /usr/lib/libnepomukutils.so.4.7.0
> > /usr/lib/x86_64-linux-gnu/libQtXml.so
> > /usr/lib/x86_64-linux-gnu/libQtNetwork.so
> > /usr/lib/libnepomuk.so.4.7.0 - lsoprano ../../lib/libkundo2.so.9.0.0
> > /usr/lib/libkdeui.so.5.7.0 /usr/lib/x86_64-linux-gnu/libQtGui.so
> > /usr/lib/x86_64-linux- gnu/libQtSvg.so /usr/lib/libkdecore.so.5.7.0
> > /usr/lib/x86_64-linux- gnu/libQtDBus.so
> > /usr/lib/x86_64-linux-gnu/libQtCore.so -Wl,-
> > rpath,/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/lib:
> > -Wl,-
> > rpath-link,/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/li
> > b cd
> > /home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/krita/image
> > && /usr/bin/cmake -E cmake_symlink_library
> > ../../lib/libkritaimage.so.9.0.0 ../../lib/libkritaimage.so.9
> > ../../lib/libkritaimage.so
> > make[3]: Leaving directory
> > `/home/martin/KDE/Calligra/calligra/obj-x86_64- linux-gnu'
> > /usr/bin/cmake -E cmake_progress_report
> > /home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/CMakeFiles 
> > 68 69 70 71 72
> > [ 55%] Built target kritaimage
> > make[2]: Leaving directory
> > `/home/martin/KDE/Calligra/calligra/obj-x86_64- linux-gnu'
> > make[1]: *** [all] Fehler 2
> > make[1]: Leaving directory
> > `/home/martin/KDE/Calligra/calligra/obj-x86_64- linux-gnu'
> > dh_auto_build: make -j4 returned exit code 2
> > make: *** [build] Fehler 2
> > dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build
> > war 2
> 
> On second try dpkg-source choked over uncommited changes:
> 
> --- calligra-2.4.1.orig/sheets/plugins/solver/CMakeLists.txt
> +++ calligra-2.4.1/sheets/plugins/solver/CMakeLists.txt
> @@ -27,6 +27,7 @@ kde4_add_plugin( kspreadsolver ${solver_
> 
>  target_link_libraries( kspreadsolver
>         ${GSL_LIBRARIES}
> +       ${GSL_CBLAS_LIBRARIES}
>          calligrasheetscommon
>  )
> 
> 
> and asked me to commit it as patch. Returncode was 2 as well. cmake
> seemed to have changed the file. I wonder why its in the original
> tarball at all when its a generated file.
> 
> Anyway I just commited this as patch to get a test build done.
> 
> And now I am building without -j4, maybe thats make it easier to spot
> the error message.

Still no mango:

[ 38%] Building CXX object 
plan/libs/ui/CMakeFiles/kplatoui.dir/__/__/__/kdgantt/kdgantttimescalezoomdialog.o
cd /home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/plan/libs/ui && 
/usr/bin/c++   -DMAKE_KPLATOUI_LIB -D_BSD_SOURCE -DSHOULD_BUILD_RDF -
DCAN_USE_MARBLE -DDISABLE_NEPOMUK_LEGACY -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -
DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=25 -DSHOULD_BUILD_FONT_CONVERSION -
DCAN_USE_QTWEBKIT -DKDE_DEFAULT_DEBUG_AREA=42000 -DPLAN_KDEPIMLIBS_FOUND -
DKDAB_NO_UNIT_TESTS -DKDGANTT_STATICLIB -g -O2 -fstack-protector --
param=ssp-buffer-size=4 -Wformat -Werror=format-security -
D_FORTIFY_SOURCE=2  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -
Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -
fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-
virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -
fvisibility-inlines-hidden -DNDEBUG -DQT_NO_DEBUG -fPIC -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/plan/libs/ui -
I/home/martin/KDE/Calligra/calligra/plan/libs/ui -
I/home/martin/KDE/Calligra/calligra -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu -
I/home/martin/KDE/Calligra/calligra/interfaces -
I/home/martin/KDE/Calligra/calligra/plugins/chartshape/kdchart/include -
I/home/martin/KDE/Calligra/calligra/plan/libs/kernel -
I/home/martin/KDE/Calligra/calligra/plan/libs/models -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/plan/libs/models 
-I/home/martin/KDE/Calligra/calligra/plan/libs/ui/reports/odt -
I/home/martin/KDE/Calligra/calligra/kdgantt -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/kdgantt -
I/home/martin/KDE/Calligra/calligra/libs/odf -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/libs/odf -
I/home/martin/KDE/Calligra/calligra/libs -
I/home/martin/KDE/Calligra/calligra/libs/widgets -
I/home/martin/KDE/Calligra/calligra/libs/koreport -
I/home/martin/KDE/Calligra/calligra/libs/koreport/common -
I/home/martin/KDE/Calligra/calligra/libs/koreport/renderer -
I/home/martin/KDE/Calligra/calligra/libs/koreport/wrtembed -
I/home/martin/KDE/Calligra/calligra/libs/kotext -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/libs/kotext -
I/home/martin/KDE/Calligra/calligra/libs/kotext/changetracker -
I/home/martin/KDE/Calligra/calligra/libs/kotext/styles -
I/home/martin/KDE/Calligra/calligra/libs/kotext/opendocument -
I/home/martin/KDE/Calligra/calligra/libs/flake -
I/home/martin/KDE/Calligra/calligra/libs/koplugin -
I/home/martin/KDE/Calligra/calligra/libs/pigment -
I/home/martin/KDE/Calligra/calligra/libs/pigment/compositeops -
I/home/martin/KDE/Calligra/calligra/libs/pigment/resources -
I/home/martin/KDE/Calligra/calligra/libs/kundo2 -
I/home/martin/KDE/Calligra/calligra/libs/flake/commands -
I/home/martin/KDE/Calligra/calligra/libs/flake/tools -
I/home/martin/KDE/Calligra/calligra/libs/flake/svg -
I/home/martin/KDE/Calligra/calligra/obj-x86_64-linux-gnu/libs/flake -
I/home/martin/KDE/Calligra/calligra/libs/main -
I/home/martin/KDE/Calligra/calligra/libs/textlayout -
I/home/martin/KDE/Calligra/calligra/libs/main/rdf -
I/home/martin/KDE/Calligra/calligra/libs/main/config -I/usr/include/KDE -
I/usr/include/qt4/phonon -I/usr/include/qt4/QtXmlPatterns -
I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -
I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -
I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -
I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -
I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -
I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -
I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -
I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -
I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -
I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/marble    
-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -o 
CMakeFiles/kplatoui.dir/__/__/__/kdgantt/kdgantttimescalezoomdialog.o -c 
/home/martin/KDE/Calligra/calligra/kdgantt/kdgantttimescalezoomdialog.cpp
make[3]: *** Keine Regel vorhanden, um das Target »/usr/lib/libphonon.so«, 
  benötigt von »lib/libkplatoui.so.9.0.0«, zu erstellen.  Schluss.
make[3]: Leaving directory `/home/martin/KDE/Calligra/calligra/obj-x86_64-
linux-gnu'
make[2]: *** [plan/libs/ui/CMakeFiles/kplatoui.dir/all] Fehler 2
make[2]: Leaving directory `/home/martin/KDE/Calligra/calligra/obj-x86_64-
linux-gnu'
make[1]: *** [all] Fehler 2
make[1]: Leaving directory `/home/martin/KDE/Calligra/calligra/obj-x86_64-
linux-gnu'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2

I am wondering whether calligra is strying to build libphonon.so when 
thats already in package libphonon4.

Maybe I need a chroot build anyway and its taking in too much otherwise.

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


Reply to: