Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Pre-requisites before pushing a QT project in GIT

    General and Desktop
    2
    4
    441
    Loading More Posts
    • 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
      Arqam last edited by Arqam

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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 Reply Quote 1
        • A
          Arqam @sierdzio last edited by

          @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 Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            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 Reply Quote 0
            • First post
              Last post