Re: Error while loading shared library
Hello Nisha, I am not sure I really follow you but here we go On Sat, Jul 5, 2008 at 2:16 AM, nisha jain [EMAIL PROTECTED] wrote: Hi All, I am running my application on the N800 and I get following run time exception. error while loading shared libraries : libgtkdatabox-0.8.2.so.2 : can not open shared object While compilation is perfectly fine also this application binary was running perfectly fine.. on the sdk right? Please let me know if some one can provide some information... search in what package that libgtkdatabox-0.8.2.so.2 is located and install in on the target or add it to the .deb file deps from googling it looks like you are using http://www.eudoxos.de/gtk/gtkdatabox/ is that available or compiled for the N800? greetings ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: 770 info in wiki Re: Has maemo-pc-connectivity been substituted by USB Networking applet (in control panel)?
Hi, Frantisek Dufka wrote: Dave Neary wrote: Information for older OSes or for the 770, should be (IMHO) a footnote at lest, or a reference to an archived page which doesn't show up when browsing the wiki normally. Well, I would not be surprised to hear such opinion from @nokia.com but I am a bit surprised to hear this from @maemo.org :-) I speak not as a representative of Nokia, but as a documentation editor/organiser. One basic rule imposes itself: documentation should be useful to its reader. There's an eternal balance between give the user the information he needs and be as complete as possible. Wiki pages where 10% of the information is useful to an OS2008 user (Install package X) and 90% is useful to a 770 user (Edit file Z, as root run insmod Q, ...), then we need to make the page as simple as possible for the majority of our users (N800 + N810 users), and ensure that the first principles information is available to a 770 user, but isn't in the same place as the useful information for the majority. That means that you have a first page targeted at OS2008 users, and a second page targeted at legacy systems, which is in an appropriate category. The second page will *only* get linked to from the first page, and won't show up in your normal wiki navigation. Please be careful with removing 770/OS2006 or 2007(HE) information. Also people still use N800 with OS2007, latest in not always greatest :-) Often, the first step for someone who has a problem with an N800 and OS2007 is first, upgrade to OS2008. There was a time in my life when I didn't like throwing anything away, but as time has gone on, I realise that you have to make a choice. Some things you keep close at hand or put on the mantelpiece, some things get tidied away in boxes for the day when you might need them, and some things just have to go. Perhaps the newest stuff should be first but footnote or archived page is going too far IMO. Can we tag pages or sections with OS/device names? Please feel free to add pages to a 770 category, but don't categorise pages targeted at the latest version. I'd like to keep the number of categories we use in the wiki overall manageable. Cheers, Dave. -- maemo.org docsmaster Email: [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Error while loading shared library
Hi you can first try if it works by exporting the LD_LIBRARY_PATH to the directory where you .so file is located. It is very normal for applications and shared libraries to get installed under the /usr diirectory and that one is usualy not writable by normal users.Iif you create a .deb file it will be run and installed as the root user. So the permission denied is normal. If you want to compile static against the lib remove the -lmylib options and replace it with a .a(archive) file. hope this helps On Sat, Jul 5, 2008 at 9:46 AM, nisha jain [EMAIL PROTECTED] wrote: Hi Kees, Yes the databox is compiled for ARMEL mode and also i tried copying and installing the .so file which is a shared library i guess dll. I am not able to use package manager to install it neither i am able to copy it to /usr/lib directory as it is giving me permission denied... I tried red pill mode too... I really need to know if i can generate static library or if i can some how create debian package i am not sure how to do it as i tried before but never been successful so far so my application is just a single binary file... Regards, Nisha On 7/5/08, Kees Jongenburger [EMAIL PROTECTED] wrote: Hello Nisha, I am not sure I really follow you but here we go On Sat, Jul 5, 2008 at 2:16 AM, nisha jain [EMAIL PROTECTED] wrote: Hi All, I am running my application on the N800 and I get following run time exception. error while loading shared libraries : libgtkdatabox-0.8.2.so.2 : can not open shared object While compilation is perfectly fine also this application binary was running perfectly fine.. on the sdk right? Please let me know if some one can provide some information... search in what package that libgtkdatabox-0.8.2.so.2 is located and install in on the target or add it to the .deb file deps from googling it looks like you are using http://www.eudoxos.de/gtk/gtkdatabox/ is that available or compiled for the N800? greetings ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
implementation of 2-dimensional array in bash - kind request
Hi, my idea is to declare a function array2D ( ) { } and have 2D array inmterpreted as one row. so calculating array2D ( ) i-th j-th element as i + (j-1) x row length 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 so ith (ith column) element in 3rd row is 2 x 5 + i Can I call such declared function in bash if/for/while command to update my array data ? I need such 2D array to save gps data and more. Darius Send instant messages to your online friends http://uk.messenger.yahoo.com ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
PC,VMware and USB connection to N800
Hi All, I am facing a very strange problem. Whenever I want to connect to N800 to transfer file from my PC I connect it through the USB cable the issue is some times it recognizes and shows the drives in wndows and VMware and some times it doesn't show up at all even doing many times plug and unplug it doesn't show up. I tried device manager settings in the Windows and refreshing the ports USB port doesn't get listed. I also tried rebotting PC and N800 it also doesn't work... I am not sure what causes this to happen? Can some one provide some information also permanent solution for this problem? Regards, Nisha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Wrting to a text file in N800 /media/mmc1
hi All, I wrote a program which is collecting some data and creating text file to write into. I am successfully able to run and execute it in the VmWare maemo enviornment without any problem. When i deployed it into N800 I am getting segmentation fault this application I checked in ARMEL compiled mode on VmWare... I am not sure how to debug it as it is working fine in the Maemo enviornment but crashes on the actual N800 device... Only change is the file created in using like fopen (filename, wt); in the Maemo and in case of N800 fope(/media/mmc1, wt) I tired checking if file gets created to /media/mmc1 or not but it doesn't get created their at all. Let me know if some one has idea? Regards, Nisha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: implementation of 2-dimensional array in bash - kind request
On Sat, 2008-07-05 at 17:54 +, ext Darius Jack wrote: I need such 2D array to save gps data and more. Hmm ... why not switching to C? It might make far less painfull your effort, and probably would be more efficient. -- Cheers, Igor --- Igor Stoppa Maemo Software - Nokia Devices RD - Helsinki ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Wrting to a text file in N800 /media/mmc1
Hi All, I just checked in N800 the following program for writing into a file which doesn't work Any clues what is going wrong? I neither get any error not it is creating a file and writing into it. #includestdio.h void main() { FILE *Gfile; if ((Gfile = fopen(/media/mmc1/test.txt, wt+)) == NULL) { printf(Error in file creation); } if(Gfile) fprintf(Gfile,%02x,0x10); fclose(Gfile); } Regards, Nisha On Sat, Jul 5, 2008 at 5:34 PM, nisha jain [EMAIL PROTECTED] wrote: Hi Gray, I checked the file pointer if it is NULL I am printing error message and returning too. Also i am checking while writing into a file that file pointer is not NULL. I have tested it on mameo (ARMEL) enviornment and it is working absolutely fine I am not able to understand while after porting to N800 it doesn't show up any file created on flash at least it should create an empty file..Does there is some restriciton in writing into flash? Regards, Nisha On Sat, Jul 5, 2008 at 2:29 PM, gary liquid [EMAIL PROTECTED] wrote: nisha, check you have included appended the filename on the end of the path in your adjusted program. Check the return values of all functions called and do not assume success for anything. Most importantly, put printf(fn msg/n); calls around your program at relevant points. The printfs will help you debug by showing you where your software got to and optionally whatever additional information you want to display. Gary (lcuk on maemo) On Sat, Jul 5, 2008 at 6:54 PM, nisha jain [EMAIL PROTECTED] wrote: hi All, I wrote a program which is collecting some data and creating text file to write into. I am successfully able to run and execute it in the VmWare maemo enviornment without any problem. When i deployed it into N800 I am getting segmentation fault this application I checked in ARMEL compiled mode on VmWare... I am not sure how to debug it as it is working fine in the Maemo enviornment but crashes on the actual N800 device... Only change is the file created in using like fopen (filename, wt); in the Maemo and in case of N800 fope(/media/mmc1, wt) I tired checking if file gets created to /media/mmc1 or not but it doesn't get created their at all. Let me know if some one has idea? Regards, Nisha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: 770 info in wiki Re: Has maemo-pc-connectivity been substituted by USB Networking applet (in control panel)?
2008/7/5 Dave Neary [EMAIL PROTECTED]: I speak not as a representative of Nokia, but as a documentation editor/organiser. One basic rule imposes itself: documentation should be useful to its reader. There's an eternal balance between give the user the information he needs and be as complete as possible. Wiki pages where 10% of the information is useful to an OS2008 user (Install package X) and 90% is useful to a 770 user (Edit file Z, as root run insmod Q, ...), then we need to make the page as simple as possible for the majority of our users (N800 + N810 users), and ensure that the first principles information is available to a 770 user, All agreed with you up to here. but isn't in the same place as the useful information for the majority. That means that you have a first page targeted at OS2008 users, and a second page targeted at legacy systems, which is in an appropriate category. The second page will *only* get linked to from the first page, and won't show up in your normal wiki navigation. But the rest is arbitrary. I see no need for separate pages, only clear section headings within the page. Please be careful with removing 770/OS2006 or 2007(HE) information. Also people still use N800 with OS2007, latest in not always greatest :-) Often, the first step for someone who has a problem with an N800 and OS2007 is first, upgrade to OS2008. There was a time in my life when I didn't like throwing anything away, but as time has gone on, I realise that you have to make a choice. Some things you keep close at hand or put on the mantelpiece, some things get tidied away in boxes for the day when you might need them, and some things just have to go. That is you making a choice for yourself. In the current discussion about wiki content, the debate is whether your proposal is best for the whole community, some of whom will have made different choices; not just for how you use your ITs. Regards, Neil ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Wrting to a text file in N800 /media/mmc1
How I can check if the mmc set is read only or not? Regards, Nisha On 7/5/08, gary liquid [EMAIL PROTECTED] wrote: sounds more like a permissions issue? can you write to a file in that location from the terminal and as the same user, or is the entire mmc set to read only? I have heard rumours that such a thing is possible but never encountered it myself (ive got an 810) Gary On Sat, Jul 5, 2008 at 9:09 PM, nisha jain [EMAIL PROTECTED] wrote: Hi All, I just checked in N800 the following program for writing into a file which doesn't work Any clues what is going wrong? I neither get any error not it is creating a file and writing into it. #includestdio.h void main() { FILE *Gfile; if ((Gfile = fopen(/media/mmc1/test.txt, wt+)) == NULL) { printf(Error in file creation); } if(Gfile) fprintf(Gfile,%02x,0x10); fclose(Gfile); } Regards, Nisha On Sat, Jul 5, 2008 at 5:34 PM, nisha jain [EMAIL PROTECTED] wrote: Hi Gray, I checked the file pointer if it is NULL I am printing error message and returning too. Also i am checking while writing into a file that file pointer is not NULL. I have tested it on mameo (ARMEL) enviornment and it is working absolutely fine I am not able to understand while after porting to N800 it doesn't show up any file created on flash at least it should create an empty file..Does there is some restriciton in writing into flash? Regards, Nisha On Sat, Jul 5, 2008 at 2:29 PM, gary liquid [EMAIL PROTECTED] wrote: nisha, check you have included appended the filename on the end of the path in your adjusted program. Check the return values of all functions called and do not assume success for anything. Most importantly, put printf(fn msg/n); calls around your program at relevant points. The printfs will help you debug by showing you where your software got to and optionally whatever additional information you want to display. Gary (lcuk on maemo) On Sat, Jul 5, 2008 at 6:54 PM, nisha jain [EMAIL PROTECTED] wrote: hi All, I wrote a program which is collecting some data and creating text file to write into. I am successfully able to run and execute it in the VmWare maemo enviornment without any problem. When i deployed it into N800 I am getting segmentation fault this application I checked in ARMEL compiled mode on VmWare... I am not sure how to debug it as it is working fine in the Maemo enviornment but crashes on the actual N800 device... Only change is the file created in using like fopen (filename, wt); in the Maemo and in case of N800 fope(/media/mmc1, wt) I tired checking if file gets created to /media/mmc1 or not but it doesn't get created their at all. Let me know if some one has idea? Regards, Nisha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Wrting to a text file in N800 /media/mmc1
Hi All, I checked permission issue I also tried locking/ unlocaking the memory card but program below is not working.. I have permission of writing but it is not generating a simple text file from the following c program which works perfectly fine into maemo ARMEL enviornment so called N800 replica.. What could be the issue? Any inputs will be highly appreciated... Regards, Nisha On 7/5/08, nisha jain [EMAIL PROTECTED] wrote: Hi All, I just checked in N800 the following program for writing into a file which doesn't work Any clues what is going wrong? I neither get any error not it is creating a file and writing into it. #includestdio.h void main() { FILE *Gfile; if ((Gfile = fopen(/media/mmc1/test.txt, wt+)) == NULL) { printf(Error in file creation); } if(Gfile) fprintf(Gfile,%02x,0x10); fclose(Gfile); } Regards, Nisha On Sat, Jul 5, 2008 at 5:34 PM, nisha jain [EMAIL PROTECTED] wrote: Hi Gray, I checked the file pointer if it is NULL I am printing error message and returning too. Also i am checking while writing into a file that file pointer is not NULL. I have tested it on mameo (ARMEL) enviornment and it is working absolutely fine I am not able to understand while after porting to N800 it doesn't show up any file created on flash at least it should create an empty file..Does there is some restriciton in writing into flash? Regards, Nisha On Sat, Jul 5, 2008 at 2:29 PM, gary liquid [EMAIL PROTECTED] wrote: nisha, check you have included appended the filename on the end of the path in your adjusted program. Check the return values of all functions called and do not assume success for anything. Most importantly, put printf(fn msg/n); calls around your program at relevant points. The printfs will help you debug by showing you where your software got to and optionally whatever additional information you want to display. Gary (lcuk on maemo) On Sat, Jul 5, 2008 at 6:54 PM, nisha jain [EMAIL PROTECTED] wrote: hi All, I wrote a program which is collecting some data and creating text file to write into. I am successfully able to run and execute it in the VmWare maemo enviornment without any problem. When i deployed it into N800 I am getting segmentation fault this application I checked in ARMEL compiled mode on VmWare... I am not sure how to debug it as it is working fine in the Maemo enviornment but crashes on the actual N800 device... Only change is the file created in using like fopen (filename, wt); in the Maemo and in case of N800 fope(/media/mmc1, wt) I tired checking if file gets created to /media/mmc1 or not but it doesn't get created their at all. Let me know if some one has idea? Regards, Nisha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Wrting to a text file in N800 /media/mmc1
Hi Ed, I just checked too I got this suggestion and tried, it is also not working :( I am very amazed why it is not working? So i am trying following now-- #includestdio.h void main() { FILE *Gfile; if ((Gfile = fopen(/media/mmc1/test.txt, w+)) == NULL) { printf(Error in file creation); } if(Gfile) fprintf(Gfile,%02x,0x10); fclose(Gfile); } Regards, Nisha On 7/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Nisha, Try changing the mode flags to w+, I don't think wt+ is valid. If you do a `man fopen` on a linux machine you will see there is no t option for mode flags. Ed Okerson Hi All, I checked permission issue I also tried locking/ unlocaking the memory card but program below is not working.. I have permission of writing but it is not generating a simple text file from the following c program which works perfectly fine into maemo ARMEL enviornment so called N800 replica.. What could be the issue? Any inputs will be highly appreciated... Regards, Nisha On 7/5/08, nisha jain [EMAIL PROTECTED] wrote: Hi All, I just checked in N800 the following program for writing into a file which doesn't work Any clues what is going wrong? I neither get any error not it is creating a file and writing into it. #includestdio.h void main() { FILE *Gfile; if ((Gfile = fopen(/media/mmc1/test.txt, wt+)) == NULL) { printf(Error in file creation); } if(Gfile) fprintf(Gfile,%02x,0x10); fclose(Gfile); } Regards, Nisha On Sat, Jul 5, 2008 at 5:34 PM, nisha jain [EMAIL PROTECTED] wrote: Hi Gray, I checked the file pointer if it is NULL I am printing error message and returning too. Also i am checking while writing into a file that file pointer is not NULL. I have tested it on mameo (ARMEL) enviornment and it is working absolutely fine I am not able to understand while after porting to N800 it doesn't show up any file created on flash at least it should create an empty file..Does there is some restriciton in writing into flash? Regards, Nisha On Sat, Jul 5, 2008 at 2:29 PM, gary liquid [EMAIL PROTECTED] wrote: nisha, check you have included appended the filename on the end of the path in your adjusted program. Check the return values of all functions called and do not assume success for anything. Most importantly, put printf(fn msg/n); calls around your program at relevant points. The printfs will help you debug by showing you where your software got to and optionally whatever additional information you want to display. Gary (lcuk on maemo) On Sat, Jul 5, 2008 at 6:54 PM, nisha jain [EMAIL PROTECTED] wrote: hi All, I wrote a program which is collecting some data and creating text file to write into. I am successfully able to run and execute it in the VmWare maemo enviornment without any problem. When i deployed it into N800 I am getting segmentation fault this application I checked in ARMEL compiled mode on VmWare... I am not sure how to debug it as it is working fine in the Maemo enviornment but crashes on the actual N800 device... Only change is the file created in using like fopen (filename, wt); in the Maemo and in case of N800 fope(/media/mmc1, wt) I tired checking if file gets created to /media/mmc1 or not but it doesn't get created their at all. Let me know if some one has idea? Regards, Nisha ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers