[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error during make of libssh


Hi Sruthi ,

U have compiled it using MINGW or MSVC.??

On Mon, Jul 13, 2015 at 12:31 PM, Sruthi Mohan (RBEI/EIA1) <
Sruthi.Mohan@xxxxxxxxxxxx> wrote:

>  HI Raghav shukla,
>
>
>
> I have compiled libssh 0.7 with Mingw and I am using it with Qt creator.
>
> I have created a static lib
>
> Enabled WITH_STATICLIB in cmake config.
>
> I had to enable few commented stuff in the config (as in libssh 0.65) file
> before I did a make.
>
>
>
> Link (in French use google translate)
> http://www.qtfr.org/viewtopic.php?id=17738 is helpful.
>
>
>
> Dependencies
>
> 1.     zlib 1.2.8 from MINGW Installation Manager
> {C:/MinGW/lib/libz.dll.a}
>
> 2.     Openssl0.9.8k_WIN32 from
> https://code.google.com/p/openssl-for-windows/downloads/list
>
> 3.     Cmake 3.2.1
>
>
>
> Regards,
>
> Sruthi Mohan
>
>
>
>
>
> *From:* Raghaw Shukla [mailto:raghaw.wesee@xxxxxxxxx]
> *Sent:* Sunday, July 12, 2015 5:38 PM
> *To:* libssh@xxxxxxxxxx
> *Subject:* Re: error during make of libssh
>
>
>
> Iam using QTCreator with mingw and even though after using the binaries
> from https://red.libssh.org/projects/libssh/files Mine application
> crashes simply.No Idea whats going wrong and what wrong iam doing.
>
>
>
> On Wed, Jul 8, 2015 at 5:10 PM, Raghaw Shukla <raghaw.wesee@xxxxxxxxx>
> wrote:
>
> I have not tried I Directly used the compiled one .
>
>
>
> On Wed, Jul 8, 2015 at 5:07 PM, Aris Adamantiadis <aris@xxxxxxxxxxxx>
> wrote:
>
> Does it work if you remove the -DWITCH_STATIC_LIB option ?
>
> Le 08/07/15 08:23, Raghaw Shukla a écrit :
>
>  Hi Andreas,
>
>
>
> Can u please let me know the version/configuration of your gcc/compiler.I
> am using MINGW .
>
>
>
> On Tue, Jul 7, 2015 at 12:45 PM, Andreas Schneider <asn@xxxxxxxxxxxxxx>
> wrote:
>
> On Tuesday 07 July 2015 06:53:32 Raghaw Shukla wrote:
> > Hi ,
> >
> > After doing cmake and doing make i get this error everytime.
> >
> > $ cmake .. -G"MSYS Makefiles" -DWITH_STATIC_LIB:BOOL=ON
> > -DZLIB_LIBRARY:FILEPATH
> > ="/c/Development/lib/libz.a"
> > -DZLIB_INCLUDE_DIR:PATH="/c/Development/zlib-1.2.3
> > /zlib-1.2.3" -DOPENSSL_LIBRARIES:FILEPATH="/c/OpenSSL/libcrypto.a"
> > -DOPENSSL_IN
> > CLUDE_DIRS:PATH="/c/OpenSSL/include"
> > -DOPENSSL_EXTRA_LIBRARIES=/c/OpenSSL/inclu
> > de/openssl/crypto.h -DCMAKE_BUILD_TYPE=Release
> >
> >
> >
> >
> >
> >
> > $ make
> > Scanning dependencies of target ssh_shared
> > [  1%] Building C object src/CMakeFiles/ssh_shared.dir/agent.c.obj
> > [  1%] Building C object src/CMakeFiles/ssh_shared.dir/auth.c.obj
> > [  2%] Building C object src/CMakeFiles/ssh_shared.dir/bignum.c.obj
> > [  3%] Building C object src/CMakeFiles/ssh_shared.dir/buffer.c.obj
> > [  4%] Building C object src/CMakeFiles/ssh_shared.dir/callbacks.c.obj
> > [  4%] Building C object src/CMakeFiles/ssh_shared.dir/channels.c.obj
> > [  5%] Building C object src/CMakeFiles/ssh_shared.dir/client.c.obj
> > [  6%] Building C object src/CMakeFiles/ssh_shared.dir/config.c.obj
> > [  7%] Building C object src/CMakeFiles/ssh_shared.dir/connect.c.obj
> > j:/Development/libssh-0.7.0/src/connect.c:87:2: error: #error "Your
> system
> > must
> > have getaddrinfo()"
> >  #error "Your system must have getaddrinfo()"
> >   ^
> > make[2]: *** [src/CMakeFiles/ssh_shared.dir/connect.c.obj] Error 1
> > make[1]: *** [src/CMakeFiles/ssh_shared.dir/all] Error 2
> > make: *** [all] Error 2
> >
> >
> >
> > Anybody any idea why this is happeening??
>
> Compiler too old? It works just fine for me ...
>
> --
> Andreas Schneider                   GPG-ID: CC014E3D
> www.cryptomilk.org                asn@xxxxxxxxxxxxxx
>
>
>
>
>
> --
>
> Raghaw Shukla
> Software Engineer(AutoPilot Development Team)
> Aurora Integrated Systems,Bangalore.
> Email:raghaw.shukla@xxxxxxxxxxxxx
> Mobile:9972580305
>
>
>
>
>
>
>
> --
>
> Raghaw Shukla
> Software Engineer(AutoPilot Development Team)
> Aurora Integrated Systems,Bangalore.
> Email:raghaw.shukla@xxxxxxxxxxxxx
> Mobile:9972580305
>
>
>
>
>
> --
>
> Raghaw Shukla
> Software Engineer(AutoPilot Development Team)
> Aurora Integrated Systems,Bangalore.
> Email:raghaw.shukla@xxxxxxxxxxxxx
> Mobile:9972580305
>



-- 
Raghaw Shukla
Software Engineer(AutoPilot Development Team)
Aurora Integrated Systems,Bangalore.
Email:raghaw.shukla@xxxxxxxxxxxxx
Mobile:9972580305

Follow-Ups:
RE: error during make of libssh"Sruthi Mohan (RBEI/EIA1)" <Sruthi.Mohan@xxxxxxxxxxxx>
References:
error during make of libsshRaghaw Shukla <raghaw.wesee@xxxxxxxxx>
Re: error during make of libsshAndreas Schneider <asn@xxxxxxxxxxxxxx>
Re: error during make of libsshRaghaw Shukla <raghaw.wesee@xxxxxxxxx>
Re: error during make of libsshAris Adamantiadis <aris@xxxxxxxxxxxx>
Re: error during make of libsshRaghaw Shukla <raghaw.wesee@xxxxxxxxx>
Re: error during make of libsshRaghaw Shukla <raghaw.wesee@xxxxxxxxx>
RE: error during make of libssh"Sruthi Mohan (RBEI/EIA1)" <Sruthi.Mohan@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org