| 
									
										
										
										
											2009-10-04 05:19:14 +08:00
										 |  |  | Installation instructions for Eigen | 
					
						
							|  |  |  | *********************************** | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Explanation before starting | 
					
						
							|  |  |  | *************************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-05 08:27:44 +08:00
										 |  |  | Eigen consists only of header files, hence there is nothing to compile | 
					
						
							|  |  |  | before you can use it. Moreover, these header files do not depend on your | 
					
						
							|  |  |  | platform, they are the same for everybody. | 
					
						
							| 
									
										
										
										
											2009-10-04 05:19:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | Method 1. Installing without using CMake | 
					
						
							|  |  |  | **************************************** | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | You can use right away the headers in the Eigen/ subdirectory. In order | 
					
						
							|  |  |  | to install, just copy this Eigen/ subdirectory to your favorite location. | 
					
						
							| 
									
										
										
										
											2009-10-04 10:11:30 +08:00
										 |  |  | If you also want the unsupported features, copy the unsupported/ | 
					
						
							|  |  |  | subdirectory too. | 
					
						
							| 
									
										
										
										
											2009-10-04 05:19:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | Method 2. Installing using CMake | 
					
						
							|  |  |  | ******************************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-04 10:11:30 +08:00
										 |  |  | Let's call this directory 'source_dir' (where this INSTALL file is). | 
					
						
							|  |  |  | Before starting, create another directory which we will call 'build_dir'. | 
					
						
							| 
									
										
										
										
											2009-10-04 05:19:14 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | Do: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   cd build_dir | 
					
						
							|  |  |  |   cmake source_dir | 
					
						
							|  |  |  |   make install | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The "make install" step may require administrator privileges. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | You can adjust the installation destination (the "prefix") | 
					
						
							|  |  |  | by passing the -DCMAKE_INSTALL_PREFIX=myprefix option to cmake, as is | 
					
						
							|  |  |  | explained in the message that cmake prints at the end. |