Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build a project from Git
Qt 6.11 is out! See what's new in the release blog

Build a project from Git

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 927 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • ODБOïO ODБOï

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      ODБOïO 1 Reply Last reply
      3
      • jsulmJ jsulm

        @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).

        ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by ODБOï
        #3

        @jsulm said in Build a project from Git:
        OK thx

        For 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

        jsulmJ 1 Reply Last reply
        0
        • ODБOïO ODБOï

          @jsulm said in Build a project from Git:
          OK thx

          For 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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          ODБOïO 1 Reply Last reply
          0
          • jsulmJ jsulm

            @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.

            ODБOïO Offline
            ODБOïO Offline
            ODБOï
            wrote on last edited by
            #5

            @jsulm Ok Thank you in any cases.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Did you install the botan library ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              ODБOïO 1 Reply Last reply
              2
              • SGaistS SGaist

                Hi,

                Did you install the botan library ?

                ODБOïO Offline
                ODБOïO Offline
                ODБOï
                wrote on last edited by ODБOï
                #7

                Hello,
                no ..
                thx

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved