![]() Use the "Extract here" option to extract the sundials-2.x.x and the sun_cmake archives. After installing 7-zip you get a handy context menu entry: The one I use is the open source tool 7-zip ( 7-Zip homepage), which will be used below. Instead, download one of the many zip utilities. ![]() If you simply double-click the files, chances are that you will get the helpful "unknown file type" window:ĭon't bother searching for a program on a standard install, tar.gz files are not supported natively on windows. Place them in one directory on your harddrive, for instance C:\sundials: Extracting the archivesīegin with downloading the sundials archive and the cmake build file archives (from this page, see above). The first common part is the extraction of the archives, which is due to a lack of native support of tag.gz files not quite as trivial as on Linux. In the second part we have a guide on how to build Sundials using Mingw32 GCC or other compilers, which is very similar to the method used on Linux/Unix system. The first part in this section is a step-by-step compilation and usage guide for Visual Studio users (namely Visual Studio 2005 aka VC8). You should see an option listing like in the following screenshot. Press 'c' to configure your build with the default options. You should now see the ccmake curses interface. ![]() Next change into that directory and run ccmake. in the next command with the sundials source directory). ![]() Now create a subdirectory 'build' inside the sundials directory (you can also create the build directory anywhere else, simply substitute the. Place the sundials archive and the CMake build file archive in one directory:Įxtract the sundials archive, change into the newly created directory and extract the content of the sun_cmake archive into the directory as well: It must be copied and expanded in the top level SUNDIALS source directory (note that if you have not downloaded the entire suite but only one solver you may want to expand this tarball in a separate directory and copy the relevant cmake configuration files in their appropriate locations in the SUNDIALS source tree.) Building on Linux/Unix The tarball sun_ contains the necessary cmake configuration files. Once you have CMake installed, you should be able to use CMakeSetup.exe on Windows and ccmake on Linux/Unix. Build instructions for cmake (only necessary for *nix and linux systems) can be found on the CMake page. You can download it from If you are building cmake from sources on Linux/Unix, make sure to have curses (including development libraries) installed, so that ccmake gets compiled as well. In order to use the CMake build system, you need a fairly recent CMake version. And you will definitely need to download the cmake build files from this page. You may need to get CMake if it isn't available on your system already. Note, however, that CMake may not support all features and plattforms that are supported by the autotools build system. The installation options are very similar to the options mentioned above. On the Windows platform compilers such as the Borland C compiler or Visual C compiler are natively supported. Also build files for Windows development environments can be easily generated. Using CMake as a build system for the SUNDIALS library has the advantage that GUI based build configuration is possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |