Failed to compile GTK+ on Mac OS X



Hello!

I'm trying to compile GTK+ on Mac OS X 10.7.4 with Xcode 4.3.2 (4E2002) with gtk-osx-build-setup.sh and jhbuild.
I've successfully completed the bootstrap and meta-gtk-osx-bootstrap stages, but have encountered a problem with meta-gtk-osx-core.
The first one is with the freetype library. For some reason when compiling object files Make uses rules without '-c' option, so I get an error messages like:
---
cc  -I/Users/sasha/gtk/inst/include -I./objs -I./builds/ansi -I./include -arch x86_64 -mmacosx-version-min=10.7 -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o objs/ftsystem.o src/base/ftsystem.c
Undefined symbols for architecture x86_64:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [objs/ftsystem.o] Error 1
---

I've managed to workaround that by writing a shell script compiling all .c files.

The second problem is with install stage for freetype:

---
*** Installing freetype *** [17/28]
make install
make: *** No rule to make target `install'.  Stop.
*** Error during phase install of freetype: ########## Error running make install *** [17/28]
---

I've just copied the static library and header files int o~/gtk/inst folder.

Now I'm stuck with pango. The symptoms are following:

---
Making all in mini-fribidi
  GISCAN Pango-1.0.gir
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
In file included from <stdin>:4:
/Users/sasha/gtk/source/pango/pango/pango-impl-utils.h:26:18: error: glib.h: No such file or directory
/Users/sasha/gtk/source/pango/pango/pango-impl-utils.h:27:25: error: glib-object.h: No such file or directory
Error while processing the source.
make[4]: *** [Pango-1.0.gir] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Error during phase build of pango: ########## Error running make -k -C modules; make  *** [23/28]
---

No idea how to fix this yet. As I can see the pango/Makefile has proper include options for glib.
Could anybody comment on this issue please? What could be a reason for all these issues?

Thanks in advance,
Alexander



  


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