Reply
Thread Tools
Posts: 4 | Thanked: 1 time | Joined on Nov 2009
#1
Hello,

I want to install my application on the N900. I built this file "radar_1.0.0-1_armel.deb" and I try to install it with the XTerm with the command line :
==> dpkg -i radar_1.0.0-1_armel.deb.
But, when I want to execute my apps (./wlan-radar), there is the following error :
==> ./wlan_radar: line 1: syntax error: "(" unexpected.
I don't understand this error.

thank you for your assistance
j3r3my
 

The Following User Says Thank You to j3r3my For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Originally Posted by j3r3my View Post
==> ./wlan_radar: line 1: syntax error: \\\"(\\\" unexpected.
You\\\'re trying to run an i386 binary on a device with an ARM processor [N900]. This won\\\'t work. If you have \"file\" installed, file ./wlan_radar could probably confirm this.

What does confuse me, however, is that:
* You\\\'ve installed a deb; so why are you trying to run it with ./? That would suggest that you have installed an armel deb, with its armel binary in /usr/bin(?), but are trying to run an i386 binary copied separately.

(Of course, the other theory could be that you have forcibly set the Archtecture in debian/control to armel, built it in FREMANTLE_X86, and are in /usr/bin trying to run the program...)

Last edited by qwerty12; 2009-11-17 at 15:21.
 
Posts: 4 | Thanked: 1 time | Joined on Nov 2009
#3
Thank you for your response.
I built "radar_1.0.0-1_armel.deb" in FREMANTLE_ARMEL.
When I want to install the .deb with "dpkg -i radar_1.0.0-1_armel.deb", there is the following error :
==> dpkg: error processing radar_1.0.0-1_armel.deb (--install): package architecture (i386) does not match system (armel).
I tried to install with "--force-architecture".
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#4
--force-architecture won't do you any good, it's i386 so won't be usable in arm. There's something wrong with your scratchbox setup if the application you build ends up as i386.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 4 | Thanked: 1 time | Joined on Nov 2009
#5
OK. I'm going to verify my scratchbox setup.
Thank you.
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#6
Hi,

I'm not sure, but maybe it is just the control file? Which architecture have you specified there?

Cheers
 
Posts: 4 | Thanked: 1 time | Joined on Nov 2009
#7
It's OK, my scratchbox setup was bad.
Thank you for your help.
 
Posts: 33 | Thanked: 2 times | Joined on Feb 2010
#8
do you mean sb-menu>setup ?
if yes,where can i find file of arm or i486 ?
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#9
this is just an example path.

http://repository.maemo.org/extras-d...free/a/a52dec/

you can find all the debs here(i386 and arm) if the developer has chosen to build it for both platforms, but if you are not comfortable with usage of deb, I would suggest not to install debs directly on your phone.
Use the application manager which uses apt and will automatically install dependencies as well.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 
Posts: 4 | Thanked: 0 times | Joined on Mar 2011
#10
I was to install adobeair.deb using the xTerminal and at the end received the following error: "package architecture i386 does not match system armel". Is there any other way to install adobe Air on N900? If so pls provide some instructions. Also I saw some info about the "Scratchbox setup" but have no idea what that is and how I can change it to install adobe Air. Thanks a bunch!

Last edited by bulajek6; 2011-03-29 at 17:32.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:21.