<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Enodev.fr / Christophe's log (Posts about Tizen)</title><link>https://www.enodev.fr/</link><description></description><atom:link href="https://www.enodev.fr/categories/tizen.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Tue, 16 Jan 2024 22:07:06 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Install the Tizen SDK on Debian</title><link>https://www.enodev.fr/posts/install-the-tizen-sdk-on-debian.html</link><dc:creator>Christophe Vu-Brugier</dc:creator><description>&lt;p&gt;&lt;strong&gt;Updated July 2013&lt;/strong&gt;: the Tizen project has released the Tizen SDK
2.2. When installing the SDK on a distribution other than Ubuntu, the
installer does not complain that the distribution is unsupported. As a
consequence, the changes described here are no longer necessary.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Updated May 2013&lt;/strong&gt;: the Tizen project has released the Tizen SDK 2.1.
Linux support is still limited to Ubuntu but I have updated the
&lt;a href="https://www.enodev.fr/dl/tizen-sdk-v2.1.4-debian-7.0-amd64.patch"&gt;patch for Debian&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The Tizen project has released version 2.0 of its software development
kit in mid february. The Tizen SDK is available for Mac OS X, Windows
and Linux. Unfortunately, Linux support is limited to Ubuntu.&lt;/p&gt;
&lt;p&gt;Maintaining software and ensuring that it works on several Linux
distributions has a cost. However, I think it is a bit contradictory
for Tizen to aspire to compete with three mobile OSes (iOS, Androïd,
and Windows Phone) while supporting no more than three platforms for
its SDK.&lt;/p&gt;
&lt;p&gt;Fortunately, it is quite easy to install the Tizen SDK on Debian 7.0
"Wheezy". Here is how.&lt;/p&gt;
&lt;p&gt;The SDK, which can be downloaded
&lt;a href="https://developer.tizen.org/downloads/tizen-sdk"&gt;there&lt;/a&gt;, is a
self-extracting archive: a tarball is appended to a shell script:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="gp"&gt;$ &lt;/span&gt;head&lt;span class="w"&gt; &lt;/span&gt;-n&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;tizen-sdk-ubuntu64-v2.1.4.bin
&lt;span class="gp"&gt;#&lt;/span&gt;!/bin/bash
&lt;span class="gp"&gt;$ &lt;/span&gt;tail&lt;span class="w"&gt; &lt;/span&gt;-n&lt;span class="w"&gt; &lt;/span&gt;+130&lt;span class="w"&gt; &lt;/span&gt;tizen-sdk-ubuntu64-v2.1.4.bin&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;tar&lt;span class="w"&gt; &lt;/span&gt;zt
&lt;span class="go"&gt;InstallManager&lt;/span&gt;
&lt;span class="go"&gt;InstallManagerP&lt;/span&gt;
&lt;span class="go"&gt;InstallManager.jar&lt;/span&gt;
&lt;span class="go"&gt;installmanager.conf&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;In order to add support for Debian or your favorite Linux
distribution, the install script has to be modified. The script reads
the content of &lt;code&gt;/etc/lsb-release&lt;/code&gt;, but this file is missing from
Debian. Instead, the
&lt;a href="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/lsbrelease.html"&gt;&lt;code&gt;lsb_release&lt;/code&gt;&lt;/a&gt;
should be invoked.&lt;/p&gt;
&lt;p&gt;Here is a &lt;a href="https://www.enodev.fr/dl/tizen-sdk-v2.1.4-debian-7.0-amd64.patch"&gt;patch&lt;/a&gt; for the Tizen
SDK installer that adds support for Debian Wheezy:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="gd"&gt;--- tizen-sdk-ubuntu64-v2.1.4.bin   2013-05-28 23:04:57.073651552 +0200&lt;/span&gt;
&lt;span class="gi"&gt;+++ tizen-sdk-ubuntu64-v2.1.4.bin   2013-05-28 23:12:55.405631436 +0200&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1,7 +1,7 @@&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;#!/bin/bash

&lt;span class="w"&gt; &lt;/span&gt;ORI_FILE_md5sum="80064b2d0c0e3e5a921471e5c500d981"
&lt;span class="gd"&gt;-ORI_FILE_LEN="130"&lt;/span&gt;
&lt;span class="gi"&gt;+ORI_FILE_LEN="141"&lt;/span&gt;

&lt;span class="w"&gt; &lt;/span&gt;TPUT="`which tput`"
&lt;span class="w"&gt; &lt;/span&gt;if test -t 0 -a -t 1 -a -n "$TPUT"; then
&lt;span class="gu"&gt;@@ -16,7 +16,8 @@&lt;/span&gt;

&lt;span class="w"&gt; &lt;/span&gt;OS_BLOCKSIZE=`df -k . |head -n 1 | awk '{if ( $4 ~ /%/) { print $1 } else { print $2 } }'`
&lt;span class="w"&gt; &lt;/span&gt;OS_BIT=`getconf LONG_BIT`
&lt;span class="gd"&gt;-OS_VERSION=`cat /etc/lsb-release | grep DISTRIB_RELEASE | awk -F= '{print $2}'`&lt;/span&gt;
&lt;span class="gi"&gt;+DISTRIB_ID=`lsb_release --short --id`&lt;/span&gt;
&lt;span class="gi"&gt;+DISTRIB_RELEASE=`lsb_release --short --release`&lt;/span&gt;

&lt;span class="w"&gt; &lt;/span&gt;JAVA_VERSION=`java -version 2&amp;gt;&amp;amp;1 | sed -n "/^java version/p"`
&lt;span class="w"&gt; &lt;/span&gt;JAVA_BIT_FLAG=`java -version 2&amp;gt;&amp;amp;1 | egrep -e 64-Bit`
&lt;span class="gu"&gt;@@ -36,14 +37,25 @@&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;INSTALLATION_CHECK="procps gettext libdbus-1-3 libcurl3 expect gtk2-engines-pixbuf grep zip make libgnome2-0"
&lt;span class="w"&gt; &lt;/span&gt;pkg_list=""

&lt;span class="gd"&gt;-# ubuntu version 10.x and 11.x and 12.x and 32bit&lt;/span&gt;
&lt;span class="gd"&gt;-if [ "10.04" = ${OS_VERSION} ] || [ "10.10" = ${OS_VERSION} ]; then&lt;/span&gt;
&lt;span class="gd"&gt;-   INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-arm-static"&lt;/span&gt;
&lt;span class="gd"&gt;-elif [ "11.04" = ${OS_VERSION} ] || [ "11.10" = ${OS_VERSION} ]; then&lt;/span&gt;
&lt;span class="gd"&gt;-   INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-user-static"&lt;/span&gt;
&lt;span class="gd"&gt;-elif [ "12.04" = ${OS_VERSION} ] || [ "12.10" = ${OS_VERSION} ]; then&lt;/span&gt;
&lt;span class="gd"&gt;-   INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-user-static libwebkitgtk-1.0-0"&lt;/span&gt;
&lt;span class="gd"&gt;-fi&lt;/span&gt;
&lt;span class="gi"&gt;+case "${DISTRIB_ID}" in&lt;/span&gt;
&lt;span class="gi"&gt;+   Debian)&lt;/span&gt;
&lt;span class="gi"&gt;+       if [ "${DISTRIB_RELEASE}" = '7.0' ]; then&lt;/span&gt;
&lt;span class="gi"&gt;+           INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-user-static libwebkitgtk-1.0-0"&lt;/span&gt;
&lt;span class="gi"&gt;+       fi&lt;/span&gt;
&lt;span class="gi"&gt;+       ;;&lt;/span&gt;
&lt;span class="gi"&gt;+   Ubuntu)&lt;/span&gt;
&lt;span class="gi"&gt;+       if [ "${DISTRIB_RELEASE}" = '10.04' ] || [ "${DISTRIB_RELEASE}" = '10.10' ]; then&lt;/span&gt;
&lt;span class="gi"&gt;+           INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-arm-static"&lt;/span&gt;
&lt;span class="gi"&gt;+       elif [ "${DISTRIB_RELEASE}" = '11.04' ] || [ "${DISTRIB_RELEASE}" = '11.10' ]; then&lt;/span&gt;
&lt;span class="gi"&gt;+           INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-user-static"&lt;/span&gt;
&lt;span class="gi"&gt;+       elif [ "${DISTRIB_RELEASE}" = '12.04' ] || [ "${DISTRIB_RELEASE}" = '12.10' ]; then&lt;/span&gt;
&lt;span class="gi"&gt;+           INSTALLATION_CHECK="$INSTALLATION_CHECK qemu-user-static libwebkitgtk-1.0-0"&lt;/span&gt;
&lt;span class="gi"&gt;+       fi&lt;/span&gt;
&lt;span class="gi"&gt;+       ;;&lt;/span&gt;
&lt;span class="gi"&gt;+   *)&lt;/span&gt;
&lt;span class="gi"&gt;+       echo "${CE} Unsupported distribution: ${DISTRIB_ID} ${CN}"&lt;/span&gt;
&lt;span class="gi"&gt;+   ;;&lt;/span&gt;
&lt;span class="gi"&gt;+esac&lt;/span&gt;

&lt;span class="w"&gt; &lt;/span&gt;NVIDIA_CHECK=`lspci | grep nVidia`
&lt;span class="w"&gt; &lt;/span&gt;MESA_CHECK=`dpkg -l | egrep -e libgl1-mesa-glx' '`
&lt;span class="gu"&gt;@@ -65,8 +77,7 @@&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;## check the default java as OpenJDK ##
&lt;span class="w"&gt; &lt;/span&gt;CHECK_OPENJDK=`java -version 2&amp;gt;&amp;amp;1 | egrep -e OpenJDK`
&lt;span class="w"&gt; &lt;/span&gt;if [ -n "${CHECK_OPENJDK}" ] ; then
&lt;span class="gd"&gt;-   echo "${CE} OpenJDK is not supported. Try again with Oracle JDK. ${CN}"&lt;/span&gt;
&lt;span class="gd"&gt;-   exit 1&lt;/span&gt;
&lt;span class="gi"&gt;+   echo "${CE} Warning: Oracle JDK is preferred over OpenJDK. ${CN}"&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;fi

&lt;span class="w"&gt; &lt;/span&gt;## check the java installation ##
&lt;span class="gu"&gt;@@ -95,7 +106,7 @@&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;fi

&lt;span class="w"&gt; &lt;/span&gt;## check the mesa driver for emulator ##
&lt;span class="gd"&gt;-if [ "10.10" = ${OS_VERSION} ] &amp;amp;&amp;amp; [ -n "${NVIDIA_CHECK}" ] &amp;amp;&amp;amp; [ -z "${MESA_CHECK}" ] ; then&lt;/span&gt;
&lt;span class="gi"&gt;+if [ ${DISTRIB_RELEASE} = '10.10' ] &amp;amp;&amp;amp; [ -n "${NVIDIA_CHECK}" ] &amp;amp;&amp;amp; [ -z "${MESA_CHECK}" ] ; then&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;   echo "We recommend that you use the Mesa OpenGL implementation in Ubuntu 10.10 and nVidia enviroment."
&lt;span class="w"&gt; &lt;/span&gt;   echo "Please install${CE} libgl1-mesa-glx ${CN}package."
&lt;span class="w"&gt; &lt;/span&gt;   exit 1
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The original installer verifies that the Java virtual machine from
Oracle is present. However, the SDK seems to work pretty well with
OpenJDK. So I decided to disable the check for Oracle's JVM.&lt;/p&gt;</description><category>Debian</category><category>Tizen</category><guid>https://www.enodev.fr/posts/install-the-tizen-sdk-on-debian.html</guid><pubDate>Mon, 04 Mar 2013 18:00:00 GMT</pubDate></item></channel></rss>