The Following User Says Thank You to DavyP For This Useful Post: | ||
|
2012-02-14
, 23:30
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#222
|
The Following User Says Thank You to DavyP For This Useful Post: | ||
|
2012-02-14
, 23:36
|
Posts: 203 |
Thanked: 538 times |
Joined on Oct 2009
@ Colombia
|
#223
|
Nokia-N900:/home/user# dpkg --install cvm_mr2.b168\+svn20547-20120214_armel.deb
Selecting previously deselected package cvm.
(Reading database ... 46881 files and directories currently installed.)
Unpacking cvm (from cvm_mr2.b168+svn20547-20120214_armel.deb) ...
dpkg: error processing cvm_mr2.b168+svn20547-20120214_armel.deb (--install):
trying to overwrite `/usr/share/applications/hildon/opera.desktop', which is also in package opera-mobile
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
cvm_mr2.b168+svn20547-20120214_armel.deb
Nokia-N900:/home/user# dpkg --install cvm_mr2.b168\+svn20547-20120214_armel.deb
(Reading database ... 46792 files and directories currently installed.)
Unpacking cvm (from cvm_mr2.b168+svn20547-20120214_armel.deb) ...
Setting up cvm (mr2.b168+svn20547-20120214) ...
Nokia-N900:/home/user#
The Following User Says Thank You to munozferna For This Useful Post: | ||
|
2012-02-14
, 23:39
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#224
|
The Following User Says Thank You to DavyP For This Useful Post: | ||
|
2012-02-14
, 23:55
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#225
|
I'm removing opera (native) to test it. and will update soon.
And the Opera launcher works, but I get an error ' Cannot finish installation because of insufficient storage space'.
Microemu-demo works though. where is it trying to install opera mini?
The Following User Says Thank You to DavyP For This Useful Post: | ||
|
2012-02-14
, 23:58
|
Posts: 203 |
Thanked: 538 times |
Joined on Oct 2009
@ Colombia
|
#226
|
See if you can do the following as root:
chmod a+rwx /opt/phoneme/midp/midp_linux_fb_gcc/appdb
and if that changes the problem. The reason why microemu does not have this issue, is because it does not write to this appdb folder.
If I can then figure out how this folder can maintain its write permissions while creating the deb archive, then we are good to go.
Davy
|
2012-02-15
, 00:08
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#227
|
The Following 4 Users Say Thank You to DavyP For This Useful Post: | ||
|
2012-02-15
, 11:17
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#228
|
#!/bin/sh run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Welcome to Excalibur Script!" sleep 2 JAR=$1 if [ ! -f "${JAR}" ]; then run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"JAR file does not exist!" && sleep 3 echo "Usage: excalibur JAR file"; exit 1 fi JAD="${JAR%.*}.jad" if [ -f "${JAD}" ]; then echo -n "${JAD} already exists, overwrite the file? (Y/N) " read midlet answer=$(echo "$midlet" | tr '[:upper:]' '[:lower:]') if [ "$answer" != "y" ] && [ "$answer" != "Y" ]; then echo "Not overwriting ${JAD} file!" else rm -f "${JAD}" fi fi if [ ! -f "${JAD}" ]; then unzip -aa -j -p ${JAR} "META-INF/MANIFEST.MF" | sed -e '/^[ \t]*$/d' > "${JAD}" echo "MIDlet-Jar-URL: ${JAR}" >> "${JAD}" echo "MIDlet-Info-URL: http://" >> "${JAD}" FILESIZE=$(stat "${JAR}") echo "MIDlet-Jar-Size: ${FILESIZE}" >> "${JAD}" echo "${JAD} file created!" # find png file MIDLET_ICON=`grep "MIDlet-Icon: " $JAD | sed "s/\MIDlet-Icon://g" | sed 's/\///g' | sed 's/^[ \t]*//'` # use the correct name of the icon file MIDLET_NAME=`grep "MIDlet-Name: " $JAD | sed /MIDlet-Name:/s/// | sed 's/^[a \t]*//' | sed 's/ .*//'` # extract the icon UNZIP_ICON=`unzip "$JAR" "$MIDLET_ICON" -d /usr/share/icons/hicolor/scalable/hildon/` # rename the icon using the midlet name RENAME_ICON=`mv "/usr/share/icons/hicolor/scalable/hildon/$MIDLET_ICON" "/usr/share/icons/hicolor/scalable/hildon/$MIDLET_NAME.png"` fi SH="${JAR%.*}.sh" if [ -f "${SH}" ]; then echo -n "${SH} Already exists, overwrite the file? (Y/N) " read midlet answer=$(echo "$midlet" | tr '[:upper:]' '[:lower:]') if [ "$answer" != "y" ] && [ "$answer" != "Y" ]; then echo "Not overwriting ${SH} file!" else rm -f "${SH}" fi fi if [ ! -f "${SH}" ]; then MAINCLASS=`cat $JAD | grep 'MIDlet-1:' | cut -d ',' -f 3` READLINKJAR=`readlink -f $JAR` echo '#!/bin/sh' > $SH echo '' >> $SH echo '/opt/phoneme/bin/cvm -Xmx12m -Dmicroedition.profiles=MIDP-2.1 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/opt/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.CdcMIDletSuiteLoader sun.misc.MIDPLauncher -suitepath' $READLINKJAR '-jadpath' $JAD -1 $MAINCLASS >> $SH chmod a+x $SH echo "${SH} file created!" READLINK=`readlink -f $SH` MIDLET_NAME=`grep "MIDlet-Name: " $JAD | sed /MIDlet-Name:/s/// | sed 's/^[a \t]*//' | sed 's/ .*//'` MIDLET_VERSION=`grep "MIDlet-Version: " $JAD | sed /MIDlet-Version:/s///` echo -e "[Desktop Entry] Encoding=UTF-8 Version=$MIDLET_VERSION Type=Application Name=$MIDLET_NAME Exec=.$READLINK Comment=`readlink -f $JAD` Comment=`readlink -f $JAR` X-Osso-Type=application/x-executable Terminal=true Icon=$MIDLET_NAME" | sudo tee /usr/share/applications/hildon/"$MIDLET_NAME".desktop sleep 6 echo "$MIDLET_NAME added as a desktop shortcut" sleep 4 fi echo "Does the midlet work fine? Run it and and come back here to say (Y/N)" read test ICONS_PATH=/usr/share/icons/hicolor/scalable/hildon/ DESKTOP_PATH=/usr/share/applications/hildon answer0=$(echo "$test" | tr '[:upper:]' '[:lower:]') if [ "$answer0" != "n" ] && [ "$answer0" != "N" ]; then run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Thanks for using Excalibur Script!" && sleep 3 exit 1; else echo "Write the Midlet Name here: " read input_name DESKTOP_FILE=`grep "$input_name" $DESKTOP_PATH/* | sed -e 's/[^:]*$//g' | sed -e 's/[:^]//g'` SH_FILE=`cat $DESKTOP_FILE | grep "Exec=." | sed /Exec=./s///` JAR_FILE=`cat $DESKTOP_FILE | grep ".jar" | sed /Comment=/s///` JAD_FILE=`cat $DESKTOP_FILE | grep ".jad" | sed /Comment=/s///` ICON_FILE=`cat $DESKTOP_FILE | grep "MIDlet-Name: " | sed /MIDlet-Name:/s/// | sed 's/^[ \t]*//' | sed 's/ //g'` echo "Do you want to remove $input_name? (Y/N)" read answer if [ "$answer" != "y" ] && [ "$answer" != "Y" ]; then echo "$input_name not removed!"; else echo "Removing all $input_name files . ." echo "Remoing $SH_FILE . ." sudo rm -rf $SH_FILE echo "Removed!" echo "Removing $JAR_FILE . ." sudo rm -rf $JAR_FILE echo "Removed!" echo "Removing $JAD_FILE . ." sudo rm -rf $JAD_FILE echo "Removed!" echo "Removing $ICON_FILE . ." sudo rm -rf $ICONS_PATH$ICON_FILE* echo "Removed!" echo "Removing $DESKTOP_FILE . ." sudo rm -rf $DESKTOP_FILE echo "Removed!" echo "All files Removed! Midlet is removed!" run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Thanks for using Excalibur Script!" && sleep 3 fi fi fi exec /usr/bin/gtk-update-icon-cache
#!/bin/sh -e
#!/bin/sh -e [ -d "$1" ] && touch "$1"
|
2012-02-15
, 22:24
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#229
|
The Following User Says Thank You to DavyP For This Useful Post: | ||
|
2012-02-15
, 22:41
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#230
|
Hi Cristian,
Thanks for all these script updates. At the moment I cannot test
this on the emulator due to incompatibilities with a real device.
There is one thing I wanted to point out: you do not need to
generate the jad file if it does not exist. In such a case, you create
the sh file without the '-jadpath midlet.jad' parameters.
Also, you could argue if you create a desktop file, you can directly
put the startup command in the desktop file rather than in a
separate script.
Then there are a few minor other issues I have come across with
certain midlets (like wrong line endings and dangling spaces).
I will see how I can fix these issues and embed the script in my
next build. My plan was actually to build something directly within
the phoneME application in native Qt4 code in a similar way like
I did for my Android build, but for the time being I think you script
will do.
Cheers,
Davy
The Following User Says Thank You to santiago For This Useful Post: | ||
can show us both, we can have a look at how they and hopefully tell
you what is wrong.
Davy