PDA

View Full Version : Probably missing linkers



sliverTwist
27th February 2013, 08:20
I have downloaded this project https://github.com/owncloud/sync-qt next i did some modification to it. I have added this files https://github.com/frankosterfeld/qtkeychain and http://www.opensource.apple.com/source/SQLite/SQLite-74/derived_source/sqlite3.h because of a missing libraries

Now the problem is that i have got those issues:

error: cannot find -lqtkeychain
error: cannot find -lsqlite3
error: cannot find -lkparts
error: cannot find -lkdeui
error: cannot find -lkdecore
error: collect2: error: ld returned 1 exit status

My OS is Fedora 18 64bit I am using Qt Creator 2.5.0 Based on Qt 4.8.2 (64 bit)

I think probably this error is that i have some missing linkers !! but i don't know how to fix that ??

amleto
27th February 2013, 20:35
http://qt-project.org/doc/qt-4.8/qmake-project-files.html

ChrisW67
27th February 2013, 23:08
The linker needs to be told where to find libraries that are not on the system standard paths:


LIBS += -L/path/containing/sqlite/library -lsqlite3
LIBS += -L/path/containing/qtkeychain/library -lqtkeychain
LIBS += -L/path/containing/kde/libraries -lkparts -lkdeui -lkdecore

Of course, the libraries must also exist. The Sqlite and KDE libraries should exist in standard places if they are installed using Fedora tools.