Ticket #108 (closed: fixed)
Unable to build trunk or 0.10.0
| Reported by: | Non_E | Owned by: | alwin |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10.x |
| Component: | All | Version: | development |
| Severity: | major | Keywords: | RESOLVED |
| Cc: |
Description
I am unable to build trunk or 0.10.0 version of kdesvn. The console log follows: root@linwood svn-src # cd kdesvn/trunk/ root@linwood trunk # mkdir build root@linwood trunk # cd build root@linwood build # cmake ../ -DCMAKE_INSTALL_PREFIX=kde-config --prefix -DCMAKE_BUILD_TYPE=Release -- Check for working C compiler: gcc -- Check for working C compiler: gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: c++ -- Check for working CXX compiler: c++ -- works -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber? in ICE -- Looking for IceConnectionNumber? in ICE - found -- Didn't find KDE3 headers -- Didn't find KDE3 core library -- Found KDE3 dcopidl preprocessor: /usr/kde/3.5/bin/dcopidl -- Found KDE3 dcopidl2cpp preprocessor: /usr/kde/3.5/bin/dcopidl2cpp -- Found KDE3 kconfig_compiler preprocessor: /usr/kde/3.5/bin/kconfig_compiler -- Found meinproc: /usr/kde/3.5/bin/meinproc -- Found gnu msgfmt: /usr/bin/gmsgfmt -- Checking to see if linker accepts flag -Wl,--no-undefined - yes -- Checking to see if linker accepts flag -Wl,--allow-shlib-undefined - yes -- Found subversion include: /usr/include/subversion-1 -- Found subversion client lib: /usr/lib/libsvn_client-1.so -- Found subversion repository lib: /usr/lib/libsvn_repos-1.so -- Found subversion fs lib: /usr/lib/libsvn_fs-1.so -- Found subversion subr lib: /usr/lib/libsvn_subr-1.so -- Found subversion wc lib: /usr/lib/libsvn_wc-1.so -- Found subversion ra lib: /usr/lib/libsvn_ra-1.so -- Checking to see if CXX compiler accepts flag -fexceptions -- Checking to see if CXX compiler accepts flag -fexceptions - yes -- Checking to see if CXX compiler accepts flag -fstack-protector -- Checking to see if CXX compiler accepts flag -fstack-protector - yes -- Checking to see if CXX compiler accepts flag -fvisibility=hidden -- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes -- have_visibility: TRUE version>=4.1: TRUE bad alloctor: CMake Error: This project requires some variables to be set, and cmake can not find them. Please set the following variables: /usr/portage/distfiles/svn-src/kdesvn/trunk/KDE3_INCLUDE_DIR KDE3_DCOP_LIBRARY KDE3_KIO_LIBRARY KDE3_PART_LIBRARY KDE3_UI_LIBRARY
-- Configuring done root@linwood build # make make: * No targets specified and no makefile found. Stop. root@linwood build #
ADDITIONAL INFORMATION: System: gcc-4.1.1, glibc-2.5, binutils-2.17.50.0.3, cmake-2.4.3, Gentoo
Attachments
Change History
comment:1 Changed 7 years ago by Non_E
- Owner changed from anonymous to alwin
- Status changed from new to assigned
comment:2 Changed 7 years ago by alwin
on first view I would say you don't have the kde-development environment installed.
I think them should be somewhere in /opt/kde or /usr, if not on such regular place then the environment "KDEDIR" should point to the installprefix where kde is installed.
(if 64bit system lib64 subpathes will checked, too)
comment:3 Changed 7 years ago by Non_E
I have not used cmake before and it looks like it lacks some shell variables or whatever. Despite that I made some success adapting non-cmake ebuild (packaging recipe) for kdesvn. The required headers and core library was in /usr/kde/3.5/include and /usr/kde/3.5/include. kde-config --prefix is set to /usr/kde/3.5. Unfortunatelly the build fails. It is built in /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0. The error message is:
Scanning dependencies of target svnfrontend [ 46%] Building CXX object src/svnfrontend/CMakeFiles/svnfrontend.dir/cacheentry.o [ 47%] Building CXX object src/svnfrontend/CMakeFiles/svnfrontend.dir/ccontextlistener.o /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:43: error: ‘QMutex’ does not name a type /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp: In constructor ‘CContextListenerData::CContextListenerData()’: /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:48: error: class ‘CContextListenerData’ does not have any field named ‘m_CancelMutex’ /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp: At global scope: /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:159: warning: unused parameter ‘mime_type’ /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:159: warning: unused parameter ‘prop_state’ /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp: In member function ‘virtual bool CContextListener::contextCancel()’: /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:197: error: ‘QMutexLocker’ was not declared in this scope /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:197: error: expected `;' before ‘lock’ /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp: In member function ‘virtual void CContextListener::setCanceled(bool)’: /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:280: error: ‘QMutexLocker’ was not declared in this scope /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/src/svnfrontend/ccontextlistener.cpp:280: error: expected `;' before ‘lock’ make[2]: * [src/svnfrontend/CMakeFiles/svnfrontend.dir/ccontextlistener.o] Error 1 make[1]: * [src/svnfrontend/CMakeFiles/svnfrontend.dir/all] Error 2 make: * [all] Error 2
I hope I did not miss any important information. Thank you for help.
comment:4 Changed 7 years ago by alwin
Same as in #107
try setting CXXFLAGS="-DQT_THREAD_SUPPORT" before running cmake.
Hopefully you have a qt with thread support which cmake simply may not detect this moment.
comment:5 Changed 7 years ago by Non_E
Thank you, this pushed me a bit further. The lates compile error is: Scanning dependencies of target kdesvnpart [ 89%] Building CXX object src/CMakeFiles/kdesvnpart.dir/kdesvn_part.o [ 89%] Building CXX object src/CMakeFiles/kdesvnpart.dir/kdesvnview.o [ 90%] Building CXX object src/CMakeFiles/kdesvnpart.dir/commandline_part.o Linking CXX shared module ../lib/kde3/libkdesvnpart.so /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(commandexec.o): In function `CommandExec::slotCmd_blame()': commandexec.cpp:(.text+0xeb1): undefined reference to `svn::Revision::operator!()' commandexec.cpp:(.text+0xeca): undefined reference to `svn::Revision::operator!()' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(commandexec.o): In function `CommandExec::slotCmd_list()': commandexec.cpp:(.text+0x1faa): undefined reference to `svn::Revision::operator bool()' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(commandexec.o): In function `CommandExec::scanRevision()': commandexec.cpp:(.text+0x46b1): undefined reference to `svn::Revision::operator=(QString const&)' commandexec.cpp:(.text+0x46f7): undefined reference to `svn::Revision::operator=(QString const&)' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(commandexec.o): In function `CommandExec::exec()': commandexec.cpp:(.text+0x5cdc): undefined reference to `svn::Revision::Revision(QString const&)' commandexec.cpp:(.text+0x5ce4): undefined reference to `svn::Revision::operator bool()' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(svnactions.o): In function `SvnActions::slotMergeExternal(QString const&, QString const&, QString const&, svn::Revision const&, svn::Revision const&, bool)': svnactions.cpp:(.text+0x17394): undefined reference to `svn::Revision::toString() const' svnactions.cpp:(.text+0x174c3): undefined reference to `svn::Revision::toString() const' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(svnactions.o): In function `SvnActions::makeDiffExternal(QString const&, svn::Revision const&, QString const&, svn::Revision const&, bool, QWidget*, bool)': svnactions.cpp:(.text+0x19090): undefined reference to `svn::Revision::toString() const' svnactions.cpp:(.text+0x19232): undefined reference to `svn::Revision::toString() const' svnactions.cpp:(.text+0x193bf): undefined reference to `svn::Revision::toString() const' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(svnactions.o):svnactions.cpp:(.text+0x194d0): more undefined references to `svn::Revision::toString() const' follow /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(svnactions.o): In function `SvnActionsData::SvnActionsData?()': svnactions.cpp:(.text._ZN14SvnActionsDataC1Ev[SvnActionsData::SvnActionsData()]+0x267): undefined reference to `svn::Client::getobject(svn::smart_pointer<svn::Context>, int)' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(svnitem.o): In function `SvnItem?_p::kdeName(svn::Revision const&)': svnitem.cpp:(.text+0x348b): undefined reference to `svn::Revision::toString() const' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(modifiedthread.o): In function `CheckModifiedThread::CheckModifiedThread?(QObject*, QString const&, bool)': modifiedthread.cpp:(.text+0x684): undefined reference to `svn::Client::getobject(svn::smart_pointer<svn::Context>, int)' /var/tmp/portage/kdesvn-0.10.0/work/kdesvn-0.10.0/my_build/lib/kde3/libsvnfrontend.a(modifiedthread.o): In function `CheckModifiedThread::CheckModifiedThread?(QObject*, QString const&, bool)': modifiedthread.cpp:(.text+0x1454): undefined reference to `svn::Client::getobject(svn::smart_pointer<svn::Context>, int)' collect2: ld returned 1 exit status make[2]: * [lib/kde3/libkdesvnpart.so] Error 1 make[1]: * [src/CMakeFiles/kdesvnpart.dir/all] Error 2 make: * [all] Error 2
Warnings appear every few lines during the installation.
