[MacPorts] #20199: qt4-mac fails to build

MacPorts noreply at macports.org
Fri Jul 10 16:20:24 PDT 2009


#20199: qt4-mac fails to build
----------------------------------+-----------------------------------------
 Reporter:  jwhowse4@…            |       Owner:  erickt@…           
     Type:  defect                |      Status:  new                
 Priority:  Normal                |   Milestone:                     
Component:  ports                 |     Version:  1.7.1              
 Keywords:                        |        Port:  qt4-mac            
----------------------------------+-----------------------------------------

Comment(by reg@…):

 Replying to [comment:6 macsforever2000@…]:
 > {{{/opt/local/include/KURL.h}}} is provided by kdelibs3. Indeed when I
 deactivated that port, qt4-mac compiled just fine. So that's a good
 workaround.

 I had the same issue as well.

 Looks like the problem is in the Makefile that gets generated by qmake for
 qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore. The CFLAGS
 contains a -I/opt/local/include which is positioned before the rest of the
 local INCLUDEPATH, so headers in /opt/local/include are getting searched
 before the webkit headers. I believe macports automatically passes
 CFLAGS=-I/opt/local/include when executing the configure script (as
 specified by configure.env).

 Perhaps by overriding configure.env to be empty in the port file and
 instead calling the configure script with the additional arguments
 -I${prefix}/include and -L${prefix}/lib will allow qmake to generate the
 Makefile with the INCLUDEPATH ordered correctly?

-- 
Ticket URL: <http://trac.macports.org/ticket/20199#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list