## build stlport 5.1 for WinCE Mobile 5.0

Developers
2006-10-14
2013-05-13

• Mickey Mestel
2006-10-14

hi,

i've just sucessfully built this, and wanted to list the steps that i had to take for others to follow, and hopefully avoid the pain that i went through to get here.

i'm on XP, using VS2005 with the Mobile 5.0 Pocket PC SDK, which is a free download from MS.  i'm also building this in the cygwin bash shell.

some of this is obviuos, but cost me a lot of time , for instance, running the vsvars32.bat script in the ..\Microsoft Visual Studio 8\VC\bin directory was supposed to set up the environment variables, but wasn't.  i ran the script and looked, and thought i saw what i needed, but what was set was done on login for VC++ 6, so i just didn't see it correctly, and could have saved a lot of time that way.  in the end, we had to set the INCLUDE env variable to one string only, (listed below), to get it to work.  those with more familiarity with windows and shells may have done this much easier.

1) PATH must include the necessary paths to the compiler you wish to use.  obvious, but...  in this case it is the VC2005 tools in c:\Program Files\Microsoft Visual Studio 8\...

2) INCLUDE env variable must be set to the path for the include files of the SDK, *NOT* the compiler tools.  very important, and took a long time to figure out.  in this case it is c:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Include\Armv4i

3) in the file ../stlport/build/lib/configure.bat, added the line

echo TARGET_PROC=arm >> ../Makefiles/config.mak

at linen 260 in the :oc_evc8 section

as it was complaining abot no processor defined, and yet there were entries for arm in the makefiles.

4) in the file .../stlport/build/Makefiles/nmake/evc8.mak

changed line 28 from:

DEFS_COMMON = \$(DEFS_COMMON) /D "ARM" /D "_ARM_" /D "\$(TARGET_PROC_SUBTYPE)"

to

DEFS_COMMON = \$(DEFS_COMMON) /D "ARM" /D "_ARM_" /D "ARMV4I"

needed to get rid of the TARGET_PROC_SUBTYPE as that wasn't defined anywhere and so gave an error on the command line for an empty /D, and needed to define ARMV4I.

those are the steps that i needed to take to make this compile, (haven't actually linked it with my program and ran it yet:-)

i can't remember, (and it is a lot of effort right now to recreate each step), all of the error messages along the way, but this should work if your environment is relatively the same.

hope this helps someone along the way.

mickm
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8997243642807007, "perplexity": 3268.6794550428035}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-15/segments/1398223210034.18/warc/CC-MAIN-20140423032010-00293-ip-10-147-4-33.ec2.internal.warc.gz"}