pdf-devel
[Top][All Lists]
Advanced

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

[pdf-devel] Compiling in Mac OS X


From: Aleksander Morgado
Subject: [pdf-devel] Compiling in Mac OS X
Date: Wed, 31 Oct 2007 15:57:09 +0100

Hi all,

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?
 (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?

I successfully compiled the library after making changes (1) and (2), but failed when compiling the pdf_filter utility due to (3).

Aleksander Morgado

reply via email to

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