Latest kdevplatform fails to build - Kross linker error

Nicolas Alvarez nicolas.alvarez at gmail.com
Wed Dec 16 22:05:18 UTC 2009


Nicolas Alvarez wrote:
> Linking CXX executable duchaintokross
> /usr/bin/ld: CMakeFiles/duchaintokross.dir/duchainextractor.o: in function
> KrossImpl::valueToVariant(QString const&, QString
> 
const&):/home/nicolas/src/kdevplatform/shell/kross/xmltokross/krossimpl.h:137:
> error: undefined reference to 'Kross::Manager::self()'
> /usr/bin/ld: CMakeFiles/duchaintokross.dir/duchainextractor.o: in function
> KrossImpl::valueToVariant(QString const&, QString
> 
const&):/home/nicolas/src/kdevplatform/shell/kross/xmltokross/krossimpl.h:137:
> error: undefined reference to 'Kross::Manager::metaTypeHandler(QByteArray
> const&) const'
> collect2: ld returned 1 exit status

The g++ command (broken down for readability):

/usr/lib/ccache/c++
-Wnon-virtual-dtor -Wno-long-long -ansi
-Wundef -Wcast-align -Wchar-subscripts
-Wall -W -Wpointer-arith -Wformat-security
-fno-exceptions -fno-check-new -fno-common
-Woverloaded-virtual -fno-threadsafe-statics
-fvisibility=hidden -fvisibility-inlines-hidden
-g3 -fno-inline
-Wl,--enable-new-dtags
CMakeFiles/duchaintokross.dir/duchaintokross_automoc.o
CMakeFiles/duchaintokross.dir/mainduchain.o
CMakeFiles/duchaintokross.dir/duchainextractor.o
CMakeFiles/duchaintokross.dir/dummybsm.o
CMakeFiles/duchaintokross.dir/duchainreader.o
CMakeFiles/duchaintokross.dir/project.o
-o duchaintokross
-rdynamic
-lQtCore
/usr/lib/libknotifyconfig.so.4.3.0
/usr/lib/libktexteditor.so.4.3.0
/usr/lib/libthreadweaver.so.4.3.0
../../../lib/libkdevplatforminterfaces.so.1.0.0
../../../lib/libkdevplatformproject.so.1.0.0
../../../lib/libkdevplatformlanguage.so.1.0.0
../../../lib/libsublime.so.1.0.0
../../../lib/libkdevplatformutil.so.1.0.0
../../../lib/libkdevplatformoutputview.so.1.0.0
../../../lib/libkdevplatformshell.so.1.0.0
../../../lib/libsublime.so.1.0.0
../../../lib/libkdevplatformproject.so.1.0.0
../../../lib/libkdevplatformlanguage.so.1.0.0
../../../lib/libkdevplatformutil.so.1.0.0
../../../lib/libkdevplatformoutputview.so.1.0.0
../../../lib/libkdevplatforminterfaces.so.1.0.0
/usr/lib/libknotifyconfig.so.4.3.0
/usr/lib/libktexteditor.so.4.3.0
/usr/lib/libthreadweaver.so.4.3.0
-lQtDesigner
/usr/lib/libkutils.so.4.3.0
/usr/lib/libkparts.so.4.3.0
/usr/lib/libkio.so.5.3.0
-lQtNetwork
-lQtXml
/usr/lib/libkdeui.so.5.3.0
/usr/lib/libkdecore.so.5.3.0
-lQtDBus
-lQtCore
-lQtSvg
-lQtGui
-Wl,-rpath,/home/nicolas/src/kdevplatform/build/lib
-Wl,-rpath-link,/home/nicolas/src/kdevplatform/build/lib

The method in question seems to be part of libkrosscore.so, which is not 
being linked.

-- 
Nicolas

I read mailing lists through Gmane. Please don't Cc me on replies; it makes 
me get one message on my newsreader and another on email.





More information about the KDevelop-devel mailing list