Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Custom build scripts
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 :( ]
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 ?
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).
How do you test it then ?
You should rather setup some desktop remote control like VNC and do everything directly on your linux machine.
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 :)
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.
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 :)
That's what I suggested, in the Project pane there's Build Steps, you could try with that
Ok I will try experimenting that, thanks.