I did this a couple years ago, so you may need to make some changes with the latest toolset, but the process was straightforward. Here are my general suggestions:
- Use the Qt 4.8.6 binary distribution built with MinGW GCC 4.8.2: http://download.qt.io/archive/qt/4.8/4.8.6/qt-opensource-windows-x86-mingw482-4.8.6-1.exe.mirrorlist - Set your path to include the Rtools binaries and R, but not Rtools GCC-4.6.3, e.g. C:\Rtools\bin;C:\MinGW\bin;C:\R\R-3.2.1\bin - Build Rcpp and RInside from source using GCC 4.8.2. You may need to use R i386 and prevent x64 compilation, e.g. install.packages("C:/Rcpp_0.11.6.tar.gz", repos=NULL, type="source", INSTALL_opts=c("--no-multiarch")) install.packages("C:/RInside_0.2.13.tar.gz", repos=NULL, type="source", INSTALL_opts=c("--no-multiarch")) - Test with Dirk's qtdensity example. It worked for me with no changes using the included .pro file with qmake && make. Looks like you're close. Try the above and if you still have issues I'll give it a shot myself tomorrow. John > -----Original Message----- > From: rcpp-devel-boun...@lists.r-forge.r-project.org [mailto:rcpp-devel- > boun...@lists.r-forge.r-project.org] On Behalf Of PO SU > Sent: Friday, June 19, 2015 12:30 PM > To: rcpp-devel@lists.r-forge.r-project.org > Subject: [Rcpp-devel] [rinside] compiling e QT + RInside on win7 have some > problems > > > Dear expeRts, > Recently, i am plan to write GUI with QT, and using R to compute models. > As i am quite new to this area, i searched a lot on the internet, after 2 > days' > studing on the task, i still can not solve the problem, here is my problem in > details: > > > 1. My Rcpp and RInside compiled using Rtools GCC-4.6.3 g++. > 2. I can compile Rcpp and Rinside with C++ by using Makefile.win and Rtools > GCC-4.6.3 g++. > 3. The point is QT, i used the 4.8.6 QT library for windows, and MingW 4.8.2. > i > compile QT with RInside failed by using either MingW or Rtools GCC-4.6.3 > g++. (i used the .pro and qmake to generate Makefile.Release and make > the Makefile.Release) , when i using MingW , compiled failed with a lot > undefined reference, wrhen i using Rtools , compile completed but can > not run the EXE ( i did add the 4 dlls such as QTCORE4.DLL QTCUI4.DLL and so > on ), the comiple print some unused paramters warning and > warning: base class 'class Rcpp::S4_Impl<Rcpp::PreserveStorage>' should be > explicitly initialized in copy constructor[-Wetra] ........ > > > PLZ help me in details, i almost read everything i can find include a solution > that he say he comipled Rcpp and RInside with MingW 4.4 and solve the > problem, i wonder how did he compiled in details~~~ TKS! > > > > -- > > PO SU > mail: desolato...@163.com > Majored in Statistics from SJTU > _______________________________________________ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel