I recently bought a Samsung Gear S3 which uses Tizen as its operating system.
As I have been trying to improve my development skills, I would also like to develop some app for the watch ( my first thought was something related to Telegram ).
Let’s start with installing the SDK!
Get the SDK from here. Samsung doesn’t officially support anything other than Windows, Mac OS X or Ubuntu but I thought I could give a try to installing it on my Fedora Workstation.
Once I downloaded the installer and tried to run it:
chmod +x web-ide_Tizen_Studio_1.2_usa_ubuntu-64.bin
./web-ide_Tizen_Studio_1.2_usa_ubuntu-64.bin
There is apparently something not right:
![run installer](/wp-content/uploads/2018/02/tizen_dependencies.png)
So some dependencies are missing? let’s install them:
dnf install libgnome qemu-user expect
![install dependencies](/wp-content/uploads/2018/02/tizen_dependencies_installed-1024x726.png)
Triggering again the installer brought me to this:
![OpenJDK not supported](/wp-content/uploads/2018/02/tizen_openjdk_installed-1024x714.png)
If you follow the link suggested:
.
Trying to download the JDK will lead you to:
![sdk rpm download](/wp-content/uploads/2018/02/oracle_sdk_rpm_download.png)
Download the 64 bits RPM (after agreeing to the license, of course…)
Now it’s time to install it:
dnf install jdk-8u144-linux-x64.rpm
![oracle jdk installation](/wp-content/uploads/2018/02/oracle_jdk_installation-1024x726.png)
Now, to make the Oracle one the prefered JVM:
alternatives --config java
alternatives --config javac
alternatives --config javaws
![java alternatives](/wp-content/uploads/2018/02/oracle_jdk_config-1024x378.png)
Now time to check everything is as we want:
java -version
javac -version
![java version](/wp-content/uploads/2018/02/oracle_java_verify-1024x189.png)
Now, running the installer again:
./web-ide_Tizen_Studio_1.2_usa_ubuntu-64.bin
First thing it will ask you is to accept the Software License Agreement:
![tizen license](/wp-content/uploads/2018/02/tizen_license_agreement.png)
Choose where to install the SDK:
![tizen sdk location](/wp-content/uploads/2018/02/tizen_sdk_location.png)
And… et voilĂ :
![tizen finish installation](/wp-content/uploads/2018/02/tizen_finish_installation.png)
Once the installation has finished, it will by default launch the package manager:
![tizen package installation](/wp-content/uploads/2018/02/tizen_sdk_installing_packages.png)
Some of the packages, like the emulator, will need extra permissions:
![tizen package sudo](/wp-content/uploads/2018/02/tizen_installation_emulation_needs_privileges-1.png)
Here is the list of the packages I installed:
![tizen packages installed](/wp-content/uploads/2018/02/tizen_installation_packages.png)
Everything is ready…:
![tizen first launch](/wp-content/uploads/2018/02/tizen_studio_start_failed_sdb-1024x789.png)
Oh oh… seems that we need to fix something manually…
Quick investigation lead me to finding out there is a tool named sdb and apparently is missing a library: libcrypto.so.1.0.0:
![sdb missing library](/wp-content/uploads/2018/02/tizen_sdk_sdb_ldd-1024x531.png)
A quick research on-line lead me here. I don’t really like the solution of installing the Ubuntu library system wide, so I decided to do a small workaround:
mkdir -p /home/marc/Code/SDKs/tizen/ubuntu_libraries
And I copied from this package the files libcrypto.so.1.0.0
and libssl.so.1.0.0
into that folder.
Turn to create a file in /home/marc/.local/.bin/tizen
with this content:
#!/usr/bin/env bash
export LD_LIBRARY_PATH=/home/marc/Code/SDKs/tizen/ubuntu_libraries
/home/marc/Code/SDKs/tizen/tizen-studio/ide/TizenStudio.sh
and
chmod +x /home/marc/.local/.bin/tizen
Now I simply need to type tizen
and my Tizen Studio will launch:
![tizen studio running](/wp-content/uploads/2018/02/tizen_studio_running-1024x759.png)
WARNING: if you launch the SDK from the menus this will not work. The menu entry will still launch /home/marc/Code/SDKs/tizen/tizen-studio/ide/TizenStudio.sh
. You can either modify the menu entry or start the IDE via my launcher
Happy hacking!!!