1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
12 <title>Status for Andrew DeFaria: Building CDK under Windows</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/000376.html" title="LOS178 2.1.0 build" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/000378.html" title="Built LOS178 2.1.0 TOB" />
22 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
26 <div id="container-inner" class="pkg">
29 <div id="banner-inner" class="pkg">
30 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31 <h2 id="banner-description">Searchable status reports and work log</h2>
36 <div id="pagebody-inner" class="pkg">
38 <div id="alpha-inner" class="pkg">
40 <p class="content-nav">
41 <a href="http://defaria.com/blogs/Status/archives/000376.html">« LOS178 2.1.0 build</a> |
42 <a href="http://defaria.com/blogs/Status/">Main</a>
43 | <a href="http://defaria.com/blogs/Status/archives/000378.html">Built LOS178 2.1.0 TOB »</a>
47 <div class="entry" id="entry-377">
48 <h3 class="entry-header">Building CDK under Windows</h3>
49 <div class="entry-content">
50 <div class="entry-body">
52 <li>Build Windows version of the CDK</li>
54 <li>Submitted CR 659: cdk tool mkimage fails to build under Windows</li>
57 <div id="more" class="entry-more">
58 <h3>Building Windows CDK</h3>
60 <p>In order to build the CDK under Windows one must use an ancient version of Cygwin - B20 (it is assumed that that is already installed). Additionally one must perform certain actions in a certain order:</p>
63 <li>Obtain the latest versions of the following tar images from the archive area:
65 <li>2000-00.los178_rsc_src.tar.gz</li>
67 <li>2001-00.los178_src.tar.gz</li>
69 <li>2013-00.los178_dev.tar.gz</li>
71 <li>2015-00.los178_rsc_dev.tar.gz</li>
73 <li>(From cvs bin-image) ppc.cdkwin32.tar.gz</li>
77 <li>Create an area to do the build and extract the above into that area</li>
79 <li>Exit this bash shell</li>
81 <li>Start a cmd shell</li>
83 <li>Execute the VCVARS32.BAT file. This is normally found in C:\Program Files\Microsoft Visual Studio\VS98\Bin. Note that this implies that Visual Studio is also installed. Also, often people will copy this bat file to C:\ for easier execution. This bat file sets certain environment variables including PATH such that nmake can be found. Under Windows we lean on VS's nmake. Also, this must be done from a cmd shell before starting Cygwin so that the changes to the environment can be picked up. Why don't we just make a script or enhance SETUP.bash to take into account for this?</li>
85 <li>Start Cygwin using the appropriate cygnus.bat file. This was given to me by Moscow. Doesn't seem to do that much fancy stuff:
87 <div class="code"><pre>
89 SET TARGET_PATH=C:\LynuxWorks\2.0.0
94 set PATH=%TARGET_PATH%\bin;%TARGET_PATH%\usr\bin:%PATH%
96 echo "TARGET_PATH is %TARGET_PATH%
98 if not exist %TARGET_PATH%\bin\sh.exe goto error_no_sh
100 ver > %TARGET_PATH%\_tmp
104 echo "Installation Error -- no %TARGET_PATH%\bin\sh.exe found"
107 del %TARGET_PATH%\_tmp
112 <li>cd to the directory that you created to perform the build</li>
114 <li>Source SETUP.bash</li
116 <li>cd to src/cdk</li>
118 <li>make install > install.log 2>&1</li>
120 <li>Check install.log for errors</li>
123 <h3>CR 659: cdk tool mkimage fails to build under Windows</h3>
125 <p>Build of cdk tool mkimage files under Windows. This is a make install in src/cdk of LOS178. The specific error is:</p>
127 <div class="code"><pre>
130 coff.c(91) : fatal error C1083: Cannot open include file: 'family/ppc/arch_mem.h': No such file or directory
131 NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
133 make[1]: *** [WIN32_VS_UTIL] Error 2
136 <p>Problem seems to be that the fix for src/cdk/common/mkimage/Makefile in CR #539 of adding -I$(ENV_PREFIX)/sys/include does not work under Windows with nmake.</p>
139 <p class="entry-footer">
140 <span class="post-footers">Posted by on June 23, 2005 10:35 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000377.html">Permalink</a>