close
Warning:
Can't synchronize with repository "(default)" (/hepforge/svn/rave does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Nov 6, 2007, 5:06:24 PM (17 years ago)
- Author:
-
fmos
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
15 | 15 | |
16 | 16 | * Download and install the boost setup package from http://www.boost-consulting.com/products/free |
17 | | * Set the BOOST_PATH environment variable to the chosen installation directory. (There has to be a boost/math subdirectory at the location given by BOOST_PATH.) |
| 17 | * Set the BOOST_PATH environment variable to the chosen installation directory. (There has to be a `boost/math` subdirectory at the location given by BOOST_PATH.) |
18 | 18 | |
19 | 19 | The same counts for CLHEP as well. It is released as source package as well es precompiled binaries. At the moment however there are no appropriate binaries for use with the latest generation of Microsoft compilers. Therefore users must compile the libraries on their own, which is straightforward, but involves the use of Cygwin. To circumvent the necessity of installing the otherwise unnecessary Cygwin environment, we will provide a precompiled package of the current version of CLHEP. |
20 | 20 | |
21 | 21 | * Download and unpack the CLHEP binary package from NotYetUploaded |
22 | | * Set the CLHEP_PATH environment variable to the destination chosen during unpacking. (There has to be an include/CLHEP/Vector subdirectory at the given location.) |
| 22 | * Set the CLHEP_PATH environment variable to the destination chosen during unpacking. (There has to be an `include/CLHEP/Vector` subdirectory at the given location.) |
23 | 23 | |
24 | 24 | For the Java bindings to compile, the JDK installation path has to be published by an environment veriable as well. Recent JDK packages don't do this automatically. |
25 | 25 | |
26 | | * Set the JAVA_HOME environment veriable to the base directory of a JDK. (There has to be an include and an include/win32 subdirectory at that location) |
| 26 | * Set the JAVA_HOME environment veriable to the base directory of a JDK. (There has to be an `include` and an `include/win32` subdirectory at that location) |
27 | 27 | |
28 | | If you face problems during later stages please make sure, that those three environment veriables (BOOST_PATH, CLHEP_PATH, JAVA_HOME) are set and accessible to the Visual Studio instance. |
| 28 | The generation of the Java interface classes is done by SWIG. |
| 29 | |
| 30 | * Download the current swigwin package from http://www.swig.org/download.html and unpack it. |
| 31 | * Set the PATH environment variable to include the path to your SWIG installation directory. |
| 32 | |
| 33 | If you face problems during later stages please make sure, that those three environment veriables (BOOST_PATH, CLHEP_PATH, JAVA_HOME) are set and accessible to the Visual Studio instance. Open up a command line windows and check if swig is in the PATH by calling `swig -version` and checking if the installed SWIG version is echoed correctly. |
29 | 34 | |
30 | 35 | == Download Rave == |
31 | 36 | |
32 | | The easiest way to get the Rave sources is certainly to download a packaged source archive. |
| 37 | The easiest way to get the Rave sources is certainly to download a packaged source archive. Since Rave is under heavy development at the moment of this writing, I can only suggest to grab the latest snapshot. |
| 38 | |
| 39 | * Go to http://projects.hepforge.org/rave/trac/browser/trunk , scroll down and select "Zip Archive" as download format. |
| 40 | * Unpack the snapshot to a directory of your choice. |
| 41 | |
| 42 | == Build Rave == |
| 43 | |
| 44 | * Double-click the Visual Studio solution called Rave.sln |
| 45 | |
| 46 | Depending on whether you want to use Rave in a Java framework or in a C++ application, different configurations are available. They are built in seperate directories which allows to build each of them and use them in both ways. The default described here targets the Java bindings. |
| 47 | |
| 48 | * Select the release configuration and press F7 |
| 49 | |
| 50 | After the build process has finished, you will find (along with many others) the two target files in the release subdirectory. The `Rave.dll` contains the implementation of the Rave library while the `Rave.jar` located in `release/java` packages the corresponding interfaces for use in a Java application. |
| 51 | |
| 52 | == Deploy Rave == |
| 53 | |
| 54 | Since both CLHEP and Rave are by default linked dynamically against the MSVC runtime library, it has to be deployed along with the Rave.dll. The necessary files can be found in the `VC\redist\x86\Microsoft.VC80.CRT` subdirectory of your Visual Studio installation and are called `msvcr80.dll` and `msvcp80.dll`. |