Reply
Thread Tools
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#11
I've seen that issue before, having trouble placing exactly what the cause was.

Ensure that you've compiled it for ARM, and that your compiler is liking against the correct glibc verison.
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#12
I followed the Documentation/Maemo 5 developer guide/development environment/maemo sdk and all was ok. that is, i was successfull in running gtk_helloworld in maemo running on the pc. if anyone knows a similar guide to get gtk_helloworld running in maemo but in the n900 device, will be helpfull.
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#13
Originally Posted by r0gcas View Post
@aspidites: what i did after your post is 'chmod +x MyDocs/.documents/gtk_helloworld' from /home/user and then 'MyDocs/.documents/gtk_helloworld' but permision denied too.
do you know how can i do to get that permission to execute the binary? thanks.

to concrete more, that is the binary i got when compiling from scratchbox with target fremantle_x386 set, on the pc, that it works ok when executing from scratchbox with DISPLAY set on xephyr window (i am sure i don't express technically correct but i hope you understand what i want to mean).
from /home/user run:
Code:
mv MyDocs/.documents/gtk_helloworld .
chmod +x ./gtk_helloworld
./gtk_helloworld
For future reference, don't scp as root. Instead, run:
Code:
scp <file name> user@<ip address>:./
For the above to work, you may need to first set the user password. Open up Terminal and run:
Code:
passwd
Then follow the instructions. It should now be possible to scp files as user, which will prevent a lot of permissions headaches.
__________________
aspidites | blog | aspidites@inbox.com
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#14
now i think i see. i was trying to execute a binary compiled in scratchbox with x86 target in an arm device, and i think this is a topic some people already talks about and looks like complicated. what i have to do is to compile the source file in scratchbox but with arm target. but i only have the compilling instruction for the x86 target. is the same compiling instruction for the arm target?
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#15
Originally Posted by r0gcas View Post
now i think i see. i was trying to execute a binary compiled in scratchbox with x86 target in an arm device, and i think this is a topic some people already talks about and looks like complicated. what i have to do is to compile the source file in scratchbox but with arm target. but i only have the compilling instruction for the x86 target. is the same compiling instruction for the arm target?
Target, in this context, means which architecture the binary should be made to run on. If the people that created the environment that you are using did their job well, nothing should have to be changed, except the target, and it should compile just fine.

In scratchbox, I think you change to the right target by "logging in" with the FREMANTLE target.
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#16
yes i know how to change target doing sb-conf select <target> i think. thanks.
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#17
Ok, I resolved it and have my gtk_helloworld app running on nokia-maemo device. First of all i demand excuses if there was an old thread resolving the same question i established here. And second, if for some novice else it is for interest, i present here the summary of the resolution of my problem. Say that i got that solution here and also on the irc #maemo channel. Ok that's the summary:

- First you have to have success in making the steps appointted on Maemo Final Devel Guide/setting environment/testing or something like this, that is, in Documentation.

If that point is achivied it would it mean that you have your gtk_helloworld app running on your pc in scratchbox under x86 target and with xephir and all this stuff.

Now, what you have to do is to change target, you do this by "sb-conf select FREMANTLE_ARMEL". if you can't because it says you you have to close first x86 target i have a solution for that. you put sb-menu. when youre are there you select killall, and that will kill all processes running in scratchbox. then you exit from sb-menu. and now you try again "sb-conf select FREMANTLE_ARMEL". the shell will restart under ARMEL target.

So now what you have to is to compile again the same source code with the same shell compiling instruction as before you did under x86 target. Now you have the binary to run in the nokia-maemo device. Now you can get it in your device for example sending it by email. and downloading it from your device. you are obligged to store it under MyDocs or subfolder. you do it. then enter teminal session and do "cp MyDocs/tmp/<file> ~/" in case you have your file stored in tmp. now you have coppied it in /home/user. now you do "chmod +x ~/<file>" that will give you permission to execute the binary. and finally you execute it with "run-standalone.sh ~/<file>" and voilaaaa. your gtk_helloworld app will be running on your nokia-maemo device.


thank you every body tried to help me and hope this can serve another novice like me walking through here.


Good bye every body and sorry if that thread disturbed a little.

Last edited by r0gcas; 2010-05-10 at 16:47.
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#18
I really don't understand why you'd need to use a script, like run-standalone.sh, to run a binary compiled for the device.

What does that script do? I compile my binaries and copy them to the device and run them without any scripts.
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#19
No, you are right, it is not necessary. you can run it "./<file>" directly. this script what it does is to adapt configuration themes and fonts to the environment. Really it is not necessary, in some cases app looks better (fonts, themes).
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:42.