Reply
Thread Tools
Posts: 217 | Thanked: 20 times | Joined on Jan 2010
#1
Hi all, I have compiled my very first maemo app using the SDK on a ubuntu karmic.
Everything works as supposed so inside the scratchbox, but when I copy the helloworld bin to the device, I get a syntax error when running it.

./helloworld: line 1: syntax error: "(" unexpected

I work with PHP POO and learned C++ 5 years ago but never worked with it, so I am trying to get use to C++.

My first main goal is to develop a little app that detects a SIM card not known and then sends an SMS with the actual location of the phone.

Long way to go yet.

Thanks

dhcmega
 
Posts: 217 | Thanked: 20 times | Joined on Jan 2010
#2
I have just realized that I have compiled it for 486, I have to compile it for armel. Dont know how yet.
 
Posts: 217 | Thanked: 20 times | Joined on Jan 2010
#3
Ok, it wasnt that difficult.
inside scratchbox changed to armel with sb-menu, compiled, copied to device, changed permissions and worked just fine.

thanks for my help! :P
 

The Following User Says Thank You to dhcmega For This Useful Post:
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#4
Hey can you briefly tell me how you tested the app in scratchbox .. ? A wiki page with all the instructions would be really good .. !
 
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#5
Originally Posted by ahmadka View Post
Hey can you briefly tell me how you tested the app in scratchbox .. ? A wiki page with all the instructions would be really good .. !
Briefly:
For console app:
Code:
./helloworld
For GUI app:
Code:
run-standalone.sh ./gui_helloworld
Long version:
http://wiki.maemo.org/Documentation/...K_Installation
 

The Following User Says Thank You to TNiga For This Useful Post:
Reply


 
Forum Jump


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