Re: [Rd] Issues with building package with C src on windows [R CMD INSTALL ignoring makefile]

From: Simon Urbanek <simon.urbanek_at_r-project.org>
Date: Mon, 19 Dec 2011 10:42:48 -0500

On Dec 19, 2011, at 10:30 AM, Jonathan Shore wrote:

> I've written a rather complex package that requires overriding the default compilation behavior for the C code component. In the src dir I have a Makefile that is used correctly on OSX and Linux builds of the package, but completely ignored on windows.
>
> R CMD INSTALL <package>
>
> on windows runs Makeconf instead of running make on my Makefile. If run make in the src directory manually on windows, the shared library compiles.
>

See R-ext - you probably need to create Makefile.win

Note that in most cases it is unnecessary to use Makefile - you can add targets to Makevars which will supply you with the correct flags and give you flexibility whereas Makefile is very limited in that you need to write all rules by hand which is very error prone and likely to break with new R versions.

Cheers,
Simon

> How can I get the INSTALL command to look for the Makefile? I am building on R 2.14.0 on a win 7 vm.
>
> Thanks
> Jonathan
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 19 Dec 2011 - 15:44:31 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 19 Dec 2011 - 19:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive