This forum has been archived. All content is frozen. Please use KDE Discuss instead.

undefined reference to QDeclarativeView

Tags: None
(comma "," separated)
User avatar
s1300045
Registered Member
Posts
39
Karma
0
OS
Hi All,

I am having some trouble building my project with Kdevelop and cmake. I have googled a bit and found not much information about it. I don't have trouble building the project with Qt Creator, though. Much of the information on the internet points to a mis-configuration in the .pro file.

Here is the error message:

Code: Select all
main.cpp:10: undefined reference to `QDeclarativeView::QDeclarativeView(QWidget*)'


Thanks in advance!


Well, I am lost.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Hi,

KDevelop doesn't manage your build system. It will just run make or qmake or whatever you have. This looks like a problem with your project file, try adding
Code: Select all
QT += declarative

there, then re-run qmake.

Either way, not really related to KDevelop. :)

Greetings,
Sven


I'm working on the KDevelop IDE.
User avatar
s1300045
Registered Member
Posts
39
Karma
0
OS
I am slightly confused... I only have CMakeLists.txt and I am building with cmake. I actually found something here: Qml Desktop Components with Visual Studio and CMake

and in the CMakeLists.txt, it has...

Code: Select all
TARGET_LINK_LIBRARIES(ExampleBrowser
${QT_LIBRARIES}
${QT_QTMAIN_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTOPENGL_LIBRARY}   
${QT_QTOPENGL_LIBRARY}   
${QT_QTDECLARATIVE_LIBRARY}
)


I am going to try that once I get home...


Well, I am lost.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient