Compiling 1.15 on OS X10.5.6

Help
Brent
2009-04-21
2013-02-12
  • Brent

    Brent - 2009-04-21

    I am not afraid of doing a little 'hard labor' under Mac Terminal. So I started with:
    baustins-mac-pro:~ brent1a$ cd /xchm-1.15
    baustins-mac-pro:xchm-1.15 brent1a$ sudo ./configure
    Password:
    checking whether make sets $(MAKE)... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether NLS is requested... yes
    checking for msgfmt... /opt/local/bin/msgfmt
    checking for gmsgfmt... /opt/local/bin/msgfmt
    checking for xgettext... /opt/local/bin/xgettext
    checking for msgmerge... /opt/local/bin/msgmerge
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking build system type... i386-apple-darwin9.6.0
    checking host system type... i386-apple-darwin9.6.0
    checking for ld used by GCC... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
    checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no
    checking for shared library run path origin... done
    checking for CFPreferencesCopyAppValue... yes
    checking for CFLocaleCopyCurrent... yes
    checking whether NLS is requested... yes
    checking for GNU gettext in libc... no
    checking for iconv... yes
    checking for working iconv... yes
    checking how to link with libiconv... -liconv
    checking for GNU gettext in libintl... no
    checking whether to use NLS... no
    checking for wx-config... /usr/bin/wx-config
    checking for wxWidgets version >= 2.8.0... yes (version 2.8.4)
    checking for wxWidgets static library... no
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for int32_t... yes
    checking for int16_t... yes
    checking for u_int16_t... yes
    checking for u_int32_t... yes
    checking for u_int64_t... yes
    checking chm_lib.h usability... no
    checking chm_lib.h presence... no
    checking for chm_lib.h... no
    configure: error: Can't find the CHMLIB header.

    Now I can't finish compiling because it errors out before it's done configuring. Any suggestions?

     
    • Razvan Cojocaru

      Razvan Cojocaru - 2009-05-16

      Yes, move the chm_lib.h header from /usr/local/include where I assume it has been installed by default, to /usr/include, and then move the libchm.a library from /usr/local/lib to /usr/lib. That should do the trick.

      Alternatively, if you're sure it will compile and link anyway, you can remove these lines from configure.in:

      AC_CHECK_HEADER(chm_lib.h,,AC_MSG_ERROR([Can't find the CHMLIB header.]))
      AC_CHECK_LIB(
          chm, chm_open,,
          AC_MSG_ERROR([Can't find/use -lchm. Please install CHMLIB first.])
      )

      and then run "autoreconf -f", then "./configure" again.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks