Page 1 of 1

Unable to compile FileZilla 3.48.0 with Storj-enable

Posted: 2020-05-04 09:43
by test
Hi!

I am trying to upgrade to FileZilla 3.48.0 with Storj feature enabled.

Firstly, I downloaded the latest source code.

Then, in the Building FileZilla step as mentioned in the tutorial https://wiki.filezilla-project.org/Comp ... er_Windows
I replaced ./configure --with-pugixml=builtin with ./configure --with-pugixml=builtin --enable-storj (as mentioned in https://wiki.filezilla-project.org/Storj)

So, when I execute the command

./configure --with-pugixml=builtin --enable-storj

I get the following error:

Code: Select all

configure: error: libstorj not found: No package 'libstorj' found. You can download it from https://github.com/Storj/libstorj
I tried resolving this by following commands (as mentioned in https://github.com/storj/libstorj):

Code: Select all

cd ~
git clone https://github.com/storj/libstorj.git
cd libstorj
./autogen.sh
./configure
make
However, on executing the ./configure command mentioned above, I now get the error:

Code: Select all

checking for libcurl >= 7.35.0... no
configure: error: libcurl 7.35.0 or greater was not found.
Kindly reply how to resolve all this
Thanks!

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

Posted: 2020-05-04 11:20
by botg
You need to install said library and its headers.

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

Posted: 2020-05-06 07:12
by test
I used a custom Storj golang source code, which I binded as C library. After that, I was able to successfully run FileZilla without using libstorj.

I am able to successfully download/upload files from/to Storj.
But, in the Transfer Queue Bar, the progress bar appears for a second only when the file transfer is done & it displays 100% only for a second.

However, when I do file transfer to FTP/SFTP, I also get the detailed intermediate progress also (like 10%, 25%....,100%).

Now, the functions like storj_bridge_resolve_file() (mentioned in https://svn.filezilla-project.org/svn/F ... zstorj.cpp) are defined in libstorj which is deprecated now.

Instead of the functions like storj_bridge_resolve_file(), I have made my own functions.

Now, my question is that:
Suppose I write any such method. Now, how do I reflect the download/upload progress in the Transfer Queue Bar?
Just like there are functions like fzprintf(fzstorjEvent::Status, "...."), fzprintf(fzstorjEvent::Transfer,"..."), what is the function appropriate for my task?

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

Posted: 2020-05-06 08:07
by botg
The status event is for displaying status messages in the message log.

The transfer event is for indicating transfer progress. Send it when you have uploaded or downloaded a portion of the file with the amount of the file that has been transferred since the last time the event was sent.

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

Posted: 2020-05-14 17:52
by test
The fzprintf(storjEvent::Transfer,"...") method worked.
Thanks