On Fri, Sep 22, 2006 at 08:54:07PM +0200, Georg Baum wrote:

> Am Freitag, 22. September 2006 16:48 schrieb Bennett Helm:
> > I haven't tried compiling lyx-1.5.x in a while, but when I do now, I  
> > get the following error when I configure:
> > 
> > > checking for pkg-config... no
> > > checking for QT4_FRONTEND... configure: error: The pkg-config  
> > > script could not be found or is too old.  Make sure it
> > > is in your PATH or set the PKG_CONFIG environment variable to the full
> > > path to pkg-config.
> > >
> > > Alternatively, you may set the environment variables  
> > > QT4_FRONTEND_CFLAGS
> > > and QT4_FRONTEND_LIBS to avoid the need to call pkg-config.
> > 
> > I'd rather not use pkg-config (so as to reduce the number of  
> > dependencies on Mac). What sorts of values then should I use for  
> > QT4_FRONTEND_CFLAGS and QT4_FRONTEND_LIBS?
> 
> I would use pkgconfig if I were you. It does not create any additional 
> runtime dependencies, it only figures out what CFLAGS you need for qt4 and 
> where the include and lib directories are. On linux QT4_FRONTEND_CFLAGS 
> contains some QT stuff, I don't know what you need on OS X.

However, pkgconfig simply extracts the needed info from existing QtCore.pc
and QtGui.pc files. So, you could try to find those files and read them
by yourself (they are text files). Look for lines starting with "Cflags:"
and "Libs:": this is what you should put in QT4_FRONTEND_CFLAGS and
QT4_FRONTEND_LIBS, respectively.

-- 
Enrico

Reply via email to