pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Compiling in Mac OS X


From: Aleksander Morgado Juez
Subject: Re: [pdf-devel] Compiling in Mac OS X
Date: Wed, 31 Oct 2007 17:05:03 +0100

Hi,

I am trying to compile libgnupdf in Mac OS X 10.5, and found some porting issues that I don't really know how to handle (first time trying to port
  something to this OS).
  I found at least three issues:
(1) libtoolize --> glibtoolize (in Darwin) --> So bootstrap needs to be
  modified. New bootstrap for Mac OS X?

Please check if `autoreconf' does the right thing. If it does we will
call `autoreconf' from the bootstrap script instead of the explicit
call chain.

Yes, autoreconf works perfectly with no further change needed.



(2) malloc.h --> stdlib.h (in Darwin) --> So source files will need an explicit #ifdef _DARWIN_OS or something like that (a more explicit #ifdef HAVE_MALLOC_H maybe) for a correct compilation. Configure script will need to be run with the specific definition (-D_DARWIN_OS) as well. Is this the
  best approach?

(3) The function 'getline' used in utils/pdf_filter is not included in my
  default system libraries. Is there any workaround to this?

gnulib provides portable implementations for both facilities. I
imported new modules for `malloc.h' and `getline'. Please update from
CVS and test it.

I just updated and there is no problem with getline, but it keeps complaining about the malloc.h file, which is not included in the lib directory.



BTW, the `AC_CANONICAL_HOST' in `configure.ac' should report that you
are building in macosx.

That's good information, thanks.

Aleksander Morgado





reply via email to

[Prev in Thread] Current Thread [Next in Thread]