libjpeg
János
janos.lobb at yale.edu
Thu May 3 11:50:38 PDT 2007
Hi,
I am trying to create a shared library from the libjpeg source -
www.ijg.org. So in the source directory I do the following:
bml0042:/Volumes/Data/Downloads/source/jpeg-6b janos$ ./configure --
enable-shared
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking how to run the C preprocessor... gcc -E
checking for function prototypes... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for size_t... yes
checking for type unsigned char... yes
checking for type unsigned short... yes
checking for type void... yes
checking for working const... yes
checking for inline... __inline__
checking for broken incomplete types... ok
checking for short external names... ok
checking to see if char is signed... yes
checking to see if right shift is signed... yes
checking to see if fopen accepts b spec... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking host system type... ltconfig: cannot guess host type; you
must specify one
Try `ltconfig --help' for more information.
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
bml0042:/Volumes/Data/Downloads/source/jpeg-6b janos$ make
./libtool --mode=compile gcc -O2 -I. -c ./jcapimin.c
make: ./libtool: Command not found
make: *** [jcapimin.lo] Error 127
There is no libtool in the current directory, so I try to run
ltconfig as:
bml0042:/Volumes/Data/Downloads/source/jpeg-6b janos$ ltconfig --
srcdir=./ --with-gcc ltmain.sh
checking host system type... ltconfig: cannot guess host type; you
must specify one
Try `ltconfig --help' for more information.
Looking into the config.guess file I see that neither "Power
Macintosh" nor "Darwin" is there.
If I copy over libtool from /usr/bin and try make, - probably not a
good idea - then I get this error:
<snip>
bml0042:/Volumes/Data/Downloads/source/jpeg-6b janos$ make
./libtool --mode=compile gcc -O2 -I. -c ./jcapimin.c
./libtool: unknown option character `-' in: --mode=compile
Usage: ./libtool -static [-] file [...] [-filelist listfile
[,dirname]] [-arch_only arch] [-sacLT]
Usage: ./libtool -dynamic [-] file [...] [-filelist listfile
[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-
compatibility_version #] [-current_version #] [-seg1addr 0x#] [-
segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table
<filename>] [-seg_addr_table_filename <file_system_path>] [-all_load]
[-noall_load]
make: *** [jcapimin.lo] Error 1
</snip>
What does it mean: "unknown option character `-' in: --
mode=compile" ? Does it complain about -O2, or -l or -c ?
I am looking it but not seeing it :)
Thanks ahead,
János
More information about the MacOSX-dev
mailing list