[Qgis-developer] Re: how to configure Kdevelop within Cmake

Martin Dobias wonder.sk at gmail.com
Fri Feb 23 04:07:24 EST 2007


that wiki page is a bit outdated and doesn't reflect transition to
CMake build system. Good news is that CMake supports generation of
KDevelop projects. The process of creating it is similar to build
process. I will assume out-of-source build - if you're in qgis sources
dir, type:

mkdir kdevelop
cd kdevelop
cmake -G KDevelop3 ..

In that directory you'll find qgis.kdevelop project file. You can use
this in both 0.8 and trunk.


On 2/23/07, Byambaa Mendbayar <mendbayar_b at mongol.net> wrote:
> Dear Tim, Martin and Devels,
> I have following
> http://wiki.qgis.org/qgiswiki/Setting_Up_Kdevelop_For_QGIS_Developement
> instruction for developing and debugging for QGIS. But I have not successes.
> I have been using QGIS SVN head and branch Release 0.8.0.
> What type of I will use for CMake instead of "Project Type : Generic C++
> Automake Based".
> When I was compiling 0.8.0 release code using Kdevelop, it was make that:
> -------------------------------------------------------------------------
> cd '/home/mende/workplace/qgis_0.8.0' && WANT_AUTOCONF_2_5="1"
> WANT_AUTOMAKE_1_6="1" make -k
> make all-recursive
> Making all in src
> Making all in core
> make all-am
> compiling qgscontexthelp.moc.cpp (g++)
> compiling libqgis_core_la-qgscontexthelp.moc.o (g++)
> qgscontexthelp.moc.cpp:15:34: error: private/qucomextra_p.h: No such file or
> directory
> qgscontexthelp.moc.cpp:17:2: error: #error "This file was generated using
> the moc from 3.3.6. It"
> qgscontexthelp.moc.cpp:18:2: error: #error "cannot be used with the include
> files from this version of Qt."
> qgscontexthelp.moc.cpp:19:2: error: #error "(The moc has changed too much.)"
> qgscontexthelp.moc.cpp:22: error: no 'const char*
> QgsContextHelp::className() const' member function declared in class
> 'QgsContextHelp'
> qgscontexthelp.moc.cpp:27: error: 'QMetaObject* QgsContextHelp::metaObj' is
> not a static member of 'class QgsContextHelp'
> qgscontexthelp.moc.cpp:28: error: 'QMetaObjectCleanUp' does not name a type
> qgscontexthelp.moc.cpp:31: error: redefinition of 'static QString
> QgsContextHelp::tr(const char*, const char*)'
> qgscontexthelp.h:46: error: 'static QString QgsContextHelp::tr(const char*,
> const char*)' previously defined here
> qgscontexthelp.moc.cpp: In static member function 'static QString
> QgsContextHelp::tr(const char*, const char*)':
> qgscontexthelp.moc.cpp:34: error: cannot convert 'QString(((const
> QString&)(((QApplication*)QCoreApplication::instance()), ((const QString*)(&
> QCoreApplication::translate(const char*, const char*, const char*,
> QCoreApplication::Encoding)(s, c, CodecForTr))))))' from type 'QString' to
> type 'QString&'
> qgscontexthelp.moc.cpp:36: error: cannot convert 'QString::fromLatin1(const
> char*, int)(-0x00000000000000001)' from type 'QString' to type 'QString&'
> qgscontexthelp.moc.cpp: At global scope:
> qgscontexthelp.moc.cpp:39: error: redefinition of 'static QString
> QgsContextHelp::trUtf8(const char*, const char*)'
> qgscontexthelp.h:46: error: 'static QString QgsContextHelp::trUtf8(const
> char*, const char*)' previously defined here
> ---------------------------------------------------------------------------
> Best regards,
> Byambaa Mendbayar

More information about the Qgis-developer mailing list