[ptx] libpano12 - build with GNU autoconf, automake and libtool

Douglas Wilkins douglasw at zahav.net.il
Tue Nov 9 15:32:43 GMT 2004


On Tue, 2004-11-09 at 15:18 +0000, Bruno Postle wrote:
> On Tue 09-Nov-2004 at 16:23 +0200, Douglas Wilkins wrote:
> 
> > Ignore my last patch :-( Working in the dark without a mac
> > This one should be closer
> 
> I can get rid of most of the errors if I add various -l flags:
> 
>   DAR_LDFLAGS = "-L/usr/lib -L/sw/lib -ltiff -ljpeg -lpng -lz"
> 
> Though I don't know where to find the rest of these symbols:
> 
>   gcc -g -O2 -o .libs/PTOptimizer PTOptimizer.o  -L/Users/bruno/src/libpano12-2.7.0.7 -L/usr/lib -L/sw/lib -ltiff /sw/lib/libjpeg.dylib -L.. /Users/bruno/src/libpano12-2.7.0.7/.libs/libpano12.dylib -L/usr/local/lib -lpng -lz
>   ld: Undefined symbols:
>   _FSClose
>   _FSRead
>   _FSWrite
>   _FSpCreate
>   _FSpDelete
>   _FSpOpenDF
>   _CFStringCreateWithPascalString
>   _CFURLCreateWithFileSystemPath
>   _CFURLGetFileSystemRepresentation
>   _CopyCStringToPascal
>   _kCFAllocatorDefault
>   _FSpRename
>   _MyCtoPStr
>   _p2cstr
>   _setLibToResFile
>   _unsetLibToResFile
> 

Most of these seem to be in sys_mac.c

change

DAR_SRC =  sys_ansi.c ppm.c

to
DAR_SRC =  sys_mac.c sys_ansi.c ppm.c

in Makefile.am
(sys_ansi.c might not be required)

then run bootstrap, configure and make

HTH but I am guessing :-))

regards,
Doug



More information about the ptX mailing list