Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000377.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
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" />
11
12    <title>Status for Andrew DeFaria: Building CDK under Windows</title>
13
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" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
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>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000376.html">&laquo; 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 &raquo;</a>
44                      </p>
45
46                      <a id="a000377"></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">
51                               <ul>
52   <li>Build Windows version of the CDK</li>
53
54   <li>Submitted CR 659: cdk tool mkimage fails to build under Windows</li>
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <h3>Building Windows CDK</h3>
59
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>
61
62 <ol>
63   <li>Obtain the latest versions of the following tar images from the archive area:
64     <ul>
65       <li>2000-00.los178_rsc_src.tar.gz</li>
66
67       <li>2001-00.los178_src.tar.gz</li>
68
69       <li>2013-00.los178_dev.tar.gz</li>
70
71       <li>2015-00.los178_rsc_dev.tar.gz</li>
72
73       <li>(From cvs bin-image) ppc.cdkwin32.tar.gz</li>
74     </ul>
75   </li>
76
77   <li>Create an area to do the build and extract the above into that area</li>
78
79   <li>Exit this bash shell</li>
80
81   <li>Start a cmd shell</li>
82
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>
84
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:
86
87 <div class="code"><pre>
88 @ECHO OFF
89 SET TARGET_PATH=C:\LynuxWorks\2.0.0
90 SET MAKE_MODE=UNIX
91 SET TERM=cygwin
92 SET HOME=/
93
94 set PATH=%TARGET_PATH%\bin;%TARGET_PATH%\usr\bin:%PATH%
95
96 echo "TARGET_PATH is %TARGET_PATH%
97
98 if not exist %TARGET_PATH%\bin\sh.exe goto error_no_sh
99
100 ver > %TARGET_PATH%\_tmp
101 goto the_end
102
103 :error_no_sh
104 echo "Installation Error -- no %TARGET_PATH%\bin\sh.exe found"
105
106 :the_end
107 del %TARGET_PATH%\_tmp
108 bash
109 </pre></div>
110   </li>
111
112   <li>cd to the directory that you created to perform the build</li>
113
114   <li>Source SETUP.bash</li
115
116   <li>cd to src/cdk</li>
117
118   <li>make install > install.log 2>&1</li>
119
120   <li>Check install.log for errors</li>
121 </ol>
122
123 <h3>CR 659: cdk tool mkimage fails to build under Windows</h3>
124
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>
126
127 <div class="code"><pre>
128 Compiling coff.o
129 coff.c
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'
132 Stop.
133 make[1]: *** [WIN32_VS_UTIL] Error 2 
134 </pre></div>
135
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>
137                            </div>
138                         </div>
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>
141                         </p>
142                      </div>
143
144                      
145
146                      
147                   </div>
148                </div>
149             </div>
150          </div>
151       </div>
152    </div>
153 </body>
154 </html>