Solved Build a project from Git
-
Hello,
Im trying to build this : https://github.com/lvklabs/QSsh.git and integrate to my app so i can send Files by SFTP.
i did
mkdir $BUILD_DIRECTORY
cd $BUILD_DIRECTORY
qmake $SOURCE_DIRECTORY/qssh.pro // at this point they are 2 files generated :
///make (or mingw32-make or nmake depending on your platform)- .qmake.stash
- Makefile
Please tell me what is role of this files and how to get a .dll or .lib or single .h/.cpp file from this Project ? and how to use add this to my project.
Sorry for my weackness and thank you in advance.
-
@LeLev Now do:
make
Or nmake (depends on your compiler).
Makefile file is the makefile containing all needed calls to build the software (look for make documentation). -
@jsulm said in Build a project from Git:
OK thxFor my project im using qt5.10.1 mingw32, could you please tell me where can i find make and give me the link of the documentation on this aspects ?
edit : i have separated (from qt) MinGw installation, with bin/mingw32-make.exe, should it be possible to make with that ?
edit : with mingw32-make , that generated folders 3 :- bin : empty
- lib : empty
- src
inside src
-
src/libs + 1file(makefile)
-
src/libs/ssh + 1 file(makefile)
-
src/libs/ssh/Debug : empty
-
src/libs/ssh/Release : empty
-
src/libs/ssh/ + 5files (Makefile, Makefile.Debug, Makefile.Release, object_script.QSsh.Release, object_script.QSshd.Debug)
It looks like something whent wrong :
OUTPUT :
C:\Qt\5.11.0\mingw53_32\bin\build>mingw32-make cd src\ && ( if not exist Makefile C:\Qt\5.11.0\mingw53_32\bin\qmake.exe -o Makefile C:\Qt\5.11.0\mingw53_32\bin\QSsh\src\src.pro ) && mingw32-make -f Makefile mingw32-make[1]: Entering directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src' cd libs\ && ( if not exist Makefile C:\Qt\5.11.0\mingw53_32\bin\qmake.exe -o Makefile C:\Qt\5.11.0\mingw53_32\bin\QSsh\src\libs\libs.pro ) && mingw32- make -f Makefile mingw32-make[2]: Entering directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src/libs' cd ssh\ && ( if not exist Makefile C:\Qt\5.11.0\mingw53_32\bin\qmake.exe -o Makefile C:\Qt\5.11.0\mingw53_32\bin\QSsh\src\libs\ssh\ssh.pro ) && mingw3 2-make -f Makefile mingw32-make[3]: Entering directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src/libs/ssh' mingw32-make -f Makefile.Release mingw32-make[4]: Entering directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src/libs/ssh' g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DQSSH_LIBRARY -DIDE_LIBRARY_B ASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_DISABLE_DEPRECATED_BEFORE=0x040900 -DQT_NO_DEBUG -D QT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I..\..\..\..\QSsh\src\libs\ssh -I. -I/usr/include/botan-2/ -I..\..\..\ src -I..\..\..\..\QSsh\src\libs -IC:\Qt\5.11.0\mingw53_32\include -IC:\Qt\5.11.0\mingw53_32\include\QtWidgets -IC:\Qt\5.11.0\mingw53_32\include\QtGui -IC:\Qt\5.11.0\mingw53_32\include\QtANGLE -IC:\Qt\5.11.0\mingw53_32\include\QtNetwork -IC:\Qt\5.11.0\mingw53_32\include\QtConcurrent -IC:\Qt\5.11.0\mi ngw53_32\include\QtCore -Irelease -IC:\Qt\5.11.0\mingw53_32\mkspecs\win32-g++ -o release\sshsendfacility.o ..\..\..\..\QSsh\src\libs\ssh\sshsendfacil ity.cpp process_begin: CreateProcess(NULL, g++ -c -fno-keep-inline-dllexport -O2 -std=gnu++11 -Wall -W -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DW IN32 -DQSSH_LIBRARY -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_DISABLE_DEPRECAT ED_BEFORE=0x040900 -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I..\..\..\..\QSsh\src\libs\ssh -I. -I/usr/include/botan-2/ -I..\..\..\src -I..\..\..\..\QSsh\src\libs -IC:\Qt\5.11.0\mingw53_32\include -IC:\Qt\5.11.0\mingw53_32\include\QtWidgets -IC:\ Qt\5.11.0\mingw53_32\include\QtGui -IC:\Qt\5.11.0\mingw53_32\include\QtANGLE -IC:\Qt\5.11.0\mingw53_32\include\QtNetwork -IC:\Qt\5.11.0\mingw53_32\inc lude\QtConcurrent -IC:\Qt\5.11.0\mingw53_32\include\QtCore -Irelease -IC:\Qt\5.11.0\mingw53_32\mkspecs\win32-g++ -o release\sshsendfacility.o ..\..\.. \..\QSsh\src\libs\ssh\sshsendfacility.cpp, ...) failed. make (e=2): Le fichier spécifié est introuvable. Makefile.Release:1275: recipe for target 'release/sshsendfacility.o' failed mingw32-make[4]: *** [release/sshsendfacility.o] Error 2 mingw32-make[4]: Leaving directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src/libs/ssh' Makefile:36: recipe for target 'release' failed mingw32-make[3]: *** [release] Error 2 mingw32-make[3]: Leaving directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src/libs/ssh' Makefile:40: recipe for target 'sub-ssh-make_first-ordered' failed mingw32-make[2]: *** [sub-ssh-make_first-ordered] Error 2 mingw32-make[2]: Leaving directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src/libs' Makefile:40: recipe for target 'sub-libs-make_first-ordered' failed mingw32-make[1]: *** [sub-libs-make_first-ordered] Error 2 mingw32-make[1]: Leaving directory 'C:/Qt/5.11.0/mingw53_32/bin/build/src' Makefile:42: recipe for target 'sub-src-make_first-ordered' failed mingw32-make: *** [sub-src-make_first-ordered] Error 2
Can you see what i apparently did wrong ?
Thank you -
@LeLev said in Build a project from Git:
Qt\5.11.0\mingw53_32\include\QtGui -IC:\Qt\5.11.0\mingw53_32\include\QtANGLE -IC:\Qt\5.11.0\mingw53_32\include\QtNetwork -IC:\Qt\5.11.0\mingw53_32\inc
lude\QtConcurrent -IC:\Qt\5.11.0\mingw53_32\include\QtCore -Irelease -IC:\Qt\5.11.0\mingw53_32\mkspecs\win32-g++ -o release\sshsendfacility.o ......
..\QSsh\src\libs\ssh\sshsendfacility.cpp, ...) failed.
make (e=2): Le fichier spécifié est introuvable.It's not building. I don't understand the language.
-
@jsulm Ok Thank you in any cases.
-
Hi,
Did you install the botan library ?
-
Hello,
no ..
thx