<div dir="ltr">Adding it to the CMakeLists libraries fixed it, thanks!<div><br></div><div>-Todd</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 1:59 PM, Kevin Funk <span dir="ltr"><<a href="mailto:kfunk@kde.org" target="_blank">kfunk@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Dienstag, 4. Februar 2014, 11:24:50 schrieb Todd Nowacki:<br>
<div class="im">> Hi,<br>
><br>
> I'm currently trying to get a fix for<br>
> <a href="https://bugs.kde.org/show_bug.cgi?id=321982" target="_blank">https://bugs.kde.org/show_bug.cgi?id=321982</a>.<br>
><br>
> Right now, I'm trying to create a KUrl from a Path and I'm getting the<br>
> error "undefined reference to 'KDevelop::Path::toUrl() const'", any advice?<br>
> Someone on irc suggested making sure that I uninstalled all traces of<br>
> kdevelop / kdevplatform from my package manager; I have done that but no<br>
> luck.<br>
><br>
> I'm assuming that this is some sort of build dependency error, given that<br>
> the error is occurring during linking, but I'm not sure how to fix it. The<br>
> full error is as follows:<br>
><br>
> Building CXX object<br>
> outputview/CMakeFiles/kdevplatformoutputview.dir/outputfilteringstrategies.c<br>
</div>> pp.o Linking CXX shared library ../lib/libkdevplatformoutputview.so<br>
<div class="im">> CMakeFiles/kdevplatformoutputview.dir/outputfilteringstrategies.cpp.o: In<br>
> function `KDevelop::CompilerFilterStrategy::errorInLine(QString const&)':<br>
> /home/tmn/src/kdevplatform/outputview/outputfilteringstrategies.cpp:283:<br>
> undefined reference to `KDevelop::Path::pathOrUrl() const'<br>
> /home/tmn/src/kdevplatform/outputview/outputfilteringstrategies.cpp:286:<br>
> undefined reference to `KDevelop::Path::toUrl() const'<br>
> collect2: error: ld returned 1 exit status<br>
><br>
><br>
> Thanks!<br>
><br>
> -Todd Nowacki<br>
<br>
</div>You need to link kdevplatformoutputview against kdevplatformproject in case<br>
you want to use the Path class here.<br>
<br>
Add 'kdevplatformproject' to the list of link libraries for the<br>
kdevplatformoutputview target, see outputview/CMakeLists.txt<br>
<br>
@Milian, probably makes sense to move Path to a more generic location (util,<br>
maybe)? Currently it has a dependency on IndexedString, though.<br>
<br>
Greets<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kevin Funk<br>
</font></span></blockquote></div><br></div>