In ltib, I can compile all package provided by ltib release L2.6.35_10.11.01_ER_source_bundle.tar.gz, it can generate a rootfs directory.
But, this time, Provided the rootfs is not exist. I create a new package, for example vmware-open-client, I got source tar, and create the spec, I run ./ltib -m prep -p vmware-open-client, it is ok.
next step, ./ltib -m scbuild -p vmware-open-client, it can not work:
czy@czy-virtual-machine:~/imx51/ltib$ ./ltib -m scbuild vmware-open-client
The options prep, scbuild, scinstall and scdeploy are only allowed when working
on a single package, not a list. You need to supply the option -p|--pkg <pkg>
czy@czy-virtual-machine:~/imx51/ltib$ ./ltib -m scbuild -p vmware-open-client
Processing: vmware-open-client
================================
Build path taken because: directory build, build key set, no prebuilt rpm,
rpmbuild --dbpath /home/czy/imx51/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/czy/imx51/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/czy/imx51/ltib/tmp' --define '_rpmdir /home/czy/imx51/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/czy/imx51/ltib/dist/lfs-5.1/vmware-open-client/vmware-open-client.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/czy/imx51/ltib/tmp/rpm-tmp.60960
+ umask 022
+ cd /home/czy/imx51/ltib/rpm/BUILD
+ cd vmware-open-client-4.5.0
+ ./configure --prefix=/usr --host=arm-linux --build=i686-pc-linux-gnu
Configuring VMware-view-open-client 4.5.0-297975
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking which interface to build... Gtk+
checking for arm-linux-pkg-config... no
checking for pkg-config... /opt/freescale/ltib/usr/bin/pkg-config
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.6.0 gmodule-2.0 >= 2.6.0) were not met:
No package 'glib-2.0' found
No package 'gmodule-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
error: Bad exit status from /home/czy/imx51/ltib/tmp/rpm-tmp.60960 (%build)
RPM build errors:
Bad exit status from /home/czy/imx51/ltib/tmp/rpm-tmp.60960 (%build)
Build time for vmware-open-client: 1 seconds
Failed building vmware-open-client
f_scbuild() returned an error, exiting
traceback:
main:560
Exiting on error or interrupt
I want to know the following 2 tips:
No package 'glib-2.0' found
No package 'gmodule-2.0' found
how to solve it, I need to build and install glib-2.0 and gmodule-2.0 using ltib, and when they are in rootfs/usr/lib or some other directory?
Hello, zhiayn!
Unfortunally LTIB not supported package depends, you should be build if manually before target package.
Hi,
Adding a new package can be a pain, because it involves installing its dependencies as you have found out. Perhaps you already know how to create a .spec file, but take a look at this link
http://ltib.org/documentation-LtibFaq#ref_89
Leo
vmware-open-client configure file check some header file, such as wchar.h, unicode/uidna.h;
wchar.h check is ok,
but unicode/uidna.h is not;
tips:
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for SYS_setuid32... yes
checking for the new format of iconv... yes
checking whether sys/ucontext.h defines REG_EAX... no
checking unicode/uidna.h usability... no
checking unicode/uidna.h presence... no
checking for unicode/uidna.h... no
configure: error: libicu is required, but not found. Check config.log for details.
where to find the header file when configure is running?
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/include/
is right?
But wchar.h is ok, I copy unicode directory to the above dir, but configure can not find it.