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)

amr.fayz 2012-07-18 13:32

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 1239229)
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



I mean Kernel is upgraded to version 2.6.32. no 2.6.28

Differences between Fremantle and Harmattan

http://harmattan-dev.nokia.com/unsta...omparison.html


Source http://harmattan-dev.nokia.com/docs/...Fremantle.html

amr.fayz 2012-07-18 13:35

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 1239229)

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


try this


Download

www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz


Install CMake by running the following commands

HTML Code:

./bootstrap --prefix=/usr      \
            --system-libs      \
            --mandir=/share/man \
            --docdir=/share/doc/cmake-2.8.7 &&
make


HTML Code:

make install


I did not try it but I hope it helps you


Index of /files/v2.8

http://www.cmake.org/files/v2.8/

marmistrz 2012-07-18 13:36

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 1239252)
try this


Download

www.cmake.org/files/v2.8/cmake-2.8.7.tar.gz


Install CMake by running the following commands

HTML Code:

./bootstrap --prefix=/usr      \
            --system-libs      \
            --mandir=/share/man \
            --docdir=/share/doc/cmake-2.8.7 &&
make


HTML Code:

make install


I did not try it but I hope it helps you

I'll be trying harmattan's cmake

amr.fayz 2012-07-18 13:43

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 1239253)
I'll be trying harmattan's cmake



Good luck

I hope work with you


http://harmattan-dev.nokia.com/docs/...html/main.html

amr.fayz 2012-07-19 15: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 1239229)
We have Qt 4.7.4 in CSSU
kernel - indeed newer, what needs it? We have 2.6.28 and libaegis-crypto is in extras-devel


I mean Kernel is upgraded to version 2.6.32. no 2.6.28


I found n900_kernel_2.6.37


http://nin101.uni.cx/N900/rescueOS/sourcecode/



can u Made maemo deb file to it

marmistrz 2012-07-19 16:07

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 1239841)
I mean Kernel is upgraded to version 2.6.32. no 2.6.28


I found n900_kernel_2.6.37


http://nin101.uni.cx/N900/rescueOS/sourcecode/



can u Made maemo deb file to it

I don't think we need it. If anyone knows any other reason why cmake fails to link QtDeclarative, please let me know (http://talk.maemo.org/showpost.php?p...5&postcount=52)

amr.fayz 2012-07-19 16:19

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 1239844)
I don't think we need it. If anyone knows any other reason why cmake fails to link QtDeclarative, please let me know (http://talk.maemo.org/showpost.php?p...5&postcount=52)


I know it's not need According to your words previously but i want u Give me Result of experience If it was useful

vcproj2cmake 2012-07-25 15:12

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:

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!

marmistrz 2012-07-25 17:49

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 vcproj2cmake (Post 1242809)
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!

Applauncherd already has this:
Code:

target_link_libraries(mdeclarativecache ${LIBDL} ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES})
The linking error happens with both Qt 4.7.0 and 4.7.4

EDIT:
Code:

target_link_libraries(mdeclarativecache ${LIBDL} ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${QT_QTGUI_LIBRARY} ${X11_LIBRARIES} QtDeclarative)
works like charm! It builds flawlessly! Debs & autobuilder coming soon.


All times are GMT. The time now is 19:19.

vBulletin® Version 3.8.8