How to make Rdll.lib is in readme.packages, the basic documentation for
making packages from sources pointed at from the rw-FAQ.
It seems to be the force-Rdll.lib target in that makefile.
You might also want to note the comments about paths with spaces in, in
that basic documentation, and that you appear to be trying to build in the
place the package should be installed.
On Fri, 7 May 2004 mark.threefoot at amd.com wrote:
>
> Hello,
>
> I am trying to compile ROracle _0.5-4 under R 1.9.0 without much success.
I am running Windows 2000 SP4, Visual C++ 6.0 SP6, and Oracle client 9.2.0.1.0.
I was able to run the pre-compiled version of ROracle_0.5-2 under R 1.7.1, but
does not work on R 1.8.1 or R 1.9.0. Here is the output from nmake:
>
> C:\Program Files\R\rw1090\library\ROracle\src>nmake
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> cl /I"C:\\Program Files\\R\\rw1090"\\src\\include /MT /Ox
/D "MSVC" /D "
> WIN32" /c RS-DBI.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> RS-DBI.c
> cl /I"C:\\Program Files\\R\\rw1090"\\src\\include /MT /Ox
/D "MSVC" /D "
> WIN32" /c RS-Oracle.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> RS-Oracle.c
> NMAKE : fatal error U1073: don't know how to make
'\src\\gnuwin32\\Rdll.lib'
> Stop.
>
> Here is a copy of my Makefile:
>
> R_HOME = "C:\\Program Files\\R\\rw1090"
> ORACLE_HOME = C:\\oracle\\oracle92
> SRC = RS-DBI.h RS-DBI.c RS-Oracle.h RS-Oracle.pc S4R.h
> RLIB = $(R_HOME)\\src\\gnuwin32\\Rdll.lib
> OBJ = RS-DBI.obj RS-Oracle.obj
>
> ##
> ## The Oracle ProC/C++ precompiler and options we need (these have worked
> ## on Linux, Solaris, and Windows 2000).
> ##
>
> PROC=proc ## this is the ProC/C++ executable
> CODE=ANSI_C ## the following are ProC/C++ options
> MODE=ORACLE
> PARSE=NONE ## don't do any C parse
> LINES=false ## use true for debugging
>
> ROracle.dll: $(OBJ) $(RLIB)
> (cd $(R_HOME)\\src\\gnuwin32 && lib /def:R.exp /out:Rdll.lib)
> link /dll /def:ROracle.def /out:ROracle.dll
$(ORACLE_HOME)\\precomp\\lib\\orasql9.lib *.obj
$(R_HOME)\\src\\gnuwin32\\Rdll.lib
>
> RS-DBI.obj: RS-DBI.h RS-DBI.c S4R.h
> cl /I$(R_HOME)\\src\\include /MT /Ox /D "MSVC" /D
"WIN32" /c RS-DBI.c
>
> RS-Oracle.obj: RS-Oracle.h RS-Oracle.c S4R.h
> cl /I$(R_HOME)\\src\\include /MT /Ox /D "MSVC" /D
"WIN32" /c RS-Oracle.c
>
> RS-Oracle.c: RS-Oracle.h RS-Oracle.pc
> $(PROC) CODE=$(CODE) MODE=$(MODE) INCLUDE=$(R_HOME)/include \
> PARSE=$(PARSE) LINES=$(LINES) RS-Oracle.pc
> force-Rdll.lib:
> (cd $(R_HOME)\\src\\gnuwin32 && lib /def:R.exp /out:Rdll.lib)
> clean:
> rm -f $(OBJ) *.a *.d *.rc
> clobber:
> rm -f $(RLIB) $(OBJ) RS-Oracle.c *.a *.d *.rc *.dll
>
> Thanks for your help,
> Mark
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
>
--
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