maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   To the phone (https://talk.maemo.org/showthread.php?t=67696)

petermlm 2010-12-31 13:57

To the phone
 
Hello, I've been having fun exploring the development possibilities for the Maemo and the Nokia N900. I have some experience working with Qt for desktop in linux distros and in windows, am I am now exploring Qt for Maemo. I compiled and run in the emulator some simple apps how ever I am missing an important step. After my app is running in the emulator, what is the proper step to put it running in the phone. I found that just transferring the app's bin file to /home/user/ just won't work. This may be a noob question but I am really lost in this step, can someone help me?

michaaa62 2010-12-31 14:27

Re: To the phone
 
For it to work you have to have all the dependencies, if any, installed. If it is something like a script you have to make the file executable
Code:

chmod +x /home/user/bin/SomeApplication
Ther more complex it becomes, the more likely it is to have the application installed in the proper path /usr/bin/ with additional stuff being either /usr/share /usr/lib.

petermlm 2010-12-31 18:55

Re: To the phone
 
Quote:

Originally Posted by michaaa62 (Post 908380)
For it to work you have to have all the dependencies, if any, installed. If it is something like a script you have to make the file executable
Code:

chmod +x /home/user/bin/SomeApplication
Ther more complex it becomes, the more likely it is to have the application installed in the proper path /usr/bin/ with additional stuff being either /usr/share /usr/lib.

The binary I want has the permissions: -rwxr-x-r-x in ubuntu's terminal and in scratchbox. How ever in Maemo the permissions are always -rw-r---r-- and I can't change them, not even with sudo gainroot, they just won't change, and when I try to run the file with a simple:

Code:

./file
or

Code:

su -c ./file user
what I get is: permission denied.

retsaw 2010-12-31 19:20

Re: To the phone
 
Where are you putting the file? If it is on the mass storage part (/home/user/MyDocs) which gets exported when you connect it to a computer, then you won't be able to change the permissions because FAT32 doesn't support file permissions and it is mounted with the option set not to allow executables to run from it.


All times are GMT. The time now is 06:43.

vBulletin® Version 3.8.8