Unable to compile FileZilla 3.48.0 with Storj-enable

Moderator: Project members

Post Reply
Message
Author
test
150 Opening data channel
Posts: 55
Joined: 2020-03-24 06:36

Unable to compile FileZilla 3.48.0 with Storj-enable

#1 Post by test » 2020-05-04 09:43

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!

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

#2 Post by botg » 2020-05-04 11:20

You need to install said library and its headers.

test
150 Opening data channel
Posts: 55
Joined: 2020-03-24 06:36

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

#3 Post by test » 2020-05-06 07:12

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?

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

#4 Post by botg » 2020-05-06 08:07

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.

test
150 Opening data channel
Posts: 55
Joined: 2020-03-24 06:36

Re: Unable to compile FileZilla 3.48.0 with Storj-enable

#5 Post by test » 2020-05-14 17:52

The fzprintf(storjEvent::Transfer,"...") method worked.
Thanks

Post Reply