Boost logo

Boost-Build :

Subject: [Boost-build] Build Boost on WINCE
From: frisch (frischzenger_at_[hidden])
Date: 2009-12-07 03:21:17


I am newbie to build boost for windows CE. I want to know how to get start to
build boost on wince , My boost version is 1.39 which downloaded from
boost.org,
and my compiler is VC9.0, and Windows Mobile 5.0 Pocket PC SDK
The question is how to configure the jam file and batch files:
i use the batch from:
http://old.nabble.com/How-to-perform-the-VeecoFTC-test,-Thanks:)-td23136447.html
i modied VsVars-vc8-wm5.bat to:
==========================================================
@SET VS8INSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
@SET STLPORT_PATH=C:\STLPort5.2.1
@SET CETOOLS=C:\Program Files\Windows CE Tools\wce500
@SET VCINSTALLDIR=%VS8INSTALLDIR%\VC
set BOOST_ROOT=C:\Boost
@if "%VS8INSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR

@echo Setting environment for using Microsoft Visual Studio 2008 tools for
WM5.
@set TARGETCPU=X86

@call :GetWindowsSdkDir

@if not "%WindowsSdkDir%" == "" (
        set "PATH=%WindowsSdkDir%bin;%PATH%"
)

@rem
@rem Root of Visual Studio IDE installed files.
@rem
@set DevEnvDir=%VS8INSTALLDIR%\Common7\IDE

@set
PATH=%VCINSTALLDIR%\CE\bin\x86_arm;%VCINSTALLDIR%\bin;%VS8INSTALLDIR%\Common7\Tools;%DevEnvDir%;%VS8INSTALLDIR%\Common7\Tools\bin;%VS8INSTALLDIR%;%PATH%
@set
INCLUDE=%STLPORT_PATH%\stlport;%VCINSTALLDIR%\ce\include;%CETOOLS%\Windows
Mobile 5.0 Pocket PC SDK\include\ARMV4I;%CETOOLS%\Windows Mobile 5.0 Pocket
PC SDK\include;%VCINSTALLDIR%\ce\atlmfc\include
@set LIB=%STLPORT_PATH%\lib\evc8-arm;%CETOOLS%\Windows Mobile 5.0 Pocket PC
SDK\lib\ARMV4I;%VCINSTALLDIR%\ce\ATLMFC\LIB\ARMV4I;%VCINSTALLDIR%\ce\LIB\ARMV4I
@set LIBPATH=

@goto end

:GetWindowsSdkDir
@call :GetWindowsSdkDirHelper HKLM > nul 2>&1
@if errorlevel 1 call :GetWindowsSdkDirHelper HKCU > nul 2>&1
@if errorlevel 1 set WindowsSdkDir=%VCINSTALLDIR%\PlatformSDK\
@exit /B 0

:GetWindowsSdkDirHelper
@for /F "tokens=1,2*" %%i in ('reg query "%1\SOFTWARE\Microsoft\Microsoft
SDKs\Windows" /v "CurrentInstallFolder"') DO (
        if "%%i"=="CurrentInstallFolder" (
                SET "WindowsSdkDir=%%k"
        )
)
@if "%WindowsSdkDir%"=="" exit /B 1
@exit /B 0

:error_no_VSINSTALLDIR
@echo ERROR: VS8INSTALLDIR variable is not set.
@goto end

:error_no_VCINSTALLDIR
@echo ERROR: VCINSTALLDIR variable is not set.
@goto end

:end

=====================================================
and use-config.jam from:
http://www.boost.org/development/tests/trunk/VeecoFTC.html
i modified the use-config.jam to fit my machine

# Copyright 2003, 2005 Douglas Gregor
# Copyright 2004 John Maddock
# Copyright 2002, 2003, 2004, 2007 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or
http://www.boost.org/LICENSE_1_0.txt)

# This file is used to configure your Boost.Build installation. You can
modify
# this file in place, or you can place it in a permanent location so that it
# does not get overwritten should you get a new version of Boost.Build. See:
#
#
http://boost.org/boost-build2/doc/html/bbv2/reference.html#bbv2.reference.init
#
# for documentation about possible permanent locations.

# This file specifies which toolsets (C++ compilers), libraries, and other
# tools are available. Often, you should be able to just uncomment existing
# example lines and adjust them to taste. The complete list of supported
tools,
# and configuration instructions can be found at:
#
# http://boost.org/boost-build2/doc/html/bbv2/reference/tools.html
#

# This file uses Jam language syntax to describe available tools. Mostly,
# there are 'using' lines, that contain the name of the used tools, and
# parameters to pass to those tools -- where paremeters are separated by
# semicolons. Important syntax notes:
#
# - Both ':' and ';' must be separated from other tokens by whitespace
# - The '\' symbol is a quote character, so when specifying Windows paths
you
# should use '/' or '\\' instead.
#
# More details about the syntax can be found at:
#
#
http://boost.org/boost-build2/doc/html/bbv2/advanced.html#bbv2.advanced.jam_language
#

# ------------------
# GCC configuration.
# ------------------

# Configure gcc (default version).
# using gcc ;

# Configure specific gcc version, giving alternative name to use.
# using gcc : 3.2 : g++-3.2 ;

# -------------------
# MSVC configuration.
# -------------------

# Configure msvc (default version, searched for in standard locations and
PATH).
# using msvc ;

# Configure specific msvc version (searched for in standard locations and
PATH).
# using msvc : 8.0 ;

# ----------------------
# Borland configuration.
# ----------------------
# using borland ;

# ----------------------
# STLPort configuration.
# ----------------------

# Configure specifying location of STLPort headers. Libraries must be
either
# not needed or available to the compiler by default.
# using stlport : : /usr/include/stlport ;

# Configure specifying location of both headers and libraries explicitly.
# using stlport : : /usr/include/stlport /usr/lib ;

# -----------------
# QT configuration.
# -----------------

# Configure assuming QTDIR gives the installation prefix.
# using qt ;

# Configure with an explicit installation prefix.
# using qt : /usr/opt/qt ;

using msvc : 8.0~stlport5.2 :
"C:/Program Files/Microsoft Visual Studio 8.0/VC/bin/cl.exe" :
<compileflags>-D_CRT_SECURE_NO_WARNINGS
<compileflags>-DBOOST_PROTO_MAX_ARITY=10
<compileflags>-DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
<compileflags>-DBOOST_MPL_LIMIT_METAFUNCTION_ARITY=10
<setup>"%BOOST_ROOT%/TestTools/VSVars32-VC8-STLPort.bat" ;

using msvc : 8.0~wm5~stlport5.2 :
"C:/Program Files/Microsoft Visual Studio 8.0/VC/bin/cl.exe" :
<compileflags>-D_CRT_SECURE_NO_WARNINGS
<compileflags>-DBOOST_PROTO_MAX_ARITY=10
<compileflags>-DBOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
<compileflags>-DBOOST_MPL_LIMIT_METAFUNCTION_ARITY=10
<compileflags>-D_WIN32_WCE=0x501
<compileflags>-DUNDER_CE
<compileflags>-DWIN32_WCE_PSPC
<compileflags>-DWINCE
<compileflags>-DARM
<compileflags>-D_ARM_
<compileflags>-D_UNICODE
<compileflags>-DUNICODE
<compileflags>-DARMV4I
<linkflags>/subsystem:windowsce,5.01
<linkflags>/machine:THUMB
<linkflags>/NODEFAULTLIB:oldnames.lib
<linkflags>/NODEFAULTLIB:libc.lib
<linkflags>/STACK:262144,4096
<linkflags>coredll.lib
<linkflags>corelibc.lib
<linkflags>ole32.lib
<linkflags>oleaut32.lib
<linkflags>uuid.lib
<linkflags>commctrl.lib
<setup>"%BOOST_ROOT%/TestTools/VSVars32-VC8-WM5.bat" ;

using stlport : 5.2~vc8 :
C:/STLPort-5.2.1/stlport :
C:/STLPort-5.2.1/lib/vc8 C:/STLPort-5.2.1/bin/vc8 ;

using stlport : 5.2~evc8~arm :
C:/STLPort-5.2.1/stlport :
C:/STLPort-5.2.1/lib/evc8-arm C:/STLPort-5.2.1/bin/evc8-arm ;

import testing ;

project
: requirements
<toolset>msvc-8.0~wm5~stlport5.2,<user-interface>console:<exelinkflags>/entry:mainACRTStartup
<toolset>msvc-8.0~wm5~stlport5.2:<testing.launcher>"%BOOST_ROOT%/TestTools/WM5TestLauncher.exe"
;

i use the command line :
bjam --without-python --without-math --without-wave --without-graph
--build-type=complete toolset=msvc-8.0~wm5~stlport5.2
stdlib=stlport-5.2~evc8~mips --prefix="d:\boost_1_39_0" install > bjam.log
 

and i get the error:
F:/boost_1_39_0/boost_1_39_0/tools/build/v2/build\toolset.jam:38: in
toolset.using
*** argument error
* rule stlport.init ( version ? : headers libraries * )
* called with: ( 5.2~vc8 : C:/STLPort-5.2.1/stlport :
C:/STLPort-5.2.1/lib/vc8 C:/STLPort-5.2.1/bin/vc8 : : : : : )
* extra argument C:/STLPort-5.2.1/lib/vc8
F:/boost_1_39_0/boost_1_39_0/tools/build/v2/tools\stlport.jam:290:see
definition of rule 'init' being called
F:/boost_1_39_0/boost_1_39_0/tools/build/v2/build\project.jam:874: in using
F:\boost_1_39_0\boost_1_39_0\tools/build/v2\user-config.jam:126: in
modules.load
F:/boost_1_39_0/boost_1_39_0/tools/build/v2\build-system.jam:241: in
load-config
F:/boost_1_39_0/boost_1_39_0/tools/build/v2\build-system.jam:383: in
load-configuration-files
F:/boost_1_39_0/boost_1_39_0/tools/build/v2\build-system.jam:538: in load
F:\boost_1_39_0\boost_1_39_0\tools\build\v2/kernel\modules.jam:283: in
import
F:\boost_1_39_0\boost_1_39_0\tools\build\v2\kernel\bootstrap.jam:138: in
boost-build
F:\boost_1_39_0\boost_1_39_0\boost-build.jam:16: in module scope

thanks for ur help!

-- 
View this message in context: http://old.nabble.com/Build-Boost-on-WINCE-tp26673989p26673989.html
Sent from the Boost - Build mailing list archive at Nabble.com.

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk