I would be very thankful if you do so. But my problem is not with the make file itself.
I have two projects say A and B, which A is dependent to B. In the .pro file I introduce the dependency in the projects and in .pri file I present the path that makefile should look for the .so file. But if I dont make install B after wmake, the .so file wont be in the right place. Therefore, in my Job configuration in Jenkins for build environment, I added an execute shell after qmakebuilder plugin to make install the project, but after qmakebuilder is finished with the job, it exits the directory, which cause make install do nothing. I can of course cd to the directory, but I would like to avoid hardcoding stuff as much as possible (should do it for different jobs, different directory). Hope the explanation was clear. Thank you once again Jon. On Wednesday, October 24, 2012 5:40:51 AM UTC+3:30, Jon Schewe wrote: > > If you'd like I can send you my Makefile skeleton for building Qt > applications. > > On Tue, Oct 23, 2012 at 12:26 AM, mrz <rash...@gmail.com <javascript:>>wrote: > >> seems thats the only option I have, I think it would be much neater if >> there was a plug-in or the existence qmakebuilder plug-in could have been >> modified or had more option. >> However, at the end of the day, the important thing is if your jobs can >> be compiled, no matter how. >> Thank you Jon for your advice. >> >> >> >> On Tuesday, October 23, 2012 4:59:08 AM UTC+3:30, Jon Schewe wrote: >> >>> I build Qt based projects in Jenkins as well as non-Qt based projects. >>> I'm primarily unix based and have found that the best way to get all of the >>> builds working is to do everything from shell scripts that call make, which >>> then calls qmake to build Makefiles and then make to build the code. I'm >>> using msys on Windows to execute the shell scripts and the x-shell plugin >>> to make my cross-platform builds all use the same scripts to fire >>> everything off. This actually works quite well. >>> >>> On Mon, Oct 22, 2012 at 3:12 AM, mrz <rash...@gmail.com> wrote: >>> >>>> On a different note, I am trying to resolve dependencies my project has >>>> to other external/internal projects. can you give me some hints on this? >>>> >>>> To be specific, I have a SVN repository which contains project A, and >>>> project B both written using Qt. >>>> Project A is independent, project B is dependent to project a and some >>>> external library. >>>> When running on my machine, I set the LD_LIBRARY_PATH to project A .so >>>> (and any other .so file required) file to compile project B). >>>> >>>> I have SVN plug-in for Jenkins now, and I checke out the project. >>>> Obviously, project A will be compiled with no error, while in project B >>>> compilation I get error indicating some file cannot be found due to the >>>> dependency. >>>> >>>> I am looking forward to overcome this In JEnkins using another plug-in >>>> in or customizing qmake Plug-in some how.... >>>> >>>> >>>> On Monday, October 22, 2012 10:40:52 AM UTC+3:30, mrz wrote: >>>>> >>>>> I successfully installed the qmakebuilder plug-in into my Jenkins by >>>>> adding the .hpi file that i got from compiling the code with JDK 6 and it >>>>> seems to work smoothly for me. >>>>> I believe the .hpi file Richard has compiled should work just fine as >>>>> well. >>>>> Thank you once again. >>>>> >>>>> >>>>> On Saturday, October 20, 2012 5:57:58 PM UTC+3:30, mrz wrote: >>>>>> >>>>>> >>>>>> >>>>>> On Saturday, October 20, 2012 5:09:29 PM UTC+3:30, Richard Mortimer >>>>>> wrote: >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> On 20/10/2012 13:45, Richard Mortimer wrote: >>>>>>> > The plugin is already in the jenkins build environment. I suspect >>>>>>> it >>>>>>> > needs someone to give it a little care and maybe take ownership of >>>>>>> it if >>>>>>> > it still serves a useful purpose. >>>>>>> > >>>>>>> > https://wiki.jenkins-ci.org/**di**splay/JENKINS/qmakebuilder+**Plu >>>>>>> **gin<https://wiki.jenkins-ci.org/display/JENKINS/qmakebuilder+Plugin> >>>>>>> > https://github.com/jenkinsci/**q**makebuilder-plugin<https://github.com/jenkinsci/qmakebuilder-plugin> >>>>>>> > >>>>>>> > https://jenkins.ci.cloudbees.**c**om/job/plugins/job/**qmakebuilde >>>>>>> **r-plugin/<https://jenkins.ci.cloudbees.com/job/plugins/job/qmakebuilder-plugin/> >>>>>>> >>>>>>> > >>>>>>> > It looks like it has been updated to a recent version of the >>>>>>> Jenkins >>>>>>> > maven pom so you may have more luck building from the jenkins >>>>>>> source. >>>>>>> > >>>>>>> Looks like it does not build with OpenJDK7 at the moment due to >>>>>>> reliance >>>>>>> on Sun internal code in the Hudson/Jenkins test framework. Builds >>>>>>> fine >>>>>>> with java 6 and that should work on a java 7 runtime. >>>>>>> >>>>>> Yes, I managed to compiled the source code with JDK 6 and generate >>>>>> the hpi file in target foler... worked just fine. >>>>>> >>>>>>> >>>>>>> There is a freshly built hpi file at >>>>>>> https://jenkins.ci.cloudbees.**c**om/job/plugins/job/**qmakebuilde** >>>>>>> r-plugin/1/hudson.**plugins.**qmake$qmakebuilder/<https://jenkins.ci.cloudbees.com/job/plugins/job/qmakebuilder-plugin/1/hudson.plugins.qmake$qmakebuilder/> >>>>>>> >>>>>>> >>>>>>> Give that a try and report back how you get on. >>>>>>> >>>>>> sure thing... I’ll try them both. >>>>>> >>>>>>> >>>>>>> Regards >>>>>>> >>>>>>> Thank you everybody. >>>>>> >>>>>>> Richard >>>>>>> >>>>>> >>> >>> >>> -- >>> Jon Schewe | http://mtu.net/~jpschewe >>> >>> >>> > > > -- > Jon Schewe | http://mtu.net/~jpschewe > > >