[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: include libssh into a Qt project
[Thread Prev] | [Thread Next]
- Subject: Re: include libssh into a Qt project
- From: Oleksandr Shneyder <oleksandr.shneyder@xxxxxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 09 Dec 2010 08:24:52 +0100
- To: libssh@xxxxxxxxxx
Giovanni Venturi schrieb: > On Wednesday, December 08, 2010 04:08:34 pm you wrote: >> Giovanni Venturi schrieb: >>> On Wednesday, December 08, 2010 01:42:21 pm you wrote: >>> What do you exactly mean with "put the file libssh.fll.a in lib dir from >>> mingw"? >>> >>> This is the project tree: >>> >>> [ksniffer@arch-laptop ~]$ tree development/programs/Qt/QDeployer >>> development/programs/Qt/QDeployer >>> >>> |-- bin >>> | >>> | `-- libssh.dll >>> | >>> |-- COPYING >>> |-- deployerui.cpp >>> |-- deployerui.h >>> |-- filesystemtreeview.cpp >>> |-- filesystemtreeview.h >>> |-- images >>> | >>> | |-- new.png >>> | |-- open.png >>> | >>> | `-- save.png >>> | >>> |-- include >>> | >>> | `-- libssh >>> | >>> | |-- callbacks.h >>> | |-- libssh.h >>> | |-- server.h >>> | |-- sftp.h >>> | >>> | `-- ssh2.h >>> | >>> |-- KNOWN_BUGS >>> |-- lib >>> | >>> | |-- libssh.dll.a >>> | >>> | `-- libssh_static.a >>> | >>> |-- lineedit.cpp >>> |-- lineedit.h >>> |-- main.cpp >>> |-- mainwindow.cpp >>> |-- mainwindow.h >>> |-- packagetree.cpp >>> |-- packagetree.h >>> |-- projectview.cpp >>> |-- projectview.h >>> |-- qdeployer_it.ts >>> |-- QDeployer.pro >>> |-- qdeployer.qrc >>> |-- README >>> |-- settings.cpp >>> |-- settings.h >>> |-- sha2.c >>> |-- sha2.h >>> |-- sshmanager.cpp >>> |-- sshmanager.h >>> |-- textedit.cpp >>> |-- textedit.h >>> |-- TODO >>> |-- treewidgetitem.cpp >>> |-- treewidgetitem.h >>> > > Fixed. Thank you. Is it really not possible to tell to qmake .pro file where to > get the libraries and have a lib subdirectory in my own project avoiding to > move the libssh.dll.a into the mingw part? Because, for example, the include > files are just into my project and with the: > > DEPENDPATH += . include > INCLUDEPATH += . include > > into the win32 part. It finds the include files and it compiles the code without > problem. I think a similar thing could be done with libssh.dll.a file, just I > don't know how. > Any idea? > > Thank you, > Giovanni Hi Giovanni, Sure you can do this, There is no option in Qt project file to specify library path, but it is command line option for gcc. You can specify this path with -L option. So as you did was almost right, you made only one error, -L must specify path to directory with libraries, not to library file. So, in your case, you must write in project file: LIBS += -L lib/ -lssh You must specify the path relative to directory where make is running or absolute path. But I think, it is better idea to put libraries in "system" directory where other libs are. regards, -- Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team email: oleksandr.shneyder@xxxxxxxxxxxxxxxxx web: www.obviously-nice.de --> X2go - everywhere@home
Attachment:
signature.asc
Description: OpenPGP digital signature
Re: include libssh into a Qt project | Giovanni Venturi <giovanni.venturi@xxxxxxxxx> |
include libssh into a Qt project | Giovanni Venturi <giovanni.venturi@xxxxxxxxx> |
Re: include libssh into a Qt project | Giovanni Venturi <giovanni.venturi@xxxxxxxxx> |
Re: include libssh into a Qt project | Oleksandr Shneyder <oleksandr.shneyder@xxxxxxxxxxxxxxxxx> |
Re: include libssh into a Qt project | Giovanni Venturi <giovanni.venturi@xxxxxxxxx> |