fieldrndservices / libssh2-labview

A LabVIEW library for SSH client support via libssh2
Apache License 2.0
22 stars 2 forks source link

Build Application #54

Closed Clio75 closed 2 years ago

Clio75 commented 2 years ago

Hi,

I trying to build an application. But SSH will not open :

_CLEANUP ! Something whent wrong. TCP Close Connection in Field_RnD_Services_LIBSSH2_Toolkit.lvlib:Session.lvclass:Disconnect.vi->TestActor_JRRC.lvlib:SSH_JRRC.lvclass:Close.vi->TestActor_JRRC.lvlib:TestActorJRRC.lvclass:Actor Core.vi:5880001->Actor Framework.lvlib:Actor.lvclass:Actor.vi:6640015->Actor Framework.lvlib:Actor.lvclass:Actor.vi.ACBRProxyCaller.E650001D Open SSH connection : Disconnected to IP : 10.0.10.88

So the question is, What do i need to include in the build script to ensure that this application is running on other Windows computers ? Thanx

volks73 commented 2 years ago

@Clio75 I am assuming you have created a "Build Specification" in the Project Explorer for "My Computer" to build an executable on Windows. In this case, you need to ensure that the DLLs for this toolkit are always included. These are the libssh2lv.dll and libssh2lv-x64.dll located in "Dependencies->vi.lib->Field_RnD_Services_LIBSSH2_Toolkit.lvlib->Support" within the Project Explorer for your project referencing this toolkit. I would simply copy, not move, all of the DLLs, dylibs, and .so, to a folder under the "My Computer" target, like a libraries virtual or auto-populated folder. This will make them available in the Build Specification for the Application. From there, you can add them to the "Support" folder or the same folder as the built .exe.

Clio75 commented 2 years ago

I was able to make it work :) Thanx for your advice :)