maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   anyone wanna try to get owncloud qt sync client going (https://talk.maemo.org/showthread.php?t=84055)

quipper8 2012-05-03 21:43

anyone wanna try to get owncloud qt sync client going
 
http://gitorious.org/owncloud/sync-qt

says it is already setup as a qtcreator project, maybe someone can make it work.

Don't necessarily want for owncloud, but generic webdav syncing

jflatt 2012-05-03 23:08

Re: anyone wanna try to get owncloud qt sync client going
 
I wouldn't mind getting it working, but I haven't even installed the server yet. Have you tried to compile this client? It looks like its QWidgets, but it's a start. I did notice the owncloud guys are doing a track at the Tizen conference.

quipper8 2012-05-04 01:28

Re: anyone wanna try to get owncloud qt sync client going
 
Quote:

Originally Posted by jflatt (Post 1201597)
I wouldn't mind getting it working, but I haven't even installed the server yet. Have you tried to compile this client? It looks like its QWidgets, but it's a start. I did notice the owncloud guys are doing a track at the Tizen conference.

no, i haven't. Honestly, i don't care about the gui so much but was examining the QWebDAV class for a bit today. Looks pretty good. If i get some time this summer, might try at something simple to sync a local directory with a webdav directory.

Tofe 2012-05-04 07:16

Re: anyone wanna try to get owncloud qt sync client going
 
I'm interested too. I'm quite new to Owncloud (I got my account yesterday), but I already have the whole buildchain Qt Creator -> N900 installed on my PC.
So I may be able to help -- if not to code, at least to test.

Tofe 2012-05-04 20:20

Re: anyone wanna try to get owncloud qt sync client going
 
Ok, well, it seems it would require a bit of a UI rework to make it fit a N900 screen resolution. Not unfeasible, though: it's a quite classic Qt application. The only point I don't really know is about the systray.

maakoi 2012-05-07 06:54

Re: anyone wanna try to get owncloud qt sync client going
 
I would pay for a sync-client. I wish I could do software...

Tofe 2012-05-08 18:02

Re: anyone wanna try to get owncloud qt sync client going
 
1 Attachment(s)
Ok, here are some news:
1. I got it to compile for the N900, and
2. I got it running on my N900
3. I modified the UI slightly, to make it fit the N900 screen. It is still a bit tiny, but it seems usable
4. It doesn't seem to synchronize the folders recursively. I don't know if it is a bug or a feature ?...

If you want to try, I have attached the .deb package made by QtCreator. I'll try to take some screenshots, too.
To start the program, launch it from terminal with this command:
/opt/owncloud_sync/bin/owncloud_sync_qt

But be aware that the program doesn't close by itself, as it thinks there is a systray. So you'll have to kill it by hand, using htop for example.

It is a very early package ! It doesn't do awful stuff, but it may crash.

imo 2012-05-08 18:11

Re: anyone wanna try to get owncloud qt sync client going
 
wow , great made . i just had a deep look at the '' your data your way '' . its great to have sucha thing on N900 . i hope some one cares to improve it with the time . i probably i am gonna wait till it hit the repos . thanks though .

Tofe 2012-05-08 18:24

Re: anyone wanna try to get owncloud qt sync client going
 
5 Attachment(s)
I'll have to push my modifications on a git repository, somewhere. Garage may be a good option.

Oh, and here are the complementary screenshots.

Tofe 2012-05-08 18:25

Re: anyone wanna try to get owncloud qt sync client going
 
4 Attachment(s)
The rest of the screenshots:

Tofe 2012-05-08 18:47

Re: anyone wanna try to get owncloud qt sync client going
 
Here is the source code now:
https://gitorious.org/~tofe/owncloud/tofe-sync-qt-n900

I've created it as a clone of the original qt sync client for owncloud, so that is may be simplier to do merges later on.

www.rzr.online.fr 2012-06-10 17:40

Re: anyone wanna try to get owncloud qt sync client going
 
what about harmattan port ?

Tofe 2012-06-11 12:15

Re: anyone wanna try to get owncloud qt sync client going
 
That may come someday ;)

www.rzr.online.fr 2012-06-13 17:02

Re: anyone wanna try to get owncloud qt sync client going
 
Hi
I did try to hack a "proof of concept" html5 client for end/owncloud backend for tizen platform , I'll have to test on other browsers ...
it's early stages and not fully usable but I can share the sources

Regards
--
http://rzr.online.fr/q/tizen

ALI-C 2012-09-06 21:46

Re: anyone wanna try to get owncloud qt sync client going
 
I would love to see this in extras.

With my N900 and the Owncloud NAS my dreams become reality.
2012 is a great Year.

edgar2 2012-09-18 07:46

Re: anyone wanna try to get owncloud qt sync client going
 
Tofe, think that day still may come, when there's a harmattan port? i'm also thinking that owncloud + jolla device may become a very nice combination at some point...

rambomedic 2013-02-09 23:31

Re: anyone wanna try to get owncloud qt sync client going
 
Any updates on this? is there something better? looking for an owncloud client for my n900 as I wish to sync my emulator saves

rambomedic 2013-04-23 23:56

Re: anyone wanna try to get owncloud qt sync client going
 
Let's get this on extras! C'mon, is it being maintained anymore?

enekux 2013-12-03 16:13

Re: anyone wanna try to get owncloud qt sync client going
 
Quote:

Originally Posted by Tofe (Post 1203659)
Ok, here are some news:
1. I got it to compile for the N900, and
2. I got it running on my N900
3. I modified the UI slightly, to make it fit the N900 screen. It is still a bit tiny, but it seems usable
4. It doesn't seem to synchronize the folders recursively. I don't know if it is a bug or a feature ?...

If you want to try, I have attached the .deb package made by QtCreator. I'll try to take some screenshots, too.
To start the program, launch it from terminal with this command:
/opt/owncloud_sync/bin/owncloud_sync_qt

But be aware that the program doesn't close by itself, as it thinks there is a systray. So you'll have to kill it by hand, using htop for example.

It is a very early package ! It doesn't do awful stuff, but it may crash.


Hi this package does not work for me... anyways do you have any news about this app?

Thank you

hypnotoad123 2014-01-18 13:07

Re: anyone wanna try to get owncloud qt sync client going
 
Here is a new try for a an owncloud client. It is based on the official owncloud implementation. The advantag is that you have to worry less about data corruption or incomplete syncs. I ported an owncloud command line client first. Later, this could be integrated into Tofe's GUI or the official gui could be adapted.

The client is command line only and comes without a packaging, so you need some command line skills. However, once it is set up it seems very stable and easy to use (owncloud icon which runs a sync, cronned execution would be very easy to do). I use it for a week with many files being removed and added and had no single problem so far.

Compiling the three source libraries was not easy. First, they depend on newer QT and cmake. Worse, it seems that maemo's gcc (or ld) produces buggy output files which corrupt the stack frame, if "-fstack-protector" is used. The result is that the programs crash _before_ the main method. Thus, I included diff files so you can compile yourself

Download the tgz here.

Source libraries are qtkeychain, mirall and ocsync.

Installing instructions:
1) unpack to
Code:

~user/src
2) install with
Code:

root
apt-get install libneon27
cd /usr/local/lib
ln -sf ~user/src/oc_maemo-0.9/*so* .
cd /usr/local/bin
ln -sf ~user/src/oc_maemo-0.9/owncloudcmd .
# the desktop symbol cannot be symlinked
cp ~user/src/oc_maemo-0.9/owncloud_sync_qt.desktop /usr/share/applications/hildon
cp ~user/src/oc_maemo-0.9/owncloud_sync_qt.png /usr/share/icons
exit

# sync_oc is called from the app icon. Edit and set passwords and the url
cp sync_oc ~
vi ~/sync_oc

Bugs
Files on FAT filesystems might get immediately synced back once (and
then distributed onto other clients) since the file access time is
only 2s precise. No data loss or corruption, but waste of data rate.

Crashes due to stack corruption (please report and send core file). No
data loss or corruption observed yet.

Crashes if parameters are in slightly wrong format!

Seems to crash if the loglevel is raised to 11 and files are uploaded.

BonoNL 2014-01-19 09:31

Re: anyone wanna try to get owncloud qt sync client going
 
I went googling about this and found this site:
http://www.ruinelli.ch/harmattan/syncevolution-gui

Maybe it will come in handy for you.

enekux 2014-01-19 20:12

Re: anyone wanna try to get owncloud qt sync client going
 
Hi,

thank you for the update hypnotoad123.

I am trying to compile the source libraries but I am not very skilled in it, so of course I have already got stacked...

I guess this is a very newbie issue... when trying to compile ocsync I get the next message:

"The C compiler identification is unknown" CMake Errir: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid path or name.

I guess cmake is not properly configured... could you please give me some hints?

Thank you,

eNeKuX

hypnotoad123 2014-01-20 07:52

Re: anyone wanna try to get owncloud qt sync client going
 
Quote:

Originally Posted by BonoNL (Post 1407447)
I went googling about this and found this site:
http://www.ruinelli.ch/harmattan/syncevolution-gui

Maybe it will come in handy for you.

Sorry this was not clear.
There are two different syncs possible with owncloud: Files and Calendar/Contacts.

This thread is on file syncing while syncevolution is on contact/calendar syncing.

hypnotoad123 2014-01-20 07:57

Re: anyone wanna try to get owncloud qt sync client going
 
Quote:

Originally Posted by enekux (Post 1407566)
Hi,

thank you for the update hypnotoad123.

I am trying to compile the source libraries but I am not very skilled in it, so of course I have already got stacked...

I guess this is a very newbie issue... when trying to compile ocsync I get the next message:

"The C compiler identification is unknown" CMake Errir: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid path or name.

I guess cmake is not properly configured... could you please give me some hints?

Thank you,

eNeKuX

Hi,

I guess you should try my compiled tgz first.

Regarding your problem: Is gcc installed? You also will need qt. Further, you need to apply my patches in the tgz.

I am sorry that I cannot provide deb files yet. Is there an example for how to package cmake sources?

Tofe 2014-01-20 08:32

Re: anyone wanna try to get owncloud qt sync client going
 
Hi all,

sorry for being absent so long! But I didn't have time to spend on that project, unfortunately.
However, the (little) work I've done is on gitorious, you are very welcome to continue it it if you like.

I now own a Jolla, and it would be nice of course to have a sync client for that phone, but honestly I think this qt sync client would need a very heavy UI rework to make it fit the Sailfish UI experience. I won't have time to do that either (I'm working on other projects, not related to n900/jolla for the moment), but if someone feels like doing it, that'd be great !

Cheers

enekux 2014-01-20 21:59

Re: anyone wanna try to get owncloud qt sync client going
 
Quote:

Originally Posted by hypnotoad123 (Post 1407617)
Hi,

I guess you should try my compiled tgz first.

Regarding your problem: Is gcc installed? You also will need qt. Further, you need to apply my patches in the tgz.

I am sorry that I cannot provide deb files yet. Is there an example for how to package cmake sources?

Hi,

you were right I did not have gcc installed properly. For the record, I managed to install it after adding next repositories:

deb http://repository.maemo.org/ fremantle/sdk free non-free
deb http://repository.maemo.org/ fremantle/tools free non-free

and then, installing build-essential package.


Now, I have succesfully compiled ocsync. But when I want to compile qtkeychain cmake 2.8 or higher is required...

where can I get this version from?

thanks

enekux 2014-01-25 22:19

Re: anyone wanna try to get owncloud qt sync client going
 
Hi again,

so after some interesting time I managed to install the required cmake version, then I also installed the libqt4-dev as required... but I still get some errors when compiling mirall... well but before that I also get an error compiling ocsync with your patch...

Scanning dependencies of target httpbf
[ 31%] Building C object src/httpbf/CMakeFiles/httpbf.dir/src/httpbf.c.o
/home/user/src/ocsync-0.91.4/src/httpbf/src/httpbf.c: In function ‘hbf_transfer’:
/home/user/src/ocsync-0.91.4/src/httpbf/src/httpbf.c:498: error: expected expression before ‘<<’ token
/home/user/src/ocsync-0.91.4/src/httpbf/src/httpbf.c:500: error: expected expression before ‘==’ token
/home/user/src/ocsync-0.91.4/src/httpbf/src/httpbf.c:502: error: expected expression before ‘>>’ token
/home/user/src/ocsync-0.91.4/src/httpbf/src/httpbf.c:493: warning: unused variable ‘tmp’
make[2]: *** [src/httpbf/CMakeFiles/httpbf.dir/src/httpbf.c.o] Error 1
make[1]: *** [src/httpbf/CMakeFiles/httpbf.dir/all] Error 2
make: *** [all] Error 2

if I don't use the patch it compiles ok...

Am i doing something wrong?

Thank you!

hypnotoad123 2014-01-26 15:03

Re: anyone wanna try to get owncloud qt sync client going
 
Hi enekux,

sorry for the corrupt patch. I used the opportunity to create deb packages. Installation and compiling is thus much easier.
I will try to upload them today.

enekux 2014-01-29 21:31

Re: anyone wanna try to get owncloud qt sync client going
 
Hi,

any progress with the deb packages? I am really looking forward to finally be able to sync with my owncloud... until now I was mapping with webdav but it was not very reliable...

hypnotoad123, do you have any intentions of porting the gui as well?

Thank you

hypnotoad123 2014-01-30 00:17

Re: anyone wanna try to get owncloud qt sync client going
 
Hi enekux,
the deb packages are finished and in extras-development.

I started a new therad to focus to announce the new packages. There are also links to download the debs directly.

The official gui is already ported, but it shows no image. I guess because it is minimized to a tray icon. I did not try using it because the command line client is everything I need and there are not too many outside who would use a gui extensively.


All times are GMT. The time now is 00:33.

vBulletin® Version 3.8.8