Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Custom build scripts

Custom build scripts

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 2 Posters 2.5k 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.
  • S Offline
    S Offline
    sunilchintu2468
    wrote on last edited by
    #1

    Hi,
    How can we write our own build scripts? I don't want to compile on my windows machine, instead I want to connect to target machine(linux) and compile [have my compiler there!] Please provide me steps or any link
    [ Google didn't help me from 5days :( ]

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

      Hi and welcome to devnet,

      What is your current setup ? You write your Qt code on a windows machine and want to build your project on a linux computer ?

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sunilchintu2468
        wrote on last edited by
        #3

        Thank you. Yes, I'm mapping my linux disk to Windows and open the code in QT and if I say build, it should connect to linux machine and build there (via my internal script).

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

          How do you test it then ?

          You should rather setup some desktop remote control like VNC and do everything directly on your linux machine.

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sunilchintu2468
            wrote on last edited by
            #5

            I will just build, and create rpm package to test on servers ( it is not stand alone application).

            Is there any way? Currently we are using vi editors via putty, I wanted to use QT in my local desktop which I feel comfortable with :)

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

              My proposition still is valid, you have QtCreator for linux that is also available.

              You could try to create a custom build step that will execute your script. Other than that I must say I don't see how you could do that. Don't forget one thing: the line endings are not the same on Windows and Linux, you might have to do some adjustment to not "pollute" the code.

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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sunilchintu2468
                wrote on last edited by
                #7

                in eclipse there is a way to execute a batch script when we say "build" on a project.

                I'm just finding the same option to do so. If I have a way to achieve this, then I'll do the rest in batch script :)

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

                  That's what I suggested, in the Project pane there's Build Steps, you could try with that

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

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sunilchintu2468
                    wrote on last edited by
                    #9

                    Ok I will try experimenting that, thanks.

                    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