[Qt-creator] Autotools import project problem

Tomás Ortí tomasorti at gmail.com
Sat Nov 17 22:27:30 CET 2012


Hi.
Sorry for my late answer.
I've been really busy in last 2 months.

Mathias, by your paragraph, do you mean that QtCreator calls the MSYS
commands with "CMD context"?

If so, it is possible to run MSYS commands in a Windows CMD shell like:

C:\Users\etomort\Desktop\protobuffer-fitnesse-develop>C:\MinGW\msys\1.0\bin\ls.exe
conf*
config.guess  config.h.in  config.sub  configure  configure.ac

C:\Users\etomort\Desktop\protobuffer-fitnesse-develop>C:\MinGW\msys\1.0\bin\grep.exe
-n LD_LIBRARY_PATH conf*
configure:10575:    shlibpath_var=LD_LIBRARY_PATH
configure:10638:  shlibpath_var=LD_LIBRARY_PATH
configure:10716:  shlibpath_var=DYLD_LIBRARY_PATH

C:\Users\etomort\Desktop\protobuffer-fitnesse-develop>C:\MinGW\msys\1.0\bin\sh
.\configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
[...]

But if a script uses more than one command (E.g.: configure, awk, sed, gcc)
the Windows PATH variable has to contain the directory paths to those. I
had to add them:

CMD>PATH=%PATH%;c:\MinGW\bin\;C:\MinGW\msys\1.0\bin\sh

in order to make configure run from CMD shell.

Starting QtCreator with that PATH I was able to run make, so that is enough
for me.
I can live running autotools from MSYS shell and make from QtCreator

I also was able (in some fashion) to run configure from QtCreator creating
a "Custom Process Step" with:

Command: C:\MinGW\msys\1.0\bin\sh.exe
Working dir:
Command Arguments.
/c/Users/etomort/Desktop/trunk/testing/json-fitnesse/protobuffer-fitnesse-master/configure

And got this:

22:25:01: Running steps for project protobuffer-fitnesse-master...

22:25:01: Starting: "C:\MinGW\msys\1.0\bin\sh.exe "
/c/Users/etomort/Desktop/trunk/testing/json-fitnesse/protobuffer-fitnesse-master/configure

checking build system type... i686-pc-mingw32

checking host system type... i686-pc-mingw32

checking target system type... i686-pc-mingw32

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

configure: error: source directory already configured; run "make distclean"
there first

22:25:10: The process "C:\MinGW\msys\1.0\bin\sh.exe " exited with code 1.

Error while building/deploying project protobuffer-fitnesse-master (target:
Desktop)

When executing step 'Custom Process Step'

I'm happy just running make from QtCreator.

Thanks for your help!


On Mon, Sep 24, 2012 at 10:54 AM, Mathias Hasselmann <
mathias at taschenorakel.de> wrote:

> Am Montag, den 24.09.2012, 10:34 +0200 schrieb Tomás Ortí:
> > Mmm, that is a good point, Eike...
> >
> >
> > I'm using MSYS from MinGW under Windows Vista, and I use the shell
> > with rxvt.
>
> Oh, I don't think we ever considered that use-case when doing the
> plugin.
>
> > Autogen: autogen.sh
> > Configure: configure
> > Make: mingw32-make.exe all
> >
> >
> > Trying to guess, it could be a path problem...
> > Do you have any clue?
> > Do you think it is possible to fix that, or find a way to do it?
>
> Guess one would have to patch it, to really run all commands within
> MinGW context. For autogen.sh and configure I'd assume one would have to
> prefix this commands with some mingw magic, after all Windows doesn't
> know about #!/bin/sh, does it?
>
> Could you try to figure those steps out, could then try to patch the
> plugin.
>
> Ciao,
> Mathias
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20121117/96bad84b/attachment.html>


More information about the Qt-creator mailing list