Results 1 to 2 of 2

Thread: I have a script named c in $PATH, make tries to use it, build fails.

  1. #1
    Join Date
    May 2009
    Location
    Rio de Janeiro/RJ/Brazil
    Posts
    20
    Thanks
    5
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question I have a script named c in $PATH, make tries to use it, build fails.

    Greetings.

    I'm trying to build Qt in my machine.

    Qt's main Makefile uses c as C compiler.

    But c is the name of a script used in my company's environment to make some other stuff. I cannot change it because it's a company-wide standard and without admin powers I cannot do anything about it locally. I cannot change $PATH entirely because I need some other scripts and binaries that are in the same place as that script named c.

    Question: Is there a replacement to it? Can I edit the Makefile replacing c with gcc?

  2. #2
    Join Date
    May 2009
    Location
    Rio de Janeiro/RJ/Brazil
    Posts
    20
    Thanks
    5
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: I have a script named c in $PATH, make tries to use it, build fails.

    After struggling a little bit I found out that setting $CC = gcc makes qmake generate Makefiles using gcc as C compiler.

    I think there is something buggy in configure script because despite passing the -platform linux-g++ option whose the corresponding mkspecs specifies gcc as C compiler, the generated Makefiles seem to use the value of $CC variable.

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 06:53
  2. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.