From khansen at stat.berkeley.edu  Tue Apr 14 20:02:23 2009
From: khansen at stat.berkeley.edu (Kasper Daniel Hansen)
Date: Tue, 14 Apr 2009 11:02:23 -0700
Subject: [Rd] Problem cross-compiling on Ubuntu
In-Reply-To: <9056ff740904141024r45562441t4e430a2125d49d9b@mail.gmail.com>
References: <9056ff740904141024r45562441t4e430a2125d49d9b@mail.gmail.com>
Message-ID: <2D3DC673-7008-4909-A11E-FC3C8989BB11@stat.berkeley.edu>

Is there any particular reason why you are doing this, instead of just  
using
   http://win-builder.r-project.org/
After that server went online, I see little (no) need for cross- 
compilation, I must say.

Kasper

On Apr 14, 2009, at 10:24 , Harry Southworth wrote:

> I'm using Ubuntu 8.10 (Intrepid Ibex) and R 2.7.1.
>
> I've built a package from source (a modified version of gbm) and it
> contains some C++ code.  I now want to cross-compile it to get a
> Windows version.
>
> I installed R using
>   sudo apt-get update
>   sudo apt-get install r-base
>   sudo apt-get install r-base-dev
>
> So far as I can tell, I've also followed all the instructions in the
> guide to cross-compiling by Yan and Rossini.
>
> When I try to cross-compile I get a load of errors, apparently due to
> R.h (and possibly other things) not being found:
>
> [snip - everything fine up to here]
> i586-mingw32-g++ -isystem
> /home/harry/RLibrary/forWindows/cross-tools/i586-mingw32/include
> -I/home/harry/RLibrary/forWindows/WinR/R-2.6.0/include    -Wall -O2
> -c adaboost.cpp -o adaboost.o
> In file included from dataset.h:20,
>                 from node_terminal.h:21,
>                 from distribution.h:20,
>                 from adaboost.h:20,
>                 from adaboost.cpp:3:
> buildinfo.h:8:19: R.h: No such file or directory
> adaboost.cpp: In member function `virtual GBMRESULT
> CAdaBoost::ComputeWorkingResponse(double*, double*, double*, double*,
> double*, double*, bool*, long unsigned int, int)':
> adaboost.cpp:33: error: `exp' was not declared in this scope
> adaboost.cpp:33: warning: unused variable 'exp'
> [etc. - snip]
>
> I'd be grateful if anyone can suggest what I might be doing wrong.
>
> Many thanks,
> Harry
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Problem cross-compiling on Ubuntu
Kasper Daniel Hansen