Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the right version of botan and complie it with nmake for qssh on qt5.13? #24

Open
jnhhcl opened this issue Jul 4, 2020 · 8 comments

Comments

@jnhhcl
Copy link

jnhhcl commented Jul 4, 2020

Hi,gentlemen:
I am using sftps of qssh on win10 to pull dir from linux.Firstly I must compile ssh.But I encountered an issure which is related with compiling botan which is used by qshh.I don't know which version of botan I need.So I tried serverl versions and find botan2.3 is fitable for the newest qssh.But the last problem is that after I have complied botan 2.3 with nmake and get the lib,I use it in qssh,it reports error such as "QSsh-master\src\libs\ssh\sshsendfacility.cpp:-1: error: undefined reference to `__imp__ZN5Botan14AutoSeeded_RNGC1Ey'".I donn't konw how to resolve it.In fact,I only cared about using qssh,but the botan makes me hard.My steps of compling botan is:
configure.py --cc=msvc --cpu=x64 --os=windows
nmake
nmake install
Looking forward to your reply!and thank you for that!

@jnhhcl
Copy link
Author

jnhhcl commented Jul 4, 2020

I have resolved the problem.The step is:
1.download the latest botan source 2.14.0(download link is https://github.com/randombit/botan/tags).
2.compile qt win64 lib:
configure.py --os=mingw --cpu=x64 --cc-bin=x86_64-w64-mingw32-g++ --ar-command=x86_64-w64-mingw32-gcc-ar
nmake
nmake install
3.change .pro like:
INCLUDEPATH +=D:/mingw/include/botan-2
LIBS += -LD:/mingw/lib -llibbotan-2
and replace content "#include <botan/filter.h>" in file key_filt.h with "#include <botan/filters.h>"
4.just make the qssh project.

@jnhhcl
Copy link
Author

jnhhcl commented Jul 6, 2020

Hi,Sir:

I have encountered another problem. When I run the example program SecureUploader ,it reports that "SecureUploader: Connection error 3".3 is SshProtocolError.My server is debian linux on rk3229 and it has sshd running:“root 585 1 0 16:55 ? 00:00:00 /usr/sbin/sshd -D”.I just don't know how to reslove it for SshProtocolError is an internal error.

Addly,I have test the linux sshd server by mobaxterm's ssh sesstion which runs well.

Looking forward to your reply!and thank you for that!

@Shazib
Copy link

Shazib commented Jul 6, 2020

Looks like this version is not maintained, maybe try this one

@jnhhcl
Copy link
Author

jnhhcl commented Jul 7, 2020

Hi,Shazib:

I have tried the new source.But I've found the source is based on the qt version more than 5.13 and the QAbstractSocket::errorOccurred is not supported by qt5.13. So I want to ask that which qt version of the newest source is,and when I have compiled it with the suitable qt version and got the ssh dll ,can I use qt5.13 to develop my programs with the ssh dll?

ooking forward to your reply!and thank you for that!

@Shazib
Copy link

Shazib commented Jul 7, 2020

Sorry i have no idea, maybe try creating an issue over on the other projects page...

@Shazib
Copy link

Shazib commented Jul 7, 2020

Having a quick look, QAbstractSocket::errorOccurred was introduced in Qt 5.15, so if that is part of QSsh, then your program needs to be 5.15 at least also.
You will probably need to upgrade your program to 5.15 as well.

@jnhhcl
Copy link
Author

jnhhcl commented Jul 9, 2020

Thank you for that! I will continue to resolve the issure when time if free.Cuttently,I just start filezilla by qt program to realize file downloading component.

@veerendrarn
Copy link

can any one how to add botan lib in qssh project it has not included in the project .if i want to download and add in which file i have to include the botan lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants