rev 11705 - www/v2/pages

Xavier Vello wdgt-guest at alioth.debian.org
Thu Jul 24 15:49:03 UTC 2008


Author: wdgt-guest
Date: 2008-07-24 15:49:01 +0000 (Thu, 24 Jul 2008)
New Revision: 11705

Modified:
   www/v2/pages/experimental_linking
Log:
experimental_linking modified


Modified: www/v2/pages/experimental_linking
===================================================================
--- www/v2/pages/experimental_linking	2008-07-24 15:23:41 UTC (rev 11704)
+++ www/v2/pages/experimental_linking	2008-07-24 15:49:01 UTC (rev 11705)
@@ -14,15 +14,22 @@
 <p>Use the autofixtll script to automatically find most linking problems and generate a patch to fix them.</p>
 <ul>
 <li>Download the script from <a href="http://svn.debian.org/viewsvn/*checkout*/pkg-kde/scripts/autofixtll"> our SVN</a></li>
-<!--<li>Quilt is used to generate patches, it can be found in the "quilt" package.</li>-->
-<li>From the root of your unpacked source, run : <tt>autofixtll -i -b build -c "cmake .. && make"</tt>. autofixtll will modify the CMakeLists.txt files in order to add the needed libraries.</li>
+<li>Quilt is used to generate patches, it can be found in the "quilt" package.</li>
+<li>From the root of your unpacked source, run :</li>
+<code>quilt new 97_fix_expected_name.diff<br/>                                                                             autofixtl -c make -d builddir -q quilt</code>
+<li>autofixtll will modify the CMakeLists.txt files in order to add the needed libraries.</li>
 <li>If autofixtll doesn't do the trick, you can finish with the manual way below.</li>
 </ul>
 
 <h5>3-Manually find and repair linking problems :</h5>
 <ul>
-<li>You'll find generic build instructions in <a href="">KDE TechBase</a>. We assume <tt>cmake</tt> runs well, and that <tt>make</tt> fails with this kind of message :</li>
-<br/>
+<li>Basically, to build a KDE4 application, you need to do :</li>
+<code>mkdir build<br/>
+cd build<br/>
+cmake ..<br/>
+make
+</code>
+<li>We assume <tt>cmake</tt> runs well, and that <tt>make</tt> fails with this kind of message :</li>
 <code>CMakeFiles/kcm_krunner_spellcheck.dir/spellcheck_config.o:(.data.rel.ro._ZTV13ConfigFactory[vtable for ConfigFactory]+0x44):
 undefined reference to `<b>KPluginFactory::create</b>(char const*, QWidget*, QObject*, QList&lt;QVariant&gt; const&amp;, QString const&amp;)'<br/>
 [...]<br/>
@@ -31,12 +38,11 @@
 make[1]: *** [<b>runners/spellchecker</b>/CMakeFiles/<b>kcm_krunner_spellcheck</b>.dir/all] Error 2<br/>
 make: *** [all] Error 2<br/>
 xavier at kawet:~/tmp/compile/svn/plasma/b$</code>
-<br/><br/>
 <li>locate the unresolved function (here <b>KPluginFactory::create</b>)</li>
 <li>locate the failing build target (here <b>kcm_krunner_spellcheck</b> in <b>directory runners/spellchecker</b>)</li>
 <li>find the library providing it : the best way to do this is to search <a href="http://api.kde.org">api.kde.org</a>. Googling <a href="http://www.google.com/search?q=KPluginFactory+site:api.kde.org/4.1-api">KPluginFactory site:api.kde.org/4.1-api</a>, you can see it's in kdecore.</li>
-<li>edit the relevant CMakeLists.txt file and locate the target_link_libraries line corresponding to the build target and add the relevant ${KDE4_*_LIBS} tag. Here is a list of the available ones :<br/>
-[ long, long, long list ^^]<br/>
+<li>edit the relevant CMakeLists.txt file and locate the target_link_libraries line corresponding to the build target and add the relevant ${KDE4_*_LIBS} tag. Here is a list of the available ones :
+
 For the example in runners/spellchecker/CMakeLists.txt, replace<br/>
 <code>target_link_libraries(krunner_spellcheckrunner ${KDE4_KDEUI_LIBS} ${PLASMA_LIBS})</code><br/>
 with<br/>




More information about the pkg-kde-commits mailing list