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-17 09:47

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by marmistrz (Post 1205767)
Hmmm, I tried compiling aegis-crypto, which is a dependency for applauncher
The first error (IN_NONBLOCK not declared) I was able to fix myself but there's another one I've got no idea what to do with.
The error is:

Code:

aegis_storage.cpp: In member function 'bool aegis::storage::inotify_set_watch()':
aegis_storage.cpp:1088: error: 'inotify_init1' was not declared in this scope

The patch for the first error is attached.

Does anybody know how this error can be fixed?

libbb5-dev shouldn't be required, as libmaemosec-something shhould have the needed files.



It looks Problem in kernel version you are using an old kernel version, inotify_init1 was added in 2.6.27 you can either, upgrade your kernel or change this line

https://github.com/c4milo/node-inoti...ndings.cc#L113
for
inotify->fd = inotify_init();
but note that I haven't tested this change. You can also read http://www.kernel.org/doc/man-pages/...y_init1.2.html to get more information.


or u can see C++ Compiler Error i hop it help u

http://www.velocityreviews.com/forum...his-scope.html
http://stackoverflow.com/questions/6...n-this-scope-c

amr.fayz 2012-07-17 10:19

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by marmistrz (Post 1229507)
In newer aegis-crypto there's no such problem.
I'm trying to compile applauncherd anyway (it may be useful with limited resources N900 has)

What's wrong with that line:
Code:

    const uint32_t ARG_MAX = 1024;
The error is:
Code:

/home/marcin/applauncher/meegotouch-meegotouch-applauncherd/src/launcherlib/connection.cpp:356: error: expected unqualified-id before numeric constant
Thanks in advance


I wish for help u But I'm not a programmer unfortunately Like you it is C++ Compiler Error u can see this for Example


http://www.linuxquestions.org/questi...l-n00b-561352/

http://ubuntuforums.org/showthread.php?t=1255287

marmistrz 2012-07-17 11:02

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by amr.fayz (Post 1238643)
I wish for help u But I'm not a programmer unfortunately Like you it is C++ Compiler Error u can see this for Example


http://www.linuxquestions.org/questi...l-n00b-561352/

http://ubuntuforums.org/showthread.php?t=1255287

I know it's a C++ compiler error. But why is the error happening?
If I do
Code:

const int variable = 32
everything's ok.


Quote:

Originally Posted by amr.fayz (Post 1238628)
It looks Problem in kernel version you are using an old kernel version, inotify_init1 was added in 2.6.27 you can either, upgrade your kernel or change this line

https://github.com/c4milo/node-inoti...ndings.cc#L113
for
inotify->fd = inotify_init();
but note that I haven't tested this change. You can also read http://www.kernel.org/doc/man-pages/...y_init1.2.html to get more information.


or u can see C++ Compiler Error i hop it help u

http://www.velocityreviews.com/forum...his-scope.html
http://stackoverflow.com/questions/6...n-this-scope-c

In aegis-crypto 1.1.5 there's no such problem. It's been fixed there.

amr.fayz 2012-07-17 11:33

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
I know it's a C++ compiler error. But why is the error happening?
If I do
Code:

const int variable = 32


u can change int with unsigned int or long or els


see this

http://en.wikibooks.org/wiki/A_Littl..._and_Constants


http://www.codersource.net/C/CTutorials/CPointers.aspx

marmistrz 2012-07-17 11:48

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by amr.fayz (Post 1238665)
I know it's a C++ compiler error. But why is the error happening?
If I do
Code:

const int variable = 32


u can Possible change int with unsigned int or els


see this

http://en.wikibooks.org/wiki/A_Littl..._and_Constants


http://www.codersource.net/C/CTutorials/CPointers.aspx

I don't want to change the types. I think it's something wrong with the ARG_MAX name. But I don't know what.

ajalkane 2012-07-17 11:53

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by marmistrz (Post 1229507)
In newer aegis-crypto there's no such problem.
I'm trying to compile applauncherd anyway (it may be useful with limited resources N900 has)

What's wrong with that line:
Code:

    const uint32_t ARG_MAX = 1024;
The error is:
Code:

/home/marcin/applauncher/meegotouch-meegotouch-applauncherd/src/launcherlib/connection.cpp:356: error: expected unqualified-id before numeric constant
Thanks in advance

uint32_t is defined in stdint.h, is that included?

If that file is included or not found, then you should define that yourself. Something like

Code:

typedef unsigned int uint32_t
should work.

pablocrossa 2012-07-17 12:01

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by marmistrz (Post 1238671)
I don't want to change the types. I think it's something wrong with the ARG_MAX name. But I don't know what.

You could be very right
http://bytes.com/topic/c/answers/752...-constant-mean

:confused: Try another name, simply put ARG_MAX1 and test it just to rule out the problem :)

amr.fayz 2012-07-17 12:02

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by marmistrz (Post 1238671)
I don't want to change the types. I think it's something wrong with the ARG_MAX name. But I don't know what.


Have you tried Erase this code or is it important ? with the ARG_MAX see this http://www.in-ulm.de/~mascheck/various/argmax/

marmistrz 2012-07-17 12:17

Re: [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
when changed ARG_MAX to ARG_MAX1 it seems to compile cleanly till some point

Code:

[ 13%] Building CXX object src/mbooster/CMakeFiles/mbooster.dir/mbooster.cpp.o
/home/marcin/applauncher/meegotouch-meegotouch-applauncherd/src/mbooster/mbooster.cpp: In member function 'virtual void MBooster::preinit()':
/home/marcin/applauncher/meegotouch-meegotouch-applauncherd/src/mbooster/mbooster.cpp:116: error: 'setAppName' is not a member of 'QApplication'
/home/marcin/applauncher/meegotouch-meegotouch-applauncherd/src/mbooster/mbooster.cpp:119: error: 'setAppClass' is not a member of 'QApplication'
/home/marcin/applauncher/meegotouch-meegotouch-applauncherd/src/mbooster/mbooster.cpp:122: error: 'AA_LinuxReinitPathsFromArgv0' is not a member of 'Qt'

I guess it's something specific to Harmattan
Anyway, I found a patch for this in build.pub.meego.com. (A couple days ago applauncherd 3.0.3 went out)
I'll try this version out.

By the way, is it possible for the MeeGo's libqt4 to be included in CSSU? It's one of the blockers to compile newer libmeegotouch (libqt4-meegographicssystemhelper to be precise)

pablocrossa 2012-07-17 12:29

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 1238686)
when changed ARG_MAX to ARG_MAX1 it seems to compile cleanly till some point

Well at least that part is ruled out

Quote:

Originally Posted by marmistrz (Post 1238686)
By the way, is it possible for the MeeGo's libqt4 to be included in CSSU? It's one of the blockers to compile newer libmeegotouch (libqt4-meegographicssystemhelper to be precise)

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


All times are GMT. The time now is 23:05.

vBulletin® Version 3.8.8