The R Project SVN R

Rev

Rev 43404 | Rev 51157 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43404 Rev 47689
Line 136... Line 136...
136
 
136
 
137
For some further details and Delphi examples see
137
For some further details and Delphi examples see
138
http://www.stats.uwo.ca/faculty/murdoch/software/compilingDLLs/
138
http://www.stats.uwo.ca/faculty/murdoch/software/compilingDLLs/
139
 
139
 
140
 
140
 
141
Cross-building packages on Linux
-
 
142
================================
-
 
143
 
-
 
144
It is straightforward to build a package on a ix86 (or even x86_64)
-
 
145
Linux system, except to build .chm files.  You will need an
-
 
146
installation of R for Windows, either copied from a Windows system or
-
 
147
cross-compiled, and a Linux R installation of exactly the same version,
-
 
148
built without using subarchitectures.
-
 
149
 
-
 
150
First you need to set up the cross-compilers and tools (see the `R
-
 
151
Installation and Administration' manual) and have them in your path.
-
 
152
We will assume that your Linux installation has Perl5, unzip and zip.
-
 
153
 
-
 
154
Edit MkRules to set BUILD=CROSS and the appropriate paths (including
-
 
155
HEADER and R_EXE) as needed.
-
 
156
 
-
 
157
Then packages can be made as natively, for example by
-
 
158
 
-
 
159
	cd .../src/gnuwin32
-
 
160
	make PKGDIR=/mysources RLIB=/R/win/library pkg-mypkg
-
 
161
	make PKGDIR=/mysources RLIB=/R/win/library lazyload-mypkg
-
 
162
	cd /R/win/library
-
 
163
	zip -r9X /dest/mypkg.zip mypkg
-
 
164
 
-
 
165
(Rcmd is a Windows executable, so cannot be used.)
-
 
166
 
-
 
167
If your package has no compiled code it is possible that zipping up
-
 
168
the installed package on Linux will produce an installable package on
-
 
169
Windows.  (It has always worked for us, but failures have been reported.)
-
 
170
 
-
 
171
People have reported being able to build .chm files with WINE provided
-
 
172
that the Windows itss.dll is used: there is not support for this in
-
 
173
the distributed Makefiles.
-
 
174
 
-
 
175
 
-
 
176
Feedback
141
Feedback
177
========
142
========
178
 
143
 
179
Please send comments and bug reports to
144
Please send comments and bug reports to
180
 
145