Active Topics

 


Reply
Thread Tools
Posts: 8 | Thanked: 3 times | Joined on Dec 2010
#1
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?
 

The Following User Says Thank You to petermlm For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
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.
 
Posts: 8 | Thanked: 3 times | Joined on Dec 2010
#3
Originally Posted by michaaa62 View Post
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.
 
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#4
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:08.