-
Notifications
You must be signed in to change notification settings - Fork 12
Installation under windows 32 bit
Please see http://cranvas.org/download.html instead.
- Install R and Rtools. Add the following to your PATH, in which ... should be substituted by the directory that installed R and Rtools.
...\Rtools\bin;
...\Rtools\gcc-4.6.3\bin;
...\R\bin\i386;
-
Install cmake 2.8.11 from http://www.cmake.org/files/v2.8/cmake-2.8.11-win32-x86.exe. Add
...\CMake 2.8\bin
to the PATH. -
Download and install the Qt libraries (32 bit Windows). Then add
...\Qt\4.8.4\bin
to the PATH. -
Install Perl and add its bin to the PATH.
-
Set the
CMAKE
environment variable to point to yourcmake.exe
. (for example,...\CMake 2.8\bin\cmake.exe
) -
Set
QMAKE
environment variable to point toqmake.exe
. (for example,...\Qt\4.8.4\bin\qmake.exe
) -
Set
RC_COMPILER
environment variable to point towindres.exe
from Rtools. Make sure to change the backslash(\
) to slash(/
) here. (for example,.../Rtools/gcc-4.6.3/bin/windres.exe
) -
Set
QTBASE_QT_PATH
to the directory containingqmake.exe
. (for example,...\Qt\4.8.4\bin
) -
Make sure perl, cmake, Qt, R-32bit, Rtools, Rtools-gcc are on your PATH. Example PATH to build qtbase (better to put these before others):
C:\Program Files\Rtools\bin;
C:\Program Files\Rtools\gcc-4.6.3\bin;
C:\Program Files\R\bin\i386;
C:\Qt\4.8.4\bin;
C:\Perl\bin\;
C:\Program Files\CMake 2.8\bin;
[... other directories ...]
-
Download qtbase and unzip it. It does not matter where you unzip it. Change the folder name from "qtbase-master" to "qtbase".
-
(This should be fixed in code) Check
.../qtbase/src/mkdef.sh
. Changesed -n $1 tmp >> qtbase.def
tosed -n 's/^.* [BCDRT] _/ /p' tmp >> qtbase.def
-
Make a copy of the whole qtbase folder. Put it in another directory, or just rename it. Don't delete this clean copy until you successfully install qtbase after step 13.
-
Start the command shell, go to the directory containing qtbase. Run:
R CMD INSTALL --build qtbase
Please make sure the folder qtbase is completely clean (i.e., not pre-installed).
-
Add the
...\qtbase\local\lib
to PATH. where ... is replaced by your R library path. Run?.libPaths
in R to find out it. -
Download glext.h from http://www.opengl.org/registry/api/glext.h And copy it to
...\Qt\4.8.4\src\opengl\
Add a line to
...\Qt\4.8.4\include\QtOpenGL\qgl.h
:
#include "../../src/opengl/glext.h"
??? An alternative way is editing `OpenGLPainter.cpp`
#ifdef Q_OS_WIN
#include "glext.h"
#endif
- Download qtpaint Start the command shell, go to the directory containing qtpaint. Run:
R CMD INSTALL --build qtpaint