Re: [Gtk-osx-devs] Gtk 64bit
- From: John Ralls <jralls ceridwen us>
- To: GTK+-2 OSX Devs <gtk-osx-devs lists sourceforge net>
- Subject: Re: [Gtk-osx-devs] Gtk 64bit
- Date: Sun, 26 Jul 2009 19:44:01 -0700
On Jul 26, 2009, at 2:43 PM, Adam Puleo wrote:
>
>
> Hello John,
>
> Here are the commands:
> rm -rf gtk
> rm -rf Source
>
> CFLAGS="-arch x86_64"
> export CFLAGS
> CPPFLAGS="-arch x86_64"
> export CPPFLAGS
> LDFLAGS="-arch x86_64"
> export LDFLAGS
>
> sh gtk-osx-build-setup.sh
> jhbuild bootstrap
>
> Received this error:
> libtool: link: gcc -dynamiclib -o libltdl/.libs/libltdl.7.dylib
> libltdl/loaders/.libs/libltdl_libltdl_la-preopen.o libltdl/.libs/
> libltdl_libltdl_la-lt__alloc.o libltdl/.libs/libltdl_libltdl_la-
> lt_dlloader.o libltdl/.libs/libltdl_libltdl_la-lt_error.o
> libltdl/.libs/libltdl_libltdl_la-ltdl.o libltdl/.libs/
> libltdl_libltdl_la-slist.o libltdl/.libs/argz.o libltdl/.libs/
> libltdlS.o libltdl/.libs/libltdl.lax/dlopen.a/dlopen.o -L/Users/
> apuleo/gtk/inst/lib -arch x86_64 -Wl,-headerpad_max_install_names -
> install_name /Users/apuleo/gtk/inst/lib/libltdl.7.dylib -
> compatibility_version 10 -current_version 10.0 -Wl,-single_module
> ld warning: in libltdl/.libs/libltdlS.o, file is not of required
> architecture
> Undefined symbols:
> "_lt_libltdl_LTX_preloaded_symbols", referenced from:
> _lt_dlinit in libltdl_libltdl_la-ltdl.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [libltdl/libltdl.la] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> *** Error during phase build of libtool: ########## Error running
> make *** [4/12]
>
> Think I found the command that built libltdlS:
> libtool: link: (cd libltdl/.libs && gcc -O2 -gstabs+3 -std=gnu89 -c -
> fno-builtin -fno-common -DPIC "libltdlS.c")
>
> Looks like it's missing the arch flag...
>
> When it compiled gettext the arch flag was there.
>
Hmm. That really shouldn't work, because .jhbuildrc sets *FLAGS
absolutely without reference to the users environment. I added
environ_append("CFLAGS", "-arch x86_64")
environ_append("CXXFLAGS", "-arch x86_64")
environ_append("LDFLAGS", "-arch x86_64")
to .jhbuildrc-custom and it built just fine, at least through meta-gtk-
osx-bootstrap.
Does it work for you if you leave *FLAGS alone? (Start clean, or
you;ll have problems with the libraries you've already built. Don't
worry about running the install script again, it doesn't do anything
that matters. Just clear the environment variables, rm -rf gtk, and
try again.)
You don't have MacPorts or Fink installed, do you?
BTW, you want CXXFLAGS, not CPPFLAGS. The later is for the
preprocessor, which doesn't care about architecture; the former is for
C++. But as long as you're not building the *mm libraries, there is no
C++ anyway, so it doesn't matter.
Regards,
John Ralls
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]