maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken (https://talk.maemo.org/showthread.php?t=83562)

marmistrz 2012-07-17 12:41

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Quote:

Originally Posted by pablocrossa (Post 1238693)
Well at least that part is ruled out


You should message freemangordon for that, but if you really need them and it is not to be added to CSSU you could package it as a deb dependency (libqt4-meego or something ;) ). Of course I am pretty sure you've thought of this :)

the libqt4 meego parts are part of qt4-x11 package.
Apart from that, there are some Meego-specific functions out there.
I'll contact freemangordon.

Thanks for advice and help!

marmistrz 2012-07-17 13:12

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
OK, after a couple of similar fixes as before, something new came out:

Code:

[ 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

If it was qmake, then it should be
Code:

QT += declarative
what should be added to cmake files? (I'm not familiar with cmake)

The part of source relevant to this problem is here: http://dl.dropbox.com/u/33608122/qde...booster.tar.gz

Thanks in advance

pablocrossa 2012-07-17 13:22

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Quote:

Originally Posted by marmistrz (Post 1238705)
OK, after a couple of similar fixes as before, something new came out:

Code:

[ 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

If it was qmake, then it should be
Code:

QT += declarative
what should be added to cmake files? (I'm not familiar with cmake)

The part of source relevant to this problem is here: http://dl.dropbox.com/u/33608122/qde...booster.tar.gz

Thanks in advance

add
Code:

set(QT_USE_QTDECLARATIVE TRUE)
inside the cmakelists.txt according to this
http://qtnode.net/wiki/Qt4_with_cmake (the cmake: enable/disable parts of the qt library part)
and
http://www.cmake.org/pipermail/cmake...ry/008361.html (cmake declarative add)

I know nothing of qmake or cmake really so hope this helps :D

EDIT: maybe also
Code:

ADD_DEFINITIONS(${QT_DEFINITIONS})
:confused:
http://qt-project.org/quarterly/view...ld_qt_projects

marmistrz 2012-07-17 14:02

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Unfortunately this is not enough. I tried many cmake commands, the CMakeLists.txt file is now:
Code:

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)

But still the linking error

pablocrossa 2012-07-17 14:13

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Quote:

Originally Posted by marmistrz (Post 1238724)
Unfortunately this is not enough. I tried many cmake commands, the CMakeLists.txt file is now:
Code:

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)

But still the linking error

Maybe http://harmattan-dev.nokia.com/docs/...singcmake.html

marmistrz 2012-07-17 14:16

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Quote:

Originally Posted by pablocrossa (Post 1238728)

It's for linking apps with applauncher (and applauncher isn't built yet)

amr.fayz 2012-07-17 14:58

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Quote:

Originally Posted by marmistrz (Post 1238729)
It's for linking apps with applauncher (and applauncher isn't built yet)


Maybe it Useful to u


http://lists.meego.com/pipermail/mee...ne/029192.html

http://lists.meego.com/pipermail/mee...ry/016370.html

http://meego.gitorious.org/meegotouc...CMakeLists.txt


http://www.meego.gitorious.org/meego...CMakeLists.txt


https://build.pub.meego.com/package/...8db5bccdf7f6a4





and About libqt4-meegographicssystemhelper see this

http://fossies.org/unix/misc/qt-ever...er-dev.install


http://harmattan-dev.nokia.com/pool/...ree/q/qt4-x11/





I'm sure you Successful In your project With best wishes

amr.fayz 2012-07-18 12:17

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
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/

marmistrz 2012-07-18 12:40

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
Quote:

Originally Posted by amr.fayz (Post 1239220)
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/

We have Qt 4.7.4 in CSSU
Gtk+ - I don't have any ideas but Harmattan is mostly Qt
gcc 4.6 is in extras-testing
glibc - is in gcc 4.6 thread but causes problems
kernel - indeed newer, what needs it? We have 2.6.28 and libaegis-crypto is in extras-devel

May outdated cmake be the problem with applauncherd? In one of the amr.fayz' links it's claimed that some time ago applauncherd required cmake >= 2.8, and we have 2.6

amr.fayz 2012-07-18 13:06

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
see this

http://www.devheads.net/mobile/maemo...components.htm


All times are GMT. The time now is 11:39.

vBulletin® Version 3.8.8