On Sun, Jan 22, 2012 at 1:05 PM, Andy Yew <[email protected]> wrote: > Hi all, > > Has anyone successfully build/LTIB Gutenprint?
Gutenprint is one of those that are not cross-compile friendly (after taking a brief look at it). It requires running a just built "extract-strings" on the host, but it does not appear differentiate between "build" and "host". There are a couple options to get around this. One is to check to see this is an optional component for what it will be used for and possible just exclude that part of the build (extract-strings is under xmli18n, which looks like xml + internationalization). If you can exclude that part of the build by using an argument to configure, this is the easiest. The option Stuart is referring to is that some sources understand that host are build are separate systems and allow you to pass in a variable to the build system such as HOSTCC. Many of the packages use this as pointed out in a separate email. Another option is to build and install Gutenprint as part of the host packages (ltib/config/platforms/host/). This will still require modifying the build slightly to modify the call for ./extract-strings to something that is in the path (sorry, I haven't had to do this myself, so not sure of the requirements) > Here are the log file of "./ltib -m scbuild -p gutenprint.spec" and the > .spec file i've generated from template. > > It seems like there's slight problem running binary file within the > building/making process. It's trying to run the binary and generate the > xmli18n-tmp.h file in /src/xml folder. > > Any idea to suppress this kind of problem where make process involves > running binary programs to generate data?? > > Here's the snapshot of the last few lines showing making error: > ###################################################################################################### > make[5]: Entering directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src/xml/escp2' > make[5]: Nothing to be done for `all-am'. > make[5]: Leaving directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src/xml/escp2' > make[4]: Leaving directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src/xml/escp2' > make[4]: Entering directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src/xml' > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -Wall > -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations > -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration > -Winline -Wformat=2 -finline-limit=131072 -Disfinite=finite -O6 -MT > extract-strings.o -MD -MP -MF .deps/extract-strings.Tpo -c -o > extract-strings.o extract-strings.c > mv -f .deps/extract-strings.Tpo .deps/extract-strings.Po > /bin/bash ../../libtool --tag=CC --mode=link gcc -Disfinite=finite -O6 > -o extract-strings extract-strings.o ../../src/main/libgutenprint.la > libtool: link: gcc -Disfinite=finite -O6 -o .libs/extract-strings > extract-strings.o ../../src/main/.libs/libgutenprint.so -lm > rm -f xmli18n-tmp.h xmli18n-tmp.h.tmp > ./extract-strings `cat xml-stamp | sed -e 's;^;./;'` > xmli18n-tmp.h.tmp > make[4]: Leaving directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src/xml' > make[3]: Leaving directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src/xml' > make[2]: Leaving directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8/src' > make[1]: Leaving directory > `/home/hongjet-vm1/ltib/rpm/BUILD/gutenprint-5.2.8' > > RPM build errors: > Build time for gutenprint: 41 seconds > ###################################################################################################### > > Regards > Andy > > > _______________________________________________ > LTIB home page: http://ltib.org > > Ltib mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/ltib > _______________________________________________ LTIB home page: http://ltib.org Ltib mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ltib
