Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have cross compiled libfprint and his dependencies for the ARM9 architecture. I've chosen for libfprint because it supports a lot of finterprint reader devices. It's not developed for embedded systems, but i have plenty of space on my embedded board board (512 mb), so the extra space for the dependencies (glib, imagemagick) is not a problem.
Well when i want to test my software on the embedded arm board an error appears:
"libfprint.so.0: cannot map zero-fill pages: cannot allocate memory"
The library can't be loaded... I have only 32 mb of RAM memory.
When execute the following command : free -m
i'll see that there is 21 mb of memory availeble, but there is no swap partition or swap file.
Anybody knows a solution for this problem ? Could creating a swap file a solution for this problem ?
(The (light weight) distribution i have installed is debian)
It basically goes thru all the libs and re-sets them (ie:.la files, etc..of where/what libs to use for what, etc..)... one may have to do this either if they go thru dpkg or such as apt-get, etc.. auto does this or incase one thinks the libs may be out of order, etc.. u can search the net for more info. on this.
It basically goes thru all the libs and re-sets them (ie:.la files, etc..of where/what libs to use for what, etc..)... one may have to do this either if they go thru dpkg or such as apt-get, etc.. auto does this or incase one thinks the libs may be out of order, etc.. u can search the net for more info. on this.
Thank you. I'll try it.
But could it also be a memory problem and is a swap file a good solution then ?
I'm experiencing the same problem with libfprint, but on a 486 embedded system:
"libfprint.so.0: cannot map zero-fill pages: cannot allocate memory".
If you get some more hints about this problem, please share it with us.
I'm experiencing the same problem with libfprint, but on a 486 embedded system:
"libfprint.so.0: cannot map zero-fill pages: cannot allocate memory".
If you get some more hints about this problem, please share it with us.
Thank you,
Leo
I fixed it, by creating a swap file. The error was gone.
So it was a memory problem.
I've also seen on the net advices to enable a swap file or partition in this case, but my system seems not to be prepared for it. I've seen (on my desktop machine) that a simple program like that 'verify_live' from libfprint takes a lot of memory while running, about 50MB and I also have only 32 MB of RAM.
I am now investigating the libfprint code and see if I can find a way to 'soak' this library (optimize it). I think it will be the only hope for me.
I've also seen on the net advices to enable a swap file or partition in this case, but my system seems not to be prepared for it. I've seen (on my desktop machine) that a simple program like that 'verify_live' from libfprint takes a lot of memory while running, about 50MB and I also have only 32 MB of RAM.
I am now investigating the libfprint code and see if I can find a way to 'soak' this library (optimize it). I think it will be the only hope for me.
Thanks.
Your system is not prepared for it ? You can always create a swap file. It's not very fast but if you have to wait twice the normal time it's still just a second/two seconds.
But it is very recommend to clean the code or search an embedded board with more memory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.