Hello,
I would suggest to make a
symlink in the lib – directory of your cross-toolchain
to gobject.so (and perhaps to the
other shared libs also) . Then this shared library from glib has to be found. I
had the
same error building my shared
libraries for mipsel-linux either. And that
solved the problem. The reason however I do not
know.
ld has to find the libs then.
Good luck
Albrecht
-----Ursprüngliche Nachricht-----
Von: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] Im Auftrag von Xyber Blue
Gesendet: Dienstag, 30. August
2005 04:16
An: gtk-list gnome org
Betreff: Error Occured during
cross compiling atk and pango..
Hi Guys,
Im very new to cross compiling and currently, I successfully cross compiled
glib for my FRV machine. I have already binaries for my cross compilers and
successfully cross compiled severals programs already.
By the way, I got an error while Im trying to cross compile pango for my target
board. The same error I've got when I try to cross compile atk. The pango I
install is the dependency for Gtk and this is the next package I am going to
cross compile. I used the following configuration options when cross compiling.
Setting environment variables:
TARGET=frv-linux-gnu
export
LD_LIBRARY_PATH=/opt/rootfs-glibc-frv-040820-3/usr/local/lib:/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/lib:$LD_LIBRARY_PATH
export CC=frv-linux-gnu-gcc
export AR=frv-linux-gnu-ar
export AS=frv-linux-gnu-as
export LD=frv-linux-gnu-ld
export RANLIB=frv-linux-gnu-ranlib
export STRIP=frv-linux-gnu-strip
export OBJDUMP=frv-linux-gnu-objdump
export NM=frv-linux-gnu-nm
export PKG_CONFIG_PATH="/opt/rootfs-glibc-frv-040820-3/usr/local/lib/pkgconfig"
export
FREETYPE_CONFIG="/opt/rootfs-glibc-frv-040820-3/usr/x11r6/bin/freetype-config"
export
GLIB_MKENUMS="/opt/rootfs-glibc-frv-040820-3/usr/local/bin/glib-mkenums"
export GLIB_GENMARSHAL="/opt/rootfs-glibc-frv-040820-3/usr/local/bin/glib-genmarshal"
export
GOBJECT_QUERY="/opt/rootfs-glibc-frv-040820-3/usr/local/bin/gobject-query"
Pango configuration:
./configure --prefix=/opt/rootfs-glibc-frv-040820-3/usr/local
--host=frv-linux-gnu --build=i686-pc-linux-gnu --enable-static=yes
--x-includes=/opt/rootfs-glibc-frv-040820-3/usr/X11R6/include
--x-libraries=/opt/rootfs-glibc-frv-040820-3/usr/X11R6/lib
--with-qt=no/usr/X11R6/include --x-libraries
Error messages:
frv-linux-gnu-gcc -shared .libs/break.o .libs/fonts.o .libs/glyphstring.o
.libs
/mapping.o .libs/modules.o .libs/pango-attributes.o .libs/pango-color.o
.libs/pa
ngo-context.o .libs/pango-coverage.o .libs/pango-fontmap.o
.libs/pango-fontset.o
.libs/pango-glyph-item.o .libs/pango-intset.o .libs/pango-item.o
.libs/pango-la
yout.o .libs/pango-markup.o .libs/pango-tabs.o .libs/pango-utils.o
.libs/reorder
-items.o .libs/shape.o .libs/pango-enum-types.o -Wl,--whole-archive
mini-fribidi
/.libs/libmini-fribidi.a -Wl,--no-whole-archive -lgobject-2.0
-lgmodule-2.0 -ld
l -lglib-2.0 -Wl,--export-dynamic -Wl,-soname -Wl,libpango-1.0.so.0 -o
.libs/li
bpango-1.0.so.0.200.5
/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/bin/../lib/gcc/frv-linux-gnu/3.
4-frv-040820-3/../../../../frv-linux-gnu/bin/ld: cannot find -lgobject-2.0
collect2: ld returned 1 exit status
make[3]: *** [libpango-1.0.la] Error 1
make[3]: Leaving directory
`/vnj/gtk-files/univiewer-gtk/pango-1.2.5-build/pango
'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/vnj/gtk-files/univiewer-gtk/pango-1.2.5-build/pango
'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vnj/gtk-files/univiewer-gtk/pango-1.2.5-build'
make: *** [all-recursive-am] Error 2
Does anyone encounter this kind of problem? Please let me know if you have an
idea.
Thanks Guys...
Configuration messages are the following:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for frv-linux-gnu-gcc... frv-linux-gnu-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether frv-linux-gnu-gcc accepts -g... yes
checking for frv-linux-gnu-gcc option to accept ANSI C... none needed
checking for c++... c++
checking for frv-linux-gnu-g++... (cached) c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking build system type... i686-pc-linux-gnu
checking host system type... frv-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by frv-linux-gnu-gcc...
/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld
checking if the linker
(/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld) is GNU
ld... yes
checking for /opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld
option to reload object files... -r
checking for BSD-compatible nm...
/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/bin/frv-linux-gnu-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic ELF [0-9][0-9]*-bit
[LM]SB (shared object|dynamic lib )
checking how to run the C preprocessor... frv-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... c++ -E
checking for frv-linux-gnu-g77... no
checking for frv-linux-gnu-f77... no
checking for frv-linux-gnu-xlf... no
checking for frv-linux-gnu-frt... no
checking for frv-linux-gnu-pgf77... no
checking for frv-linux-gnu-fl32... no
checking for frv-linux-gnu-af77... no
checking for frv-linux-gnu-fort77... no
checking for frv-linux-gnu-f90... no
checking for frv-linux-gnu-xlf90... no
checking for frv-linux-gnu-pgf90... no
checking for frv-linux-gnu-epcf90... no
checking for frv-linux-gnu-f95... no
checking for frv-linux-gnu-fort... no
checking for frv-linux-gnu-xlf95... no
checking for frv-linux-gnu-lf95... no
checking for frv-linux-gnu-g95... no
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/bin/frv-linux-gnu-nm
-B output from frv-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for frv-linux-gnu-ar... frv-linux-gnu-ar
checking for frv-linux-gnu-ranlib... frv-linux-gnu-ranlib
checking for frv-linux-gnu-strip... frv-linux-gnu-strip
checking for frv-linux-gnu-file... no
checking for file... /usr/bin/file
checking if frv-linux-gnu-gcc static flag works... yes
checking if frv-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for frv-linux-gnu-gcc option to produce PIC... -fPIC
checking if frv-linux-gnu-gcc PIC flag -fPIC works... yes
checking if frv-linux-gnu-gcc supports -c -o file.o... yes
checking whether the frv-linux-gnu-gcc linker
(/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by c++...
/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld
checking if the linker
(/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld) is GNU
ld... yes
checking whether the c++ linker (/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld)
supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker
(/opt/gnu/frv-040820-3/H-i686-pc-linux-gnulibc2.2/frv-linux-gnu/bin/ld)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for some Win32 platform... no
checking for native Win32... no
checking for perl5... no
checking for perl... perl
checking for X... libraries /opt/rootfs-glibc-frv-040820-3/usr/X11R6/lib,
headers /opt/rootfs-glibc-frv-040820-3/usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... /usr/bin/pkg-config
checking for fontconfig >= 1.0.1... yes
checking FONTCONFIG_CFLAGS...
checking FONTCONFIG_LIBS... -lfontconfig
checking for freetype-config... /opt/rootfs-glibc-frv-040820-3/usr/X11R6/bin/freetype-config
checking for FT_Get_Next_Char in -lfreetype... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.1.3... cross compiling; assumed OK...
yes (version 2.2.1)
checking Whether to build OpenType test programs... yes
checking modules to link statically...
checking for flockfile... yes
checking for strtok_r... yes
checking for gtkdoc-mkdb... true
checking gtk-doc version (0.10) >= 0.10... yes
checking for db2html... true
checking Whether to write dependencies into .pc files... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for unistd.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pango/Makefile
config.status: creating pango/mini-fribidi/Makefile
config.status: creating pango/opentype/Makefile
config.status: creating pango/pango.rc
config.status: creating pango/pangoft2.rc
config.status: creating pango/pangowin32.rc
config.status: creating modules/Makefile
config.status: creating modules/arabic/Makefile
config.status: creating modules/basic/Makefile
config.status: creating modules/hangul/Makefile
config.status: creating modules/indic/Makefile
config.status: creating modules/tamil/Makefile
config.status: creating modules/thai/Makefile
config.status: creating modules/hebrew/Makefile
config.status: creating examples/Makefile
config.status: creating docs/Makefile
config.status: creating docs/version.xml
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/runtests.sh
config.status: creating pango.pc
config.status: creating pangox.pc
config.status: creating pangowin32.pc
config.status: creating pangoft2.pc
config.status: creating pangoxft.pc
config.status: creating pango-uninstalled.pc
config.status: creating pangox-uninstalled.pc
config.status: creating pangowin32-uninstalled.pc
config.status: creating pangoft2-uninstalled.pc
config.status: creating pangoxft-uninstalled.pc
config.status: creating pango-zip.sh
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: executing default-2 commands
config.status: executing default commands
configuration:
backends: X