Add new comment

./configure failing on OS X

I've used an old "lite" version and am looking to expand my use of LibRAW. In the end, I'll want to try to get things compiled up as a Universal Binary for 10.4+ and on Windows, but for now, I'm just looking to get things up and going. I'm on OS X version 10.6.7 and XCode version 3.2.2. Since you've got it compiling on OS X already, this is likely due to different XCode versions or a brain lapse on my part. But, here's what I'm getting:

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/Users/stark/dev/LibRaw-0.13.5':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

----- config.log bits -----
configure:2824: checking for g++
configure:2840: found /Developer/usr/bin/g++
configure:2851: result: g++
configure:2878: checking for C++ compiler version
configure:2887: g++ --version >&5
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2898: $? = 0
configure:2887: g++ -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5659~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5659)
configure:2898: $? = 0
configure:2887: g++ -V >&5
g++-4.2: argument to `-V' is missing
configure:2898: $? = 1
configure:2887: g++ -qversion >&5
i686-apple-darwin10-g++-4.2.1: no input files
configure:2898: $? = 1
configure:2918: checking whether the C++ compiler works
configure:2940: g++ conftest.cpp >&5
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
configure:2944: $? = 1
configure:2982: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "LibRaw"
| #define PACKAGE_TARNAME "libraw"
| #define PACKAGE_VERSION "0.13.5"
| #define PACKAGE_STRING "LibRaw 0.13.5"
| #define PACKAGE_BUGREPORT "info@libraw.org"
| #define PACKAGE_URL "http://www.libraw.org"
| /* end confdefs.h. */
|
----------

Note, I do get further in configure with:

arch_flags=-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4

./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags"
...

checking how to run the C preprocessor... /lib/cpp
configure: error: in `/Users/stark/dev/LibRaw-0.13.5':
configure: error: C preprocessor "/lib/cpp" fails sanity check

Any thoughts?

Craig

Forums: