Hi developers:

I'm cross compiling e2fsprogs because I need libraries into it for and
android tool I'm developing. I know I've to run command:

../configure --host="arm-linux-gnueabi"  --enable-elf-shlibs

Here all is OK.

Then, I run  make && make install && make install-libs and know errors
are found. Here the output:

[sbox-armv7: ~/e2fsprogs-1.41.14/build] > make install-libs
making install in lib/et
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
et'
        MKINSTALLDIRS /lib /usr/lib
        INSTALL-ELF-LIB /lib/libcom_err.so.2.1
        SYMLINK /lib/libcom_err.so.2
        SYMLINK /usr/lib/libcom_err.so
        LDCONFIG
        SUBST compile_et
        MKINSTALLDIRS /usr/lib /usr/include/et /usr/share/et /usr/bin /usr/
share/man/man1 /usr/share/man/man3
        INSTALL_DATA /usr/lib/libcom_err.a
        INSTALL_DATA /usr/include/et/com_err.h
        INSTALL_DATA /usr/share/et/et_c.awk
        INSTALL_DATA /usr/share/et/et_h.awk
        INSTALL_SCRIPT /usr/bin/compile_et
        INSTALL_DATA /usr/share/man/man3/com_err.3
        INSTALL_DATA /usr/share/man/man1/compile_et.1
        INSTALL_DATA /usr/lib/pkgconfig/com_err.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
et'
making install in lib/ss
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ss'
        SUBST mk_cmds
        MKINSTALLDIRS /lib /usr/lib
        INSTALL-ELF-LIB /lib/libss.so.2.0
        SYMLINK /lib/libss.so.2
        SYMLINK /usr/lib/libss.so
        LDCONFIG
        MKINSTALLDIRS /usr/lib /usr/include/ss /usr/share/ss /usr/bin
        INSTALL_DATA /usr/lib/libss.a
        INSTALL_DATA /usr/include/ss/ss.h
        INSTALL_DATA /usr/include/ss/ss_err.h
        INSTALL_DATA /usr/share/ss/ct_c.awk
        INSTALL_DATA /usr/share/ss/ct_c.sed
        INSTALL /usr/bin/mk_cmds
        INSTALL_DATA /usr/share/man/man1/mk_cmds.1
        INSTALL_DATA /usr/lib/pkgconfig/ss.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ss'
making install in lib/e2p
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
e2p'
        MKINSTALLDIRS /lib /usr/lib
        INSTALL-ELF-LIB /lib/libe2p.so.2.3
        SYMLINK /lib/libe2p.so.2
        SYMLINK /usr/lib/libe2p.so
        LDCONFIG
        MKINSTALLDIRS /usr/lib /usr/include/e2p
        INSTALL_DATA /usr/lib/libe2p.a
        INSTALL_DATA /usr/include/e2p/e2p.h
        INSTALL_DATA /usr/lib/pkgconfig/e2p.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
e2p'
making install in lib/uuid
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
uuid'
        MKINSTALLDIRS /lib /usr/lib
        INSTALL-ELF-LIB /lib/libuuid.so.1.2
        SYMLINK /lib/libuuid.so.1
        SYMLINK /usr/lib/libuuid.so
        LDCONFIG
        MKINSTALLDIRS /usr/lib /usr/include/uuid /usr/share/man/man3
        INSTALL_DATA /usr/lib/libuuid.a
        INSTALL_DATA /usr/include/uuid/uuid.h
        INSTALL_DATA /usr/share/man/man3/uuid.3
        INSTALL_DATA /usr/share/man/man3/uuid_clear.3
        INSTALL_DATA /usr/share/man/man3/uuid_compare.3
        INSTALL_DATA /usr/share/man/man3/uuid_copy.3
        INSTALL_DATA /usr/share/man/man3/uuid_generate.3
        INSTALL_DATA /usr/share/man/man3/uuid_is_null.3
        INSTALL_DATA /usr/share/man/man3/uuid_parse.3
        INSTALL_DATA /usr/share/man/man3/uuid_time.3
        INSTALL_DATA /usr/share/man/man3/uuid_unparse.3
        LINK /usr/share/man/man3/uuid_generate_random.3
        LINK /usr/share/man/man3/uuid_generate_time.3
        INSTALL_DATA /usr/lib/pkgconfig/uuid.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
uuid'
making install in lib/ext2fs
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ext2fs'
        SUBST ext2_err.et
        MKINSTALLDIRS /lib /usr/lib
        INSTALL-ELF-LIB /lib/libext2fs.so.2.4
        SYMLINK /lib/libext2fs.so.2
        SYMLINK /usr/lib/libext2fs.so
        LDCONFIG
        MKINSTALLDIRS /usr/lib /usr/include/ext2fs
        INSTALL_DATA /usr/lib/libext2fs.a
        INSTALL_DATA /usr/include/ext2fs/bitops.h
        INSTALL_DATA /usr/include/ext2fs/ext2fs.h
        INSTALL_DATA /usr/include/ext2fs/ext2_io.h
        INSTALL_DATA /usr/include/ext2fs/ext2_fs.h
        INSTALL_DATA /usr/include/ext2fs/ext2_ext_attr.h
        INSTALL_DATA /usr/include/ext2fs/ext3_extents.h
        INSTALL_DATA /usr/include/ext2fs/tdb.h
        INSTALL_DATA /usr/include/ext2fs/ext2_err.h
        INSTALL_DATA /usr/include/ext2fs/ext2_types.h
        INSTALL_DATA /usr/lib/pkgconfig/ext2fs.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
ext2fs'
making install in lib/blkid
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
blkid'
        MKINSTALLDIRS /lib /usr/lib
        INSTALL-ELF-LIB /lib/libblkid.so.1.0
        SYMLINK /lib/libblkid.so.1
        SYMLINK /usr/lib/libblkid.so
        LDCONFIG
        MKINSTALLDIRS /usr/lib /usr/include/blkid
        INSTALL_DATA /usr/lib/libblkid.a
        INSTALL_DATA /usr/include/blkid/blkid.h
        INSTALL_DATA /usr/include/blkid/blkid_types.h
        INSTALL_DATA /usr/share/man/man3/libblkid.3
        INSTALL_DATA /usr/lib/pkgconfig/blkid.pc
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/lib/
blkid'
making install in intl
make[1]: Entering directory `/home/mainu/e2fsprogs-1.41.14/build/intl'
if test 'no' = yes; then \
          test yes != no || /bin/sh ../../config/mkinstalldirs /usr/lib; \
          temp=/usr/lib/t-charset.alias; \
          dest=/usr/lib/charset.alias; \
          if test -f /usr/lib/charset.alias; then \
            orig=/usr/lib/charset.alias; \
            sed -f ref-add.sed $orig > $temp; \
            /scratchbox/tools/bin/install -c -m 644 $temp $dest; \
            rm -f $temp; \
          else \
            if test yes = no; then \
              orig=charset.alias; \
              sed -f ref-add.sed $orig > $temp; \
              /scratchbox/tools/bin/install -c -m 644 $temp $dest; \
              rm -f $temp; \
            fi; \
          fi; \
          /bin/sh ../../config/mkinstalldirs /usr/share/locale; \
          test -f /usr/share/locale/locale.alias \
            && orig=/usr/share/locale/locale.alias \
            || orig=../../intl/locale.alias; \
          temp=/usr/share/locale/t-locale.alias; \
          dest=/usr/share/locale/locale.alias; \
          sed -f ref-add.sed $orig > $temp; \
          /scratchbox/tools/bin/install -c -m 644 $temp $dest; \
          rm -f $temp; \
        else \
          : ; \
        fi
make[1]: Leaving directory `/home/mainu/e2fsprogs-1.41.14/build/intl'

As you can see, we get .so.X files, .a files, etc..

Now I've to compile sources of the tool I'm developing and these
sources have dependencies to these libraries from e2fsprogs.

Well, my problem is it seems these libraries are compiled dynamically
because with "--enable-elf-shlibs"  parameter we cant compile
statically.

So, I've read after build e2fsprogs dinamically we have to link .so
files with "arm-linux-gnueabi-ld" but I dont know exactly how to make
this.

When I get these libraries compiled, I've to build the sources of the
tool I'm developing but when the tool is compiled I dont know what
files are required to be copied to /system/lib in android device.

Many tutorials are making reference to cross compiling with  -static
flag but dynamic compilation is more complicated.

Please, help me!! I'm very lost!

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to