[os x] Po directories gettext check fails

Allen Winter winter at kde.org
Thu Jan 1 18:39:45 CET 2009


On Thursday 01 January 2009 12:27:22 pm Orville Bennett wrote:
> On Jan 1, 2009, at 11:29 AM, Allen Winter wrote:
> > On Thursday 01 January 2009 11:18:10 am Orville Bennett wrote:
> > snip
> >
> >
> >
> > You might need to install libintl separately as well.
> > Or install a glibc that comes with libintl.
>
> Y'know after trying the command again it seems it is intl.h which
> isn't being found.
>
Seems we need to add /opt/local/include to the CMAKE_REQUIRED_INCLUDES list.
I'm really not sure the best way to make that happen.

You could try putting the following line near the top of FindGettext.cmake:
set(CMAKE_REQUIRED_INCLUDES  ${CMAKE_REQUIRED_INCLUDES} /opt/local/include)


> Output
> --->  Configuring amarok
> Error: Target org.macports.configure returned: configure failure:
> shell command " cd "/opt/local/var/macports/build/
> _opt_local_var_macports_sources_rsync
> .macports.org_release_ports_kde_amarok/work/build" && cmake --prefix=/
> opt/local ../amarok-2.0 -DBUILD_SHARED_LIBS=ON -
> DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=ON -
> DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr"
> -DCMAKE_INSTALL_PREFIX=/opt/local -DPHONON_INCLUDE_DIR=/opt/local/
> include -DPHONON_LIBRARY=/opt/local/lib/libphonon.dylib -
> DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.5.sdk -
> DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake -Wno-dev "
> returned error 1
>
>  >> snip <<
>
> -- Looking for include files HAVE_LIBINTL_H
> -- Looking for include files HAVE_LIBINTL_H - not found.
> CMake Error at /opt/local/share/apps/cmake/modules/FindGettext.cmake:
> 58 (message):
>    Could NOT find Gettext
> Call Stack (most recent call first):
>    po/CMakeLists.txt:1 (find_package)
>
>
> -- Configuring incomplete, errors occurred!
>
> libintl is however installed.
> ~$ ll /opt/local/include/libintl.h
> -rw-r--r--  2 root  admin    14K Jan  1 01:50 /opt/local/include/
> libintl.h



More information about the Kde-buildsystem mailing list