[CMake] kdesvn make problem

William A. Hoffman billlist at nycap.rr.com
Sun Sep 17 09:34:35 EDT 2006


At 08:08 AM 9/17/2006, Yuan, Jue wrote:
>Hi all,
>
>I am the maintainer of kdesvn for FreeBSD. As kdesvn has changed its
>make system to CMake, I think it is time to change the port of kdesvn
>according to this. I'm not familiar with CMake before, and I end up
>with some errors when trying to apply the change.
>
>The error occurs after configuring:
>
>...
>-- Configuring done
>-- Generating done
>-- Build files have been written to:
>/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build
>===>  Building for kdesvn-0.9.3
>src/CMakeFiles/kdesvn.dir/flags.make:5: *** missing separator.  Stop.
>gmake[1]: *** [src/CMakeFiles/kdesvn.dir/all] Error 2
>gmake: *** [all] Error 2
>*** Error code 2
>
>Stop in /usr/home/maver/Develop/SVN_work/kdesvn.
>
>Could anyone enlighten me on this? Any ideas would be very appreciated. :-)


Can you post this file: src/CMakeFiles/kdesvn.dir/flags.make?
If I had to guess it is something in the CXX_FLAGS that is causing the
trouble.  You should not have to specify all those -I paths, cmake
should take care of that.  

>//////////////////////////////////////////////////////////////////////////////////////////
>The corresponding file flags.make is:
># CMAKE generated file: DO NOT EDIT!
># Generated by "Unix Makefiles" Generator, CMake Version 2.4
>
>CXX_FLAGS = -O2 -fno-strict-aliasing -pipe -I/usr/X11R6/include
>-I/usr/local/include -Wnon-virtual-dtor -Wno-long-long -Wundef
>-Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith
>-Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute
>-fno-exceptions -fno-check-new -fno-common -fexceptions -O3 -DNDEBUG
>-I/usr/local/include -I/usr/X11R6/include -I/usr/local/include/apr-1
>-I/usr/local/include/subversion-1
>-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3/src
>-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3/src/svnfrontend
>-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3
>-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build/src
>-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build/src/svnfrontend
>-I/usr/home/maver/Develop/SVN_work/kdesvn/work/kdesvn-0.9.3-build
>-DQT_CLEAN_NAMESPACE -D_GNU_SOURCE
>-DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT
>
>//////////////////////////////////////////////////////////////////////////////////////////
>The Makefile for port I use is as follows(snippet):
>
>WRKSRC=         ${WRKDIR}/${DISTNAME}-build
>PATCH_WRKSRC=   ${WRKDIR}/${DISTNAME}
>
>BUILD_DEPENDS=  cmake:${PORTSDIR}/devel/cmake
>
>CMAKE_ARGS=     -DCMAKE_BUILD_TYPE:STRING=Release \
>                -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
>                -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include"
>
>LIB_DEPENDS+=   apr-1:${PORTSDIR}/devel/apr-svn \
>                svn_client-1:${PORTSDIR}/devel/subversion \
>                neon:${PORTSDIR}/www/neon
>
>USE_BZIP2=      yes
>USE_KDELIBS_VER=3
>USE_GMAKE=      yes
>INSTALLS_SHLIB= yes
>
>.include <bsd.port.pre.mk>
>
>.if ${OSVERSION} < 500000
>BROKEN=         Does not compile on 4.x
>.endif
>
>post-extract:
>        ${MKDIR} ${WRKSRC}
>
>do-configure:
>        @(cd ${WRKSRC}; \
>        ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} ${PATCH_WRKSRC})
>
>.include <bsd.port.post.mk>
>
>-- 
>Best Regards
>Yuan, Jue @ http://www.yuanjue.net
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list