Boost logo

Boost Users :

Subject: [Boost-users] error: unicode/uversion.h: No such file building Boost 1.44.0
From: Robert McCullough (proengin13_at_[hidden])
Date: 2010-09-24 15:14:53


Hi,

I am trying to cross-compile Boost 1.44.0 for a powerpc on my Fedora 13 x86
workstation.

I have written a bash build script do this build. It has worked fine for
previous version of boost.
i.e. 1.37.0, 1.40.0, 1.43.0
But when I tried to build 1.44.0 I get the following errors.

libs/regex/build/has_icu_test.cpp:12:30: error: unicode/uversion.h: No such
file or directory
libs/regex/build/has_icu_test.cpp:13:28: error: unicode/utypes.h: No such
file or directory
libs/regex/build/has_icu_test.cpp:14:27: error: unicode/uchar.h: No such
file or directory
libs/regex/build/has_icu_test.cpp:15:26: error: unicode/coll.h: No such file
or directory
libs/regex/build/has_icu_test.cpp:26:2: warning: no newline at end of file
libs/regex/build/has_icu_test.cpp: In function 'int main()':
libs/regex/build/has_icu_test.cpp:23: error: 'UErrorCode' was not declared
in this scope
libs/regex/build/has_icu_test.cpp:23: error: expected `;' before 'err'
libs/regex/build/has_icu_test.cpp:24: error: 'UChar32' was not declared in
this scope
libs/regex/build/has_icu_test.cpp:24: error: expected `;' before 'c'
libs/regex/build/has_icu_test.cpp:25: error: 'err' was not declared in this
scope
...failed updating 1 target...
Performing configuration checks

Here is my build script:

#!/bin/sh

##
# Builds boost.
##
BOOST_VER=boost_1_44_0
BJAM_VER=boost-jam-3.1.18
BUILD_BJAM_LOG=build-ppc_6xx_BJAM.log
BOOST_DEBUG_BUILD=ppc_6xx_build_debug
BOOST_DEBUG_INSTALL=ppc_6xx_install_debug
BUILD_DEBUG_LOG=build-ppc_6xx_debug.log
BOOST_REL_BUILD=ppc_6xx_build_rel
BOOST_REL_INSTALL=ppc_6xx_install_rel
BUILD_REL_LOG=build-ppc_6xx_rel.log
LIB_DEBUG=lib/ppc_6xx/${BOOST_VER}/debug/
LIB_REL=lib/ppc_6xx/${BOOST_VER}/release/

echo "Extracting Boost version " ${BOOST_VER} " ..."
tar -jxf ${BOOST_VER}.tar.bz2

echo "Copying patch file ./basic_binary_iarchive.ipp to
./"${BOOST_VER}"/boost/archive/impl"
cp ./basic_binary_iarchive.ipp ./${BOOST_VER}/boost/archive/impl

echo "Extracting Boost Jam version " ${BJAM_VER} " ..."
tar -zxf ${BJAM_VER}.tgz

echo "Building Boost Jam version " ${BJAM_VER} " ..."
cd ${BJAM_VER}
./build.sh >../${BUILD_BJAM_LOG} 2>&1
cd ..

echo "Copying Boost Jam to "./${BOOST_VER}" ..."
cp ./${BJAM_VER}/bin.linuxx86/bjam ./${BOOST_VER}

cd ${BOOST_VER}

echo "using gcc : 4.2.2 : /opt/eldk-4.2/usr/bin/ppc_6xx-g++ ; " >
tools/build/v2/user-config.jam

echo "Building debug version of "${BOOST_VER}" into
./"${BOOST_DEBUG_INSTALL}" ..."
./bjam -q -d0 debug \
--toolset=gcc \
threading=multi \
address-model=32 \
--with-date_time \
--with-filesystem \
--with-graph \
--with-program_options \
--with-regex \
--with-serialization \
--with-system \
--with-thread \
--build-dir=../${BOOST_DEBUG_BUILD} \
--prefix=../${BOOST_DEBUG_INSTALL} \
install >../${BUILD_DEBUG_LOG} 2>&1

echo "Building release version of "${BOOST_VER}" into
./"${BOOST_REL_INSTALL}" ..."
./bjam -q -d0 release \
--toolset=gcc \
link=static \
threading=multi \
address-model=32 \
--with-date_time \
--with-filesystem \
--with-graph \
--with-program_options \
--with-regex \
--with-serialization \
--with-system \
--with-thread \
--build-dir=../${BOOST_REL_BUILD} \
--prefix=../${BOOST_REL_INSTALL} \
install >../${BUILD_REL_LOG} 2>&1
#--layout=system \
#'-sBUILD=release static multi/single' \
#link=static \
#--with-thread --with-signals --with-filesystem \

cd ..

I have seen that other people have had similar problems. See here.
http://lists.boost.org/boost-users/2010/09/62265.php
But I have not been able to fix it.
Any ideas.

Thanks
Rob



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net