[Rcpp-devel] cannot compile qtdensity example on windows

Dirk Eddelbuettel edd at debian.org
Mon May 19 15:31:49 CEST 2014

On 19 May 2014 at 14:08, Michele Gubian wrote:
| hi all,
| I need to use RInside in Qt on Windows, and I am stuck since more than
| a week. In short, I tried to follow these instructions:
| http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2012-November/004771.html
| where the compilation/linking problems seem to be solved, but for me
| the same procedure does not work.
| Details:
| I compile Rcpp and RInside from sources using the toolchain shipped
| with Qt (mingw48_32). In order to to that, I change my path by:
| set path=C:\PROGRA~1\R\Rtools\bin;C:\Users\Uasolo\faldone\programmi\Qt\Tools\mingw48_32\bin;%PATH%
| Then with
| qmake qtdensity.pro -r -spec win32-g++
| I get makefiles, but
| mingw32-make -f Makefile
| gives compilation errors. The stderr output from the above command is attached (
| qtdensity_make.log).

I think that got pruned.
| I have run out of ideas on what to try next. Please help.

Make sure __you use the same mingw version for all components__.

I would never have published that example if I hadn't gotten it working on
Windows myself first -- but you need to use the exact same compiler for R,
Rcpp, RInside and Qt.

Which is entirely doable on Windows, but tedious.  Like many other things on Windows.


| Michele
| OS and sw packages details follow:
| - OS
| Windows7 home premium SP1 64-bit
| - R
| version 3.1.0,
| platform       i386-w64-mingw32
| arch           i386
| os             mingw32
| system         i386, mingw32
| R was installed from binaries.
| Rcpp and RInside installed from sources:
| R CMD INSTALL --no-multiarch "C:\\Users/Uasolo/Downloads/Rcpp_0.11.1.tar.gz"
| R CMD INSTALL --no-multiarch C:\Users\Uasolo\Downloads\RInside_0.2.11.tar.gz
| - Qt:
| Qt 5.2.1
| Qt Creator 3.0.1 (I think not relevant, since I am trying to compile
| qtdensity from command line)
| mingw is in: Qt\Tools\mingw48_32
| [DELETED ATTACHMENT qtdensity_make.log, Untyped binary data]
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the Rcpp-devel mailing list