Active Topics

 


Reply
Thread Tools
Posts: 224 | Thanked: 132 times | Joined on Jun 2012 @ Cairo ;Egypt
#41
Originally Posted by marmistrz View Post
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

Last edited by amr.fayz; 2012-07-17 at 10:23.
 
Posts: 224 | Thanked: 132 times | Joined on Jun 2012 @ Cairo ;Egypt
#42
Originally Posted by marmistrz View Post
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
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#43
Originally Posted by amr.fayz View Post
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.


Originally Posted by amr.fayz View Post
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.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 224 | Thanked: 132 times | Joined on Jun 2012 @ Cairo ;Egypt
#44
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

Last edited by amr.fayz; 2012-07-17 at 11:50.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#45
Originally Posted by amr.fayz View Post
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.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#46
Originally Posted by marmistrz View Post
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.
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post:
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#47
Originally Posted by marmistrz View Post
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

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

The Following User Says Thank You to pablocrossa For This Useful Post:
Posts: 224 | Thanked: 132 times | Joined on Jun 2012 @ Cairo ;Egypt
#48
Originally Posted by marmistrz View Post
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/
 

The Following User Says Thank You to amr.fayz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#49
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)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2012-07-17 at 12:19.
 

The Following User Says Thank You to marmistrz For This Useful Post:
Posts: 189 | Thanked: 171 times | Joined on Jul 2011
#50
Originally Posted by marmistrz View Post
when changed ARG_MAX to ARG_MAX1 it seems to compile cleanly till some point
Well at least that part is ruled out

Originally Posted by marmistrz View Post
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
 
Reply

Tags
fremantle, harmattan, meego, optify, porting


 
Forum Jump


All times are GMT. The time now is 16:53.