Quantcast

Building Boost for Windows CE

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Building Boost for Windows CE

Daniel Lidström
Hello,

I am interested in building boost for a few Windows CE platforms.
This question has been asked before, but there doesnt' seem to be
any information about where to start. From what I read in old posts
here, the compiler to select looks something like this:

toolset=msvc-9.0~wm6

What do I need to do to configure such a compiler? Can it be auto-detected?
I already have STLport compiled for all platforms I need.

Any help would be much appreciated!

Regards,

Daniel Lidström
Stockholm, Sweden
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Building Boost for Windows CE

Vladimir Prus
On Monday 16 March 2009 19:24:35 Daniel Lidström wrote:

> Hello,
>
> I am interested in building boost for a few Windows CE platforms.
> This question has been asked before, but there doesnt' seem to be
> any information about where to start. From what I read in old posts
> here, the compiler to select looks something like this:
>
> toolset=msvc-9.0~wm6
>
> What do I need to do to configure such a compiler? Can it be auto-detected?
> I already have STLport compiled for all platforms I need.
>
> Any help would be much appreciated!

This configuration (or similar) is included in C++ Boost tests, and if you
click on the tester, you should see the user-config.jam that is being used.

HTH,
Volodya

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Building Boost for Windows CE

Daniel Lidström
In reply to this post by Daniel Lidström
> This configuration (or similar) is included in C++ Boost
> tests, and if you
> click on the tester, you should see the user-config.jam that
> is being used.
>
> HTH,
> Volodya

Hello Volodya,

there is only one user-config.jam in Boost-1.38:
Daniel-PC:/cygdrive/c/Users/Daniel.SBG/Programming/boost_1_38_0> find .
-name "*.jam" | grep user
./tools/build/v2/user-config.jam

There is nothing about wm in there. Where do you want me to look really? I
have searched
for wm5/6 but didn't find anything but this:

Daniel-PC:/cygdrive/c/Users/Daniel.SBG/Programming/boost_1_38_0> grep wm5 -R
*
status/explicit-failures-markup.xml:            <toolset
name="msvc-8.0~wm5~stlport5.1"/>
status/explicit-failures-markup.xml:            <toolset
name="msvc-8.0~wm5*"/>
status/explicit-failures-markup.xml:            <toolset
name="msvc-8.0~wm5*"/>
status/explicit-failures-markup.xml:            <toolset
name="msvc-8.0~wm5~stlport5.1"/>
status/explicit-failures-markup.xml:            <toolset
name="msvc-8.0~wm5~stlport5.1"/>
status/explicit-failures-markup.xml:            <toolset name="msvc*wm5*"/>

Someone definitely has been running tests for wm5.

Regards,

Daniel Lidström
Stockholm, Sweden
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Building Boost for Windows CE

Vladimir Prus
On Tuesday 17 March 2009 16:33:57 Daniel Lidström wrote:

> > This configuration (or similar) is included in C++ Boost
> > tests, and if you
> > click on the tester, you should see the user-config.jam that
> > is being used.
> >
> > HTH,
> > Volodya
>
> Hello Volodya,
>
> there is only one user-config.jam in Boost-1.38:

Oh. By C++ Boost tests I mean this:

        http://www.boost.org/development/tests/trunk/developer/summary.html

In particular:

        http://www.boost.org/development/tests/trunk/VeecoFTC.html

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Building Boost for Windows CE

Daniel Lidström
In reply to this post by Daniel Lidström

Ah! Thank you very much!

Regards,

Daniel Lidström
Stockholm, Sweden
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Building Boost for Windows CE

djeauh
Hello everybody,

            Sorry for my ignorance, but I still have a problem running bjam to compile boost for windows ce.

I have:

        --> made my own batch in order to setup environment variables
        --> compiled stl port version 5.2.1 for arm successfully

I'm running bjam using the following command line:

bjam --with-regex --build-dir=.\WCE msvc-WCE/variant=debug,release/threading=multi/link=shared,static/runtime-link=static

I also added this section in my user-config.jam file:

#-------------------------------------------
# Special configuration for cross compiling
# to armv4...
#-------------------------------------------
using msvc : WCE :

    "cl.exe" :
    <compileflags>-D_CRT_SECURE_NO_WARNINGS
    <compileflags>-D_WIN32_WCE=0x501
    <compileflags>-DUNDER_CE=0x501
    <compileflags>-DWIN32_WCE_PSPC
    <compileflags>-DWINCE
    <compileflags>-DARM
    <compileflags>-D_ARM_
    <compileflags>-DARMV4I
    <compileflags>-D_LITTLE_ENDIAN
    <compileflags>-DUNICODE
    <compileflags>-D_UNICODE
    <compileflags>-DPOCKETPC2003_UI_MODEL
    <compileflags>-DBOOST_NO_STD_LOCALE
    <compileflags>-D_MSC_VER=1500
    <linkflags>/subsystem:windowsce,5.01
    <linkflags>/machine:arm
    <linkflags>/NODEFAULTLIB:oldnames.lib
    <linkflags>/STACK:262144,4096
    <linkflags>coredll.lib
    <linkflags>corelibc.lib
    <linkflags>ole32.lib
    <linkflags>oleaut32.lib
    <linkflags>uuid.lib
    <linkflags>commctrl.lib
    <architecture>arm
    <instruction-set>armv4
    <interface>wince
    <assembler>"armasm.exe"
;

using stlport : WCE :
        C:\STLport-5.2.1\stlport
        C:\STLport-5.2.1\lib\evc9-arm
        C:\STLport-5.2.1\bin\evc9-arm
;

When I launch compilation, I get the following error:

libs\regex\src\..\src\wc_regex_traits.cpp(93) : error C2039: 'wcsxfrm' : is not a member of 'std'
libs\regex\src\..\src\wc_regex_traits.cpp(93) : error C3861: 'wcsxfrm': identifier not found
libs\regex\src\..\src\wc_regex_traits.cpp(93) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Could you help me please?

Thanks in advance
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[regex] Building Boost for Windows CE

Vladimir Prus
On Friday 27 March 2009 13:42:01 djeauh wrote:

> When I launch compilation, I get the following error:
>
> libs\regex\src\..\src\wc_regex_traits.cpp(93) : error C2039: 'wcsxfrm' : is
> not a member of 'std'
> libs\regex\src\..\src\wc_regex_traits.cpp(93) : error C3861: 'wcsxfrm':
> identifier not found
> libs\regex\src\..\src\wc_regex_traits.cpp(93) : fatal error C1903: unable to
> recover from previous error(s); stopping compilation
>
> Could you help me please?

I think that only John has an idea of what this function is, why it might be
missing on CE and how is it possible to workaround this.

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [regex] Building Boost for Windows CE

John Maddock
>> When I launch compilation, I get the following error:
>>
>> libs\regex\src\..\src\wc_regex_traits.cpp(93) : error C2039: 'wcsxfrm' :
>> is
>> not a member of 'std'
>> libs\regex\src\..\src\wc_regex_traits.cpp(93) : error C3861: 'wcsxfrm':
>> identifier not found
>> libs\regex\src\..\src\wc_regex_traits.cpp(93) : fatal error C1903: unable
>> to
>> recover from previous error(s); stopping compilation
>>
>> Could you help me please?
>
> I think that only John has an idea of what this function is, why it might
> be
> missing on CE and how is it possible to workaround this.

Well, I think the C and C++ standards might have something to say about what
the function is... as for workarounds, I suggest you just omit
wc_regex_traits.cpp from the library build as you don't usually need it
(unless your platform is missing std::locale as well!)

HTH, John.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [regex] Building Boost for Windows CE

djeauh
Thank you for your answers Volodya and John.

John: I will try you your suggestion.

I just have one question: did I made something wrong ( in my command line for example, or in my user-config.jam file)?

Thanks again for your help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [regex] Building Boost for Windows CE

John Maddock
> Thank you for your answers Volodya and John.
>
> John: I will try you your suggestion.
>
> I just have one question: did I made something wrong ( in my command line
> for example, or in my user-config.jam file)?

No it's just that we only have limited testing capability on CE so these
issues don't always show up.

John.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[wince] Building Boost for Windows CE

Andrew Schweitzer
In reply to this post by Vladimir Prus
Vladimir Prus wrote:
[snip]
>
> In particular:
>
> http://www.boost.org/development/tests/trunk/VeecoFTC.html
>
> - Volodya

The user-config.jam referred to at VeecoFTC calls two <setup> batch
files, VSVars32-VC9-STLPort.bat and VSVars32-VC9-WM5.bat.

Do a copy of these exist on the network?

It is possible to write one's own, but there are many flavors of CE
build environments, so a "known working" file would be helpful.

Also, the use-config.jam says:

using msvc : 9.0~wm5~stlport5.2 :
     "C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe" :

I don't understand bjam syntax very well, but I think this says that the
  toolset name msvc-9.0~wm5~stlport5.2 is setup to use the VC8 (not VC9)
compiler. Is this correct? Does anyone know the reason for this?

Thanks

Andy

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [wince] Building Boost for Windows CE

David Deakins

Andy Schweitzer wrote:
>
> The user-config.jam referred to at VeecoFTC calls two <setup> batch
> files, VSVars32-VC9-STLPort.bat and VSVars32-VC9-WM5.bat.
>
> Do a copy of these exist on the network?

I have attached our version of these batch files.


> Also, the use-config.jam says:
>
> using msvc : 9.0~wm5~stlport5.2 :
>     "C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe" :
>

We recently upgraded from testing on VC8 to testing on VC9.  This
lingering reference to VC8 is a typo.  It should reference Studio 9.0.


-Dave

@SET VCINSTALLDIR=%VS9INSTALLDIR%\VC
@if "%VS9INSTALLDIR%"=="" 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=%VS9INSTALLDIR%\Common7\IDE

@set PATH=%VCINSTALLDIR%\CE\bin\x86_arm;%VCINSTALLDIR%\bin;%VS9INSTALLDIR%\Common7\Tools;%DevEnvDir%;%VS9INSTALLDIR%\Common\Tools;%VS9INSTALLDIR%\Common\IDE;%VS9INSTALLDIR%;%PATH%
@set INCLUDE=%STLPORT_PATH%\STLPort-5.2.1\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%\STLPort-5.2.1\lib\evc9-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: VS9INSTALLDIR variable is not set.
@goto end

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

:end

@SET VCINSTALLDIR=%VS9INSTALLDIR%\VC
@SET FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
@SET FrameworkVersion=v2.0.50727
@SET Framework35Version=v3.5
@if "%VS9INSTALLDIR%"=="" goto error_no_VSINSTALLDIR
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR

@echo Setting environment for using Microsoft Visual Studio 2008 x86 tools with STLport-5.2.1.

@call :GetWindowsSdkDir

@if not "%WindowsSdkDir%" == "" (
        set "PATH=%WindowsSdkDir%bin;%PATH%"
        set "INCLUDE=%WindowsSdkDir%include;%INCLUDE%"
        set "LIB=%WindowsSdkDir%lib;%LIB%"
)


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

@set PATH=%DevEnvDir%;%VCINSTALLDIR%\BIN;%VS9INSTALLDIR%\Common7\Tools;%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\VCPackages;%PATH%
@set INCLUDE=%STLPORT_PATH%\STLport-5.2.1\stlport;%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE;%INCLUDE%
@set LIB=%STLPORT_PATH%\STLport-5.2.1\lib\vc9;%VCINSTALLDIR%\ATLMFC\LIB;%VCINSTALLDIR%\LIB;%LIB%
@set LIBPATH=%FrameworkDir%\%Framework35Version%;%FrameworkDir%\%FrameworkVersion%;%VCINSTALLDIR%\ATLMFC\LIB;%VCINSTALLDIR%\LIB;%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: VSINSTALLDIR variable is not set.
@goto end

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

:end

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [wince] Building Boost for Windows CE

Andrew Schweitzer
David Deakins wrote:
>
> I have attached our version of these batch files.
>

thanks!


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Loading...