The Following User Says Thank You to marmistrz For This Useful Post: | ||
|
2012-07-17
, 13:12
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#52
|
[ 51%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/ut_dbooster.cpp.o [ 52%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/appdata.cpp.o [ 52%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/booster.cpp.o [ 53%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/connection.cpp.o [ 53%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/common/eventhandler.cpp.o [ 54%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/logger.cpp.o [ 54%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/qdeclarativebooster/qdeclarativebooster.cpp.o [ 55%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/singleinstance.cpp.o [ 55%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/socketmanager.cpp.o [ 56%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/moc_ut_dbooster.cxx.o [ 56%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/common/moc_eventhandler.cxx.o 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
QT += declarative
|
2012-07-17
, 13:22
|
Posts: 189 |
Thanked: 171 times |
Joined on Jul 2011
|
#53
|
OK, after a couple of similar fixes as before, something new came out:
If it was qmake, then it should beCode:[ 51%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/ut_dbooster.cpp.o [ 52%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/appdata.cpp.o [ 52%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/booster.cpp.o [ 53%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/connection.cpp.o [ 53%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/common/eventhandler.cpp.o [ 54%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/logger.cpp.o [ 54%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/qdeclarativebooster/qdeclarativebooster.cpp.o [ 55%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/singleinstance.cpp.o [ 55%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/launcherlib/socketmanager.cpp.o [ 56%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/moc_ut_dbooster.cxx.o [ 56%] Building CXX object tests/common/unittests/ut_dbooster/CMakeFiles/ut_dbooster.dir/__/__/__/__/src/common/moc_eventhandler.cxx.o 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
what should be added to cmake files? (I'm not familiar with cmake)Code:QT += declarative
The part of source relevant to this problem is here: http://dl.dropbox.com/u/33608122/qde...booster.tar.gz
Thanks in advance
set(QT_USE_QTDECLARATIVE TRUE)
ADD_DEFINITIONS(${QT_DEFINITIONS})
The Following User Says Thank You to pablocrossa For This Useful Post: | ||
|
2012-07-17
, 14:02
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#54
|
include(FindX11) # Qt support include(${QT_USE_FILE}) FIND_PACKAGE(Qt4 REQUIRED) set(LAUNCHER "${CMAKE_HOME_DIRECTORY}/src/launcherlib") set(COMMON "${CMAKE_HOME_DIRECTORY}/src/common") set(QT_USE_QTDECLARATIVE TRUE) set(QT_USE_QTMAIN TRUE) ADD_DEFINITIONS(${QT_DEFINITIONS}) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${COMMON} ${LAUNCHER}) # Set sources set(PLUGINSRC qdeclarativebooster.cpp pluginfactory.cpp ${LAUNCHER}/appdata.cpp ${LAUNCHER}/booster.cpp ${LAUNCHER}/connection.cpp ${LAUNCHER}/logger.cpp ${LAUNCHER}/singleinstance.cpp ${LAUNCHER}/socketmanager.cpp ${COMMON}/eventhandler.cpp) set(MOC_HDRS ${COMMON}/eventhandler.h) qt4_wrap_cpp(MOC_SRC ${MOC_HDRS}) set(LIBSRC mdeclarativecache.cpp mdeclarativecache.h mdeclarativecache_p.h) # Set executables add_library(mdeclarativecache SHARED ${LIBSRC}) set_target_properties(mdeclarativecache PROPERTIES VERSION 0.1 SOVERSION 0) if ($ENV{HARMATTAN}) set_target_properties(mdeclarativecache PROPERTIES COMPILE_FLAGS -DHAVE_PATH_REINIT) endif ($ENV{HARMATTAN}) target_link_libraries(mdeclarativecache ${LIBDL} ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES}) add_library(qdeclarativebooster MODULE ${PLUGINSRC} ${MOC_SRC}) set_target_properties(qdeclarativebooster PROPERTIES COMPILE_FLAGS -fvisibility=hidden) target_link_libraries(qdeclarativebooster ${LIBDL} "-L. -lmdeclarativecache") add_dependencies(qdeclarativebooster mdeclarativecache) # Add install rule install(TARGETS qdeclarativebooster DESTINATION /usr/lib/applauncherd/) install(TARGETS mdeclarativecache DESTINATION /usr/lib) install(FILES mdeclarativecache.h MDeclarativeCache DESTINATION /usr/include/applauncherd PERMISSIONS OWNER_READ GROUP_READ WORLD_READ) install(FILES README-QDECLARATIVEBOOSTER DESTINATION /usr/share/doc/applauncherd)
|
2012-07-17
, 14:13
|
Posts: 189 |
Thanked: 171 times |
Joined on Jul 2011
|
#55
|
Unfortunately this is not enough. I tried many cmake commands, the CMakeLists.txt file is now:
But still the linking errorCode:include(FindX11) # Qt support include(${QT_USE_FILE}) FIND_PACKAGE(Qt4 REQUIRED) set(LAUNCHER "${CMAKE_HOME_DIRECTORY}/src/launcherlib") set(COMMON "${CMAKE_HOME_DIRECTORY}/src/common") set(QT_USE_QTDECLARATIVE TRUE) set(QT_USE_QTMAIN TRUE) ADD_DEFINITIONS(${QT_DEFINITIONS}) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${COMMON} ${LAUNCHER}) # Set sources set(PLUGINSRC qdeclarativebooster.cpp pluginfactory.cpp ${LAUNCHER}/appdata.cpp ${LAUNCHER}/booster.cpp ${LAUNCHER}/connection.cpp ${LAUNCHER}/logger.cpp ${LAUNCHER}/singleinstance.cpp ${LAUNCHER}/socketmanager.cpp ${COMMON}/eventhandler.cpp) set(MOC_HDRS ${COMMON}/eventhandler.h) qt4_wrap_cpp(MOC_SRC ${MOC_HDRS}) set(LIBSRC mdeclarativecache.cpp mdeclarativecache.h mdeclarativecache_p.h) # Set executables add_library(mdeclarativecache SHARED ${LIBSRC}) set_target_properties(mdeclarativecache PROPERTIES VERSION 0.1 SOVERSION 0) if ($ENV{HARMATTAN}) set_target_properties(mdeclarativecache PROPERTIES COMPILE_FLAGS -DHAVE_PATH_REINIT) endif ($ENV{HARMATTAN}) target_link_libraries(mdeclarativecache ${LIBDL} ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES}) add_library(qdeclarativebooster MODULE ${PLUGINSRC} ${MOC_SRC}) set_target_properties(qdeclarativebooster PROPERTIES COMPILE_FLAGS -fvisibility=hidden) target_link_libraries(qdeclarativebooster ${LIBDL} "-L. -lmdeclarativecache") add_dependencies(qdeclarativebooster mdeclarativecache) # Add install rule install(TARGETS qdeclarativebooster DESTINATION /usr/lib/applauncherd/) install(TARGETS mdeclarativecache DESTINATION /usr/lib) install(FILES mdeclarativecache.h MDeclarativeCache DESTINATION /usr/include/applauncherd PERMISSIONS OWNER_READ GROUP_READ WORLD_READ) install(FILES README-QDECLARATIVEBOOSTER DESTINATION /usr/share/doc/applauncherd)
|
2012-07-17
, 14:16
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#56
|
Maybe http://harmattan-dev.nokia.com/docs/...singcmake.html
The Following User Says Thank You to marmistrz For This Useful Post: | ||
|
2012-07-17
, 14:58
|
Posts: 224 |
Thanked: 132 times |
Joined on Jun 2012
@ Cairo ;Egypt
|
#57
|
It's for linking apps with applauncher (and applauncher isn't built yet)
The Following User Says Thank You to amr.fayz For This Useful Post: | ||
|
2012-07-18
, 12:17
|
Posts: 224 |
Thanked: 132 times |
Joined on Jun 2012
@ Cairo ;Egypt
|
#58
|
|
2012-07-18
, 12:40
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#59
|
hi marmistrz I hope to finds you well
the new in Harmattan compared to Fremantle
Qt is upgraded
GTK+ user interface is upgraded
gcc is upgraded
glibc is upgraded
Kernel is upgraded
all of this can upgrade the problem in Kernel can u upgrade Kernel of Fremantle to Support Harmattan see this If it helps you
http://maemo.cloud-7.de/HARM/N9/openmode_kernel_PR1.1/
|
2012-07-18
, 13:06
|
Posts: 224 |
Thanked: 132 times |
Joined on Jun 2012
@ Cairo ;Egypt
|
#60
|
Apart from that, there are some Meego-specific functions out there.
I'll contact freemangordon.
Thanks for advice and help!
If you want to support my work, you can donate by PayPal or Flattr
Projects no longer actively developed: here