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. Pre-requisites before pushing a QT project in GIT
QtWS25 Last Chance

Pre-requisites before pushing a QT project in GIT

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 694 Views
  • 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.
  • A Offline
    A Offline
    Arqam
    wrote on last edited by Arqam
    #1

    I am currently doing a new QT project and after completion I have pushed in github.

    Now, the thing is that I have done using Mac environment, and the only things being pushed is the source files, .pro, and .ui .

    So is this enough for someone to work on if he/she is working in a separate environment than Mac, as in will it work if a person from windows environment builds it or am I supposed to add something else before pushing the project to git ?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      What you pushed is fine (I assume you are not talking about QML project, in that case you would need to push the QML files and the resource file as well) and should be enough.

      A general rule of thumb: push everything you reference in .pro file. Qmake uses the .pro file to build the project (on any platform), so if you have all files from .pro in your git repo, the project should build fine on all platforms.

      (Z(:^

      A 1 Reply Last reply
      1
      • sierdzioS sierdzio

        What you pushed is fine (I assume you are not talking about QML project, in that case you would need to push the QML files and the resource file as well) and should be enough.

        A general rule of thumb: push everything you reference in .pro file. Qmake uses the .pro file to build the project (on any platform), so if you have all files from .pro in your git repo, the project should build fine on all platforms.

        A Offline
        A Offline
        Arqam
        wrote on last edited by
        #3

        @sierdzio
        Yeah, I am not using QML.

        But in my .pro I also have :

        CONFIG  += link_pkgconfig
        PKGCONFIG += opencv
        

        So is it fine with this, as the other person can install opencv library in his/her environment and configure or should I need to do anything for this before pushing?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I have no experience with pkgconfig, sorry.

          I think other people will need to use it on their side and it should be OK. Apart from Windows where pkgconfig is not (easily) available.

          (Z(:^

          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