View Single Post
Posts: 5 | Thanked: 15 times | Joined on Jul 2012
#68
Originally Posted by marmistrz View Post
OK, after a couple of similar fixes as before, something new came out:

Code:
Linking CXX executable ut_dbooster
/home/marcin/applauncher/applauncherd-3.0.3/src/qdeclarativebooster/libmdeclarativecache.so: undefined reference to `QDeclarativeView::QDeclarativeView(QWidget*)'
collect2: ld returned 1 exit status
If it was qmake, then it should be
Code:
QT += declarative
what should be added to cmake files? (I'm not familiar with cmake)
http://www.kdab.com/using-cmake-with-qt-5/
shows some find_package() samples.

http://eiskaltdc.googlecode.com/svn-...CMakeLists.txt
has a find_package() QtDeclarative variant (not sure whether that one applies here - depends on the Qt version you use).

Given a successful result, then do something like:
target_link_libraries(my_target ${QT_something_LIBRARIES})
(see the FindQt.cmake file content on which libraries result variable it provides).

HTH!
 

The Following 2 Users Say Thank You to vcproj2cmake For This Useful Post: