freetype
[Top][All Lists]
Advanced

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

Re: [ft] configure for universal binary


From: mpsuzuki
Subject: Re: [ft] configure for universal binary
Date: Mon, 25 Feb 2008 07:30:07 +0900

Hi,

On Sun, 24 Feb 2008 22:08:56 +0000
"Thijs Koerselman" <address@hidden> wrote:
>Hi,
>
>I've been struggling to build freetype2.3.5 as a static universal binary on
>OSX. I'm fairly new to unix/make/gcc and all, so please forgive me if this
>is an obvious question. I've search around a lot and tried everything I can
>think of.
>
>This is as close as I got:
>
>env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
>ppc" \
>  LDFLAGS="-arch i386 -arch ppc"   ./configure --disable-dependency-tracking
>--enable-shared=no --enable-static=yes
>
>Which generates the following output:
>
>cd builds/unix; ./configure  "--disable-dependency-tracking"
>"--enable-shared=no" "--enable-static=yes"
>checking build system type... i386-apple-darwin9.2.0
>checking host system type... i386-apple-darwin9.2.0
>checking target system type... i386-apple-darwin9.2.0
>checking for gcc... gcc
>checking for C compiler default output file name...
>configure: error: C compiler cannot create executables
>See `config.log' for more details.
>make: *** [setup] Error 77
>
>Where am I going wrong?
>
>Cheers,
>Thijs
>
>PS: I'm running OS10.5.2 on an intel mac

I'm sorry for your inconveniet experience on Mac OS X.
I have to improve the document how to build freetype2
on Mac OS X, especially for universal binary. In the
next official release (2.3.6), FreeType2 will provide
Mac OS X specific document - please let me know your
comment on manuscript
        
http://cvs.savannah.nongnu.org/viewvc/freetype2/docs/INSTALL.MAC?revision=1.6&root=freetype&view=markup

About the failure of configure script... I could
reproduce the error you had. The detail is written
in builds/unix/config.log, like this:

        configure:2494: gcc -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
-arch i386 -arch ppc  -arch i386 -arch ppc conftest.c  >&5
        ld: library not found for -lcrt1.10.5.o
        collect2: ld returned 1 exit status
        ld: library not found for -lcrt1.10.5.o
        collect2: ld returned 1 exit status
        lipo: can't open input file: 
/var/folders/Ve/VeDZ1VtoHruVjKZbml8ZhU+++TI/-Tmp-//cchN09ob.out (No such file 
or directory)
        configure:2497: $? = 1
        configure:2535: result: 
        configure: failed program was:
        | /* confdefs.h.  */
        | #define PACKAGE_NAME "FreeType"
        | #define PACKAGE_TARNAME "freetype"
        | #define PACKAGE_VERSION "2.3.5"
        | #define PACKAGE_STRING "FreeType 2.3.5"
        | #define PACKAGE_BUGREPORT "address@hidden"
        | /* end confdefs.h.  */
        | 
        | int
        | main ()
        | {
        | 
        |   ;
        |   return 0;
        | }
        configure:2542: error: C compiler cannot create executables

Could you find similar in your builds/unix/config.log?
If so, please let me know why "-isysroot ..." is required.
I guess, you're using Mac OS X 10.5, but you may want to
use Mac OS X 10.4.x-capable binary. Using -isysroot option
is popular solution? If CFLAGS has no -isysroot option,
the configuration proceeds more.

Regards,
mpsuzuki




reply via email to

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