fuchsmich / zutun.txt

Taskmanager - Sailfish OS GUI for todo.txt file
4 stars 4 forks source link

how to compile and run the app from source ? #19

Closed berndhahnebach closed 4 years ago

berndhahnebach commented 5 years ago

No really an issue. It is years ago I did do some development for mobile hardware (was on the best phone ever in history, on a Nokia N9).

I may would like to give it a try on Sailfish. Actually I would like to start with one of your apps. On a Linux desktop I regullarly do software development for https://github.com/FreeCAD/FreeCAD But actually I have no idea how to start on a mobile plattform like sailfish. Do you have any informations how to get started to compile and run your apps from source ?

fuchsmich commented 5 years ago

1) The SDK is very easy to use on Linux and Windows https://sailfishos.org/wiki/Application_Development Just download and install it. Make sure VirtualBox is working on your dev-machine before.

2) Most of my apps don't need to be compiled. The code is qml and some python code. But anyways it's most convenient to install the SDK and use it for deployment (copy the files to phone or emulator).

3) Then you maybe should start to learn about qml and if you want to use c++ about the data exchange between c++/qml.

sphenotux commented 5 years ago

Interested as well. Got VirtualBox and SDK Sailfish.IDE running. Pulled source code of ZuTun.txt via git. (Got some error messages when pressing play in SDK; my prob)

Should the emulator of 3.1.0.11 or 3.1.0.12 display a button for ZuTun.txt in VirtualBox? (I dare not send a pull request without having run the app at least once in my try-and-error setup ;-).)

EDIT I would very much appreciate some help. Maybe this is a Newbie question... The last set of lines of the error messages I get when running ...3.0.12 Release Deploy RPM. Partly in German:

...

  • install -d /home/deploy/installroot/usr/share/lipstick/quickactions
  • install /home/mersdk/share/Dokumente/build-harbour-zutun-SailfishOS_3_1_0_12_i486_in_Sailfish_OS_Build_Engine-Release/../zutun.txt/quickaction.conf /home/deploy/installroot/usr/share/lipstick/quickactions/info.fuxl.zutuntxt.conf install: cannot stat `/home/mersdk/share/Dokumente/build-harbour-zutun-SailfishOS_3_1_0_12_i486_in_Sailfish_OS_Build_Engine-Release/../zutun.txt/quickaction.conf': No such file or directory

RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.4Ltj3l (%install) Bad exit status from /var/tmp/rpm-tmp.4Ltj3l (%install) 21:07:05: Der Prozess "/home/frederik/.config/SailfishOS-SDK/mer-sdk-tools/Sailfish OS Build Engine/SailfishOS-3.1.0.12-i486/deploy" wurde mit dem Rückgabewert 1 beendet. Fehler beim Erstellen/Deployment des Projekts harbour-zutun (Kit: SailfishOS-3.1.0.12-i486 (in Sailfish OS Build Engine)) Bei der Ausführung von Schritt "RPM" 21:07:05: Verstrichene Zeit: 00:19.

fuchsmich commented 5 years ago

Ah, yes. Back then I didn't know how to install files, which are not found automatically by the SDK.

Checkout the devel branch.

But wait with PRs till next version, because there are a lot of changes in the branch smoothlist, which hopefully work soon.

sphenotux commented 5 years ago

Great, looking forward to the next version ;-).

Anyhow, I would like to join/contribute. Again, Newbie question/screenshot. All I need is a little nudge (I hope). devel

berndhahnebach commented 5 years ago

, because there are a lot of changes in the branch smoothlist, which hopefully work soon.

wow cool and thanks for the links ...

fuchsmich commented 5 years ago

Anyhow, I would like to join/contribute. Again, Newbie question/screenshot. All I need is a little nudge (I hope).

Sure, you should. Select the deployment method "Deploy As RPM Package" for i486 and hit "Run" (= green triangle (arrow)).

Screenshot_20190919_183002

sphenotux commented 5 years ago

Sry 2 disturb again. Got setup exactly like in your screenshot above. Identical picture in the 3.1.0.12 emulator. No errors so far - but unfortunately no ZuTun.txt icon, either.

Do I have to copy some files manually?

fuchsmich commented 5 years ago

Hm, strange. What if you create a new Project. File -> New Project -> Application -> Sailfish OS... (QML only) and then confirm everything and deploy it the same way.

sphenotux commented 5 years ago

Took me some time to get back here... Finally arrived ;-).

SF OS Emulator starts in 3.1.0.12. Looks like my image above. Just Components and Settings. No surprise a blank project lacks of zutun.txt. But hey, what else can I do?

fuchsmich commented 5 years ago

Does this help?

https://sailfishos.org/wiki/Application_SDK_Your_First_App#Build_and_Deploy_the_App

sphenotux commented 5 years ago

Good news: Got zutun.txt running via Qt Creator by luck yesterday night.

Bad news: unable to reproduce now. Could you please check if project / VM image contains all required files? Thx.

sphenotux commented 5 years ago

Update: Different machine. SF OS IDE aka Qt Creator installed from scratch. virtualbox-qt added on my LinuxMint Desktop. Devel branch pulled from here. Opened as project in 3....12 as debug/rpm. Voilà: zutun.txt running.

Now looking forward to the update.

Will work on permanent zutun.txt.in VM next. Go, go, go :-)!

EDIT 2019-10-28 21:45: Started IDE again on my "older" machine. Got zutun.txt running there as well. /EDIT

sphenotux commented 5 years ago

... in addition: lines mentioned above commented out #. (SF OS native browser does not allow editing comments, so I post a new one.)