<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Christophe,<br>
<br>
plugins must be compiled as part of the marble application. Calling
cmake from a subdirectory of marble does not work because things like
the "marble_add_plugin" macro are defined in the CMakeLists.txt file in
the marble root directory. When adding a plugin in, say, the render
directory, make sure to modify render/CMakeLists.txt as well to include
the new plugin. For example, when adding newPlugin in
render/newPlugin/, edit render/CMakeLists.txt to contain a line<br>
<br>
add_subdirectory( newPlugin )<br>
<br>
Hth,<br>
Dennis<br>
<br>
On 01.07.2010 16:34, Christophe Leske wrote:
<blockquote cite="mid:4C2CA777.8000107@multimedial.de" type="cite">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-15">
Hi, <br>
<br>
has anyone on this list more information for me for how to compile
Marble plugins?<br>
<br>
I am aware of the test plugin provided in the source code by Torsten
Rahn, yet I am more struggling with the compiling and debugging part.<br>
<br>
How isone supposed to compile a self-made plugin?<br>
<br>
Using the normal approach as for compiling the whole marble app does
not seem to work. I also see that there is a twitter plugin in the
source, yet it does not get build. <br>
<br>
If I try to build it, I get two errors:<br>
<br>
<blockquote>
<pre>I:\SVN_Transfer\Marble\src\plugins\render\twitter>cmake -G "NMake Makefiles" -DQ</pre>
<pre>TONLY=ON -DCMAKE_BUILD_TYPE=Release</pre>
<pre>CMake Error at CMakeLists.txt:8 (INCLUDE):</pre>
<pre> include called with wrong number of arguments. Include only takes one</pre>
<pre> file.</pre>
<pre> </pre>
<pre>CMake Error at CMakeLists.txt:12 (marble_add_plugin):</pre>
<pre> Unknown CMake command "marble_add_plugin".</pre>
<pre> </pre>
<pre>CMake Warning (dev) in CMakeLists.txt:</pre>
<pre> No cmake_minimum_required command is present. A line of code such as</pre>
<pre> cmake_minimum_required(VERSION 2.8)</pre>
<pre> should be added at the top of the file. The version specified may be lower</pre>
<pre> if you wish to support older CMake versions for this project. For more</pre>
<pre> information run "cmake --help-policy CMP0000".</pre>
<pre>This warning is for project developers. Use -Wno-dev to suppress it.</pre>
<pre>-- Configuring incomplete, errors occurred!</pre>
<pre>I:\SVN_Transfer\Marble\src\plugins\render\twitter></pre>
</blockquote>
<br>
Anyone?<br>
I would like to be able to compile plugins on an individual basis, as
well as being able to debug them, if possible.<br>
Best would be the use of QtCreator/MingW instead of MSVC in this case,
as it pertains to a project I would like to modify.<br>
<br>
<br>
TIA, <br>
<pre class="moz-signature" cols="72">Christophe Leske
multimedial.de
PROFILE: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.linkedin.com/in/multimedial">www.linkedin.com/in/multimedial</a>
----------------------------------------
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.multimedial.de">www.multimedial.de</a> - <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:info@multimedial.de">info@multimedial.de</a>
Vogteistrasse 19 - 51647 Gummersbach
++ 49 (0) 22 61 - 30 21 59-0
----------------------------------------</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Marble-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Marble-devel@kde.org">Marble-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/marble-devel">https://mail.kde.org/mailman/listinfo/marble-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>