On Friday, May 27, 2011 12:20:26 am Mojca Miklavec wrote:
> Hello,
>
> I wanted to test Qt compilation, but I cannot even start it.
The configure script is assuming that a pkg-config files exists to
describe the local installation of Qt. I think we've been through
this before that OSX does not [typically] use pkg-config. So you
may have to modify the autoconf scripts to deal with the OSX way
of doing things. Here's a start:
> configure scripts asks for lrelease-qt4, but the name of binary on mac
> seems to be lrelease-4.7 (it probably depends on version).
Modify the following line
configure.in:1189:AC_CHECK_PROGS(LRELEASE, lrelease-qt4 lrelease, no)
> On top of that it complains about
>
> No package 'QtCore' found
> No package 'QtGui' found
> No package 'QtNetwork' found
> No package 'QtSvg' found
Those would have been picked up in the pkgconfig files, I think.
But on OSX they may well be defined in a system header that needs to
be included. The linux libqt4 distribution includes header files for
a surprising number of other systems. I see, for example:
/usr/lib/qt4/mkspecs/common/mac-g++.conf
/usr/lib/qt4/mkspecs/common/mac-llvm.conf
/usr/lib/qt4/mkspecs/common/mac.conf
/usr/lib/qt4/mkspecs/cygwin-g++
/usr/lib/qt4/mkspecs/cygwin-g++/qmake.conf
/usr/lib/qt4/mkspecs/cygwin-g++/qplatformdefs.h
/usr/lib/qt4/mkspecs/darwin-g++
/usr/lib/qt4/mkspecs/darwin-g++/qmake.conf
/usr/lib/qt4/mkspecs/darwin-g++/qplatformdefs.h
/usr/lib/qt4/mkspecs/macx-xcode
/usr/lib/qt4/mkspecs/macx-xcode/Info.plist.app
/usr/lib/qt4/mkspecs/macx-xcode/Info.plist.lib
/usr/lib/qt4/mkspecs/macx-xcode/qmake.conf
/usr/lib/qt4/mkspecs/macx-xcode/qplatformdefs.h
/usr/lib/qt4/mkspecs/macx-xlc
/usr/lib/qt4/mkspecs/macx-xlc/qmake.conf
/usr/lib/qt4/mkspecs/macx-xlc/qplatformdefs.h
It seems likely that among those (and many more I didn't list) are
the definitions and configuration information you need.
> However I have
> /Library/Frameworks/QtCore.framework
> and others present and I'm able to compile and use other Qt applications.
Aha. Sounds promising.
Can you see how the Make files for those other Qt applications
refer to Qt, and borrow equivalent commands for gnuplot's configure script?
|