[Qgis-developer] RE: how to configure Kdevelop within Cmake
Byambaa Mendbayar
mendbayar_b at mongol.net
Sat Feb 24 04:24:22 EST 2007
Dear Martin,
Thank you very much for helping to me. Your advice is working fine.
Just I working make some UML diagrams which will be outline QGIS fundamental
mechanisms such as vector and raster layer initialization and processing
within related data provider's interactions (interoperations) and etc...
Therefore I need to debug QGIS source codes for reverse-Engineering. Are
there any interaction diagrams available (like as sequence and activity
diagrams) for QGIS core functionality?
Thanks again for your valuable hints and advices.
Best regards,
Byambaa Mendbayar
-----Original Message-----
From: Martin Dobias [mailto:wonder.sk at gmail.com]
Sent: Friday, February 23, 2007 5:07 PM
To: mendbayar_b at mongol.net
Cc: Tim Sutton; qgis-developer at lists.qgis.org
Subject: Re: how to configure Kdevelop within Cmake
Hi,
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.
Martin
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