We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Install app from source code! [answered]

asked 2017-04-02 13:07:31 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-04-02 13:34:52 +0300

Rikujolla gravatar image

How can i install an app from github, from a source code, i hv googled enough!! Nothing works fa me, as sfos has it's own commands here n there for shell!!, plz help me... how can i install it??

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Karthikeyan.S
close date 2017-04-03 01:56:18.521838

Comments

2

I found this quite helpful, https://www.youtube.com/watch?v=njqib0fzE9c

Spam Hunter ( 2017-04-02 13:33:30 +0300 )edit

Bt it is not working on sfos!!

Karthikeyan.S ( 2017-04-02 13:38:08 +0300 )edit

It does work, I have installed a few apps using the method in the video, I wouldn't have posted it for you if it were not of any use. Is there no RPM available (installable package) of the app you are trying to install?, or are you simply wanting to learn how to install via terminal/github?

Spam Hunter ( 2017-04-02 13:40:51 +0300 )edit

Simply want to learn abt it, n also i hv to install lipstick recorder app bro!!

Karthikeyan.S ( 2017-04-02 13:49:41 +0300 )edit

There is no GUI with lipstick recorder, it's used via terminal to make it run and it doesn't run very well, on top of that, you also need to create an executable .sh script to allow lipstick recorder to run. The end results are not brilliant by any means. See the discussion here on Talk.Maemo.Org about lipstick-recorder; http://talk.maemo.org/showthread.php?t=97746&highlight=lipstick+recorder

Spam Hunter ( 2017-04-02 14:28:01 +0300 )edit

2 Answers

Sort by » oldest newest most voted
9

answered 2017-04-03 00:51:51 +0300

velox gravatar image

updated 2017-04-03 11:01:22 +0300

You've indicated the app you're trying to build is lipstick recorder(This would be a good piece of information for the question itself, along with some things you've tried). Apart from it being not very useable, it's a bit of a special case, as it's not built through the GUI of the SailfishOS SDK like most apps. Since I've already done it for the http://talk.maemo.org/showthread.php?t=97746&highlight=lipstick+recorder thread @fmotl mentioned where I've fiddled an evening with it (resulting in the shell script), I kind of remember what I've done.

I'm assuming:

  • You have the SailfishOS SDK installed
  • You are able to use SSH from your machine (the command below is for linux)

Steps:

  1. Start your mer VM out of the SDK. That's the thing that isn't the emulator and is used to build packages.
  2. SSH into your machine. If you're on linux and have installed the SDK in the default location, the command should be like this: ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
  3. You can access files from your home directory, those are made available in ~/share
  4. Go to the place where you've saved lipstick-recorder with the command cd share/[folder where you saved the source]/lipstick-recorder (change the path, obviously)
    • If you want to build for i486 (jolla tablet) build it with mb2 -t SailfishOS-i486 -s rpm/lipstick-recorder.spec build
    • If you want to build for ARM (most phones), use mb2 -t SailfishOS-armv7hl -s rpm/lipstick-recorder.spec build
  5. Profit.

There's a tutorial on https://sailfishos.org/develop/tutorials/building-sailfish-os-packages-manually/ which is much better than my steps, please use it to learn :) They start the mer VM differently, but it should be pretty much the same. Cheers!

edit: I messed up descriptions for the builds last night. SailfishOS-armv7hl is obviously ARM and SailfishOS-i486 is not. Sorry.

edit flag offensive delete publish link more

Comments

Very very kind of u bro!! This is what i wanted!!! Thx!

Karthikeyan.S ( 2017-04-03 01:55:14 +0300 )edit

I am closing the question !!!!

Karthikeyan.S ( 2017-04-03 01:56:40 +0300 )edit
5

answered 2017-04-02 13:34:20 +0300

Rikujolla gravatar image

The most reliable is to install SailfishOS SDK to your computer. Then clone the repository and hope the app developer has made the repository well enough to work with SDK with default settings. Another choice is to use tIDE app. From my experience you can run almost all apps with that. Installing with that may not succeed.

edit flag offensive delete publish link more

Comments

Im asking how to clone it, step by step

Karthikeyan.S ( 2017-04-02 13:37:03 +0300 )edit
1

E.g to clone my repository git clone https://github.com/Rikujolla/shakkikello If you can compile that code in your phone you know much more than me!

Rikujolla ( 2017-04-02 18:36:19 +0300 )edit

Question tools

Follow
2 followers

Stats

Asked: 2017-04-02 13:07:31 +0300

Seen: 1,065 times

Last updated: Apr 03 '17