Makevars or congiure for multi platforms
On Wed, 11 Jun 2008, Tadashi Kadowaki wrote:
Prof. Ripley, Yes, I can configure when I write configure.ac correctly. But, If you provide all settings in Rconfig.h, I don't have to write configure.ac. That is a big benefit for package developers.
Well, unlikely as no one else has requested it and I don't see configure scripts in packages repeating that in R. So let me repeat
Which entries were you wanting to use?
Actually I haven't written correct configure.ac yet. Regards, Tadashi Kadowaki 2008/6/10 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
On Tue, 10 Jun 2008, Tadashi Kadowaki wrote:
Prof Ripley, I fixed and uploaded. However, it is still useful for development of a package that is close to R core, if Rconfig.h contains all definitions in config.h. If Rconfig contained all information, I didn't have to refer the private header directory.
But your package can run its own configure to find such things itself. Which entries were you wanting to use?
Regards, Tadashi Kadowaki 2008/6/9 Prof Brian Ripley <ripley at stats.ox.ac.uk>:
Private headers are just that, private. They are not intended to be available to packages, and not installed by the standard R makefiles on either Unix-alikes or Windows. I don't see it documented that they are available on MacOS X, and will leave it to that platform's maintainers as to why they have been installed on that platform. You need to rewrite your code to use only documented headers and entry points if you intend to distribute it. On Mon, 9 Jun 2008, Tadashi Kadowaki wrote:
Hi, Laurent and Tobias Thanks a lot. I could make configure script and upload it to r-forge. https://r-forge.r-project.org/projects/pdf2/ It still works only on mac by default. For Linux and Windows, it needs additional option like ----- R CMD INSTALL --configure-vars="R_INTERNAL_HEADER_DIR=/path/to/src/include" pdf2/pkg ----- ,where /path/to/src/include is the directory in the R source. I didn't check it for Linux and Windows... Regards, Tadashi Kadowaki 2008/6/8 Laurent Gautier <lgautier at gmail.com>:
2008/6/7 <r-devel-request at r-project.org>:
Message: 11
Date: Sat, 7 Jun 2008 03:38:23 +0900
From: "Tadashi Kadowaki" <tadakado at gmail.com>
Subject: [Rd] Makevars or congiure for multi platforms
To: r-devel at r-project.org
Message-ID:
<dcb3073c0806061138n2f376a24r100f281ae248497a at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Dear all,
As previously submitted, I wrote an extending pdf device to embed
pop up text and web links.
(Patches are available at http://pdf2.r-forge.r-project.org/patches)
Now, I'm making a library version of the pdf device.
However, with my skill, I'm not sure about writing Makevars or
configure
file
for multi platforms. A following line in Makevars works on my mac,
-----
PKG_CFLAGS=-I/Library/Frameworks/R.framework/PrivateHeaders
-DHAVE_CONFIG_H
-----
(Note that the PrivateHeaders directory contains Fileio.h and Defn.h)
My question is,
How do I write Makevars or congiure for Unix/Linux and Windows?
I would like to support those platforms in my library.
You could try looking into a package that has configure, configure.win and has built binaries for macosX and windows. Try the package 'rgl' on CRAN, for example. Hoping this helps, L.
Regards, Tadashi Kadowaki
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595