If you meet following errors below when you try to build your source code:
Checking build tools versions...
build/core/main.mk:72:
************************************************************
build/core/main.mk:73: You are attempting to build on a 32-bit system.
build/core/main.mk:74: Only 64-bit build environments are supported beyond froyo/2.2.
build/core/main.mk:75:
************************************************************
Don’t panic, just change the code:
build/core/main.mk
ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
---ifneq (64,$(findstring 64,$(build_arch)))
+++ifneq (i686,$(findstring i686,$(build_arch)))
and change the code in four mk files below from “+=-m64” to “+=-m32”
external/clearsilver/cgi/Android.mk
external/clearsilver/java-jni/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
end.
This How-To works with many NOKIA Mobile Phone, especially for
Nokia 3230, 6670, 6680, 6682 e 7610, 6120, Sony Ericsson Z1010, LG
U8110/8120.
First of all, we have to grant access for Mobile Phone to “dialout” group.
sudo gedit /etc/udev/rules.d/40-permissions.rules
Now we have to add to the end of file:
# NOKIA 6120
BUS==”usb”, SYSFS{idVendor}==”0421″, SYSFS{idProduct}==”002f”, GROUP=”dialout”
where 0421 and 002f could be different depending on your Mobile Phone.
To check your idVendor and idProduct, we have to type on terminal
lsusb
Bus 003 Device 009: ID 0421:002f Nokia Mobile Phones
Now, we have to reload udev permission file:
sudo /etc/init.d/udev restart
We have to add our username on group “dialout”
gpasswd -a username dialout
All basics configurations for USB Data Cable are completed. We can start installation of obexftp and obextool GUI. Obextool GUI is written for tk graphic library, so GUI not have a good design as GTK.
sudo apt-get install openobex-apps libopenobex1 obexftp obextool
If you want start obextool from terminal we have to type for the first time:
export OBEXCMD=”obexftp -t /dev/ttyACM0 -u 1″
obextool
or, we can start it simply by typing:
obextool –obexcmd “obexftp -t /dev/ttyACM0 -u 1″
When we start Obextool we can see this error message:
It seems, that your device does not support the memory status feature.
Memory status will be disabled
To solve this problem we have to set some values on obextool.cfg:
sudo gedit /etc/obextool.cfg
set ObexConfig(config,memstatus) 0
set ObexConfig(config,filemove) 0
Another error message that we can see is:
FIle ‘/FileName/’ could not be uploaded to ‘E:/Path’!
Please check your file permissions.
To solve it:
sudo gedit /etc/obextool.cfg
set ObexConfig(config,dir_slash) 1
Good Job! Now your Mobile Phone works well in Ubuntu Gutsy with ObexTool.
If we want add it as Desktop Entry:
sudo gedit /usr/share/applications/obextool.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/usr/bin/obextool –obexcmd “obexftp -t /dev/ttyACM0 -u 1″
Icon=/usr/share/icons/gnome/scalable/devices/phone.svg
Terminal=false
Name=Obextool
GenericName=
Comment=Browser your Mobile Phone
Categories=Application;Utility;
So, you can find it in your Gnome Panel over: “Applications” -> “Accessories” -> Obextool
‹¹‹è¯•环境åQšWin2K Pro日文版,SUN J2SDK 1.5.0-beta2
¾l过‹¹‹è¯•åQŒå‘现Shift_JISå’ŒMS932¾~–ç 的全角æ‡L‹¹ªçº¿åQ?#8220;ï½?#8221;åQ‰çš„¾~–ç 都是 0x8160åQ?6˜q›åˆ¶åQŒä¸¤ä¸ªå—节,高ä½åœ¨å‰åQ‰ã€‚通过sun.io.ByteToCharMS932转æ¢åŽå¾—到Unicodeå—符'\uFF5E'åQŒè€Œé€šè¿‡sun.io.ByteToCharSJIS转æ¢åŽåˆ™å¾—到Unicodeå—符'\u301C'ã€?/p>
å之åQŒUnicodeå—符'\uFF5E'通过sun.io.CharToByteMS932转æ¢åŽä¼šå¾—到MS932¾~–ç 的本地嗽W?x8160åQ?6˜q›åˆ¶åQŒä¸¤ä¸ªå—节,高ä½åœ¨å‰åQ‰ï¼Œè€ŒUnicodeå—符'\u301C'通过 sun.io.CharToByteSJIS转æ¢åŽä¹Ÿä¼šå¾—到Shift_JIS¾~–ç 的本地嗽W?x8160åQ?6˜q›åˆ¶åQŒä¸¤ä¸ªå—节,高ä½åœ¨å‰åQ‰ï¼Œä¸¤è€…的转梾l“果相åŒã€?/p>
¾l“论åQšåœ¨WinNT/2K/XP上,MS932å’ŒShift_JIS˜q™ä¸¤¿U本地嗽W¦é›†å®Œå…¨ç›¸åŒåQŒåªæ˜¯åˆ†åˆ«é‡‡ç”¨JDKçš„sun.io.ByteToCharMS932å’Œsun.io.ByteToCharSJIS对个别特ŒDŠçš„æœ¬åœ°å—符˜q›è¡Œè½¬æ¢åŽæ‰€å¾—到çš?Unicodeå—符òq¶ä¸ä¸€æ —÷€‚实际上åQŒMS932ž®±æ˜¯WinNT/2K/XP上的Shift_JISåQŒåªæ˜¯ä¸Žæ ‡å‡†ç‰ˆçš„Shift_JISå—符集相比,MS932收录了更多的å—符åQŒæ¯”如NECå’ŒIBM对Shift_JIS的扩展(如日文ä¸çš?#8220;㊤㊥㊦㊧㊨①..â‘?..”½{‰ç‰åQ‰ï¼›ç„¶è€Œï¼ŒJDKä¸çš„ ByteToCharSJISåŠCharToByteSJISå´ä‹Éç”¨äº†æ ‡å‡†çš„Shift_JISå—符集,所以部分扩展嗽W¦åœ¨ä»Žbyteè½¬æ¢æˆchar或是从charè½¬æ¢æˆbyte时会出现ä¹Þq åQŒè¿™çš„确是JDK让ähéžå¸¸˜qähƒ‘的一处ã€?br />
å‚考资æ–?åQˆæ—¥æ–‡ï¼‰åQšhttp://www.asahi-net.or.jp/~ez3k-msym/charsets/jis2ucs.htm