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
Forum Updated to NodeBB v4.3 + New Features

Pre-requisites before pushing a QT project in GIT

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 721 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.
  • A Offline
    A Offline
    Arqam
    wrote on 11 Sept 2017, 06:04 last edited by Arqam 9 Nov 2017, 06:12
    #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
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 11 Sept 2017, 06:19 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 11 Sept 2017, 06:25
      1
      • S sierdzio
        11 Sept 2017, 06:19

        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 11 Sept 2017, 06:25 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
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 11 Sept 2017, 06:33 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

          1/4

          11 Sept 2017, 06:04

          • Login

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