I do have QTDIR set to "/usr/local/Trolltech/Qt-4.5.2".  It doesn't help.
So far, setting QT_INCLUDE_DIR after find_package(Qt4 4.5.0 REQUIRED) is the
only thing that's been working for me.

Another update for libxml2 and libxslt:
I had pkg-config installed from macPorts.  Having it installed caused CMake
to fail to find libxml2...it found the library and didn't bail on making the
Makefile, but it didn't find the headers, so compiling failed.

I deleted the macPorts install of pkg-config (so my system didn't have any
pkg-config), and then the cmake and compile both succceeded.

So, having pkg-config installed from macPorts will make CMake fail to find
libxml2...might want to make a note of that, since I'm sure it'll come up
again.



On Tue, Sep 8, 2009 at 4:17 PM, Anderson Lizardo <
[email protected]> wrote:

> On Tue, Sep 8, 2009 at 4:16 PM, Brendan Duncan<[email protected]>
> wrote:
> >>
> >> Nice workaround ;-), the official place is using the include_directories
> >> command. But the better way to solve this is find why Qt can't be foudn
> on
> >> your system or why cmake found Qt in a wrong directory.
> >>
> >> > Modify the CMAKE_CXX_FLAGS line to include the Qt include directory:
> >> > set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall
> >> > -DAPIEXTRACTOR_ENABLE_DUPLICATE_ENUM_VALUES
> >> > -I/usr/local/Trolltech/Qt-4.5.2/include")
> >
> > Adding
> > set(QT_INCLUDE_DIR "/usr/local/Trolltech/Qt-4.5.2/include")
> > to the top of the CMakeLists.txt seems to be a more general solution than
> > adding the -I flags.
>
> Did you try setting QTDIR to "/usr/local/Trolltech/Qt-4.5.2" ? Something
> like:
>
> export QTDIR="/usr/local/Trolltech/Qt-4.5.2"
>
> before running cmake ...
>
> Regards,
> --
> Anderson Lizardo
> OpenBossa Labs - INdT
> Manaus - Brazil
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to