Changeset 9:a48bf0d3a790 in lemon-tutorial
- Timestamp:
- 10/28/08 18:54:30 (16 years ago)
- Branch:
- default
- Children:
- 10:55e2f7712e87, 11:0a51fe554d01
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
getting_started.dox
r7 r9 18 18 19 19 /** 20 \page getting_started Getting Started 21 22 \section hello_lemon Compile Your First Code 20 \page hello_lemon Compile Your First Code 23 21 24 22 If you have installed LEMON on your system you can paste the following … … 31 29 32 30 First let us briefly explain how this example program works. 33 (The used notions will be discussed in detail in the following chapter.)31 (The used notions will be discussed in detail in the following sections.) 34 32 35 33 After some convenience typedefs we create a directed graph (\e digraph) … … 53 51 Finally we iterate through all arcs again and print their lengths. 54 52 55 Now let 's compile this simple example program.53 Now let us compile this simple example program. 56 54 57 \s ubsection hello_lemon_system If LEMON is Installed System-Wide55 \section hello_lemon_system If LEMON is Installed System-Wide 58 56 59 If your installation of LEMON into directory \c /usr/local was60 successful,then it is very easy to compile this program with the57 If LEMON is installed system-wide (into directory \c /usr/local), 58 then it is very easy to compile this program with the 61 59 following command (the argument <tt>-lemon</tt> tells the compiler 62 60 that we are using the installed LEMON): 63 61 64 62 \verbatim 65 g++ hello_lemon.cc -o hello_lemon -lemon63 g++ -lemon hello_lemon.cc -o hello_lemon 66 64 \endverbatim 67 65 … … 73 71 \endverbatim 74 72 75 \s ubsection hello_lemon_user If LEMON is Installed User-Local73 \section hello_lemon_user If LEMON is Installed User-Local 76 74 77 75 Compiling the code is a bit more difficult if you installed LEMON … … 81 79 82 80 \verbatim 83 g++ - I ~/lemon hello_lemon.cc -o hello_lemon -lemon -L ~/lemon/lemon/.libs81 g++ -lemon -I ~/lemon -L ~/lemon/lemon/.libs hello_lemon.cc -o hello_lemon 84 82 \endverbatim 85 86 \subsubsection hello_lemon_pkg_config Use pkg-config87 88 \todo Write this sub-subsection (\ref hello_lemon_pkg_config).89 83 90 84 If everything has gone well, then our program prints out the followings. -
install.dox
r7 r9 20 20 \page install Installation Guide 21 21 22 In this page we detail how to start using LEMON, from downloading it to23 your computer, through the steps of installation, to showing a simple 24 "Hello World" type program that already usesLEMON. We assume that you22 In this section we detail how to start using LEMON, from downloading it 23 to your computer, through the steps of installation, to showing how to 24 compile programs that use LEMON. We assume that you 25 25 have a basic knowledge of your operating system and C++ programming 26 26 language. The procedure is pretty straightforward, but if you have any … … 42 42 In this description we will suppose a Linux environment and GNU C++ Compiler. 43 43 If you would like to develop under Windows and use a Windows installer, 44 you could skip the following sections and continue reading \ref hello_lemon. 44 you could skip the following sections and continue reading 45 \ref basic_concepts. 45 46 However keep in mind that you have to make appropriate steps instead of 46 the instructions detailed here to be able to compile the example code 47 with your compiler. 47 the instructions detailed here to be able to use LEMON with your compiler. 48 48 49 49 \subsection requirements_lp LP Solver Requirements … … 98 98 \endverbatim 99 99 100 In what follows we will assume that you were able to install to directory101 \c /usr/local, otherwise some extra care is to be taken to use the library.102 103 100 We briefly explain these commands below. 104 101 … … 145 142 For more information see the <b><tt>INSTALL</tt></b> file. 146 143 147 \subsection install_hg Install the latest development version144 \subsection install_hg Install the Latest Development Version 148 145 149 146 You can also use the latest (developer) version of LEMON from our Mercurial 150 repository. You need a couple additional tool for that 147 repository. You need a couple additional tool for that. 151 148 152 149 - <a href="http://www.selenic.com/mercurial">Mercurial</a> … … 161 158 162 159 Once you have all these tools installed, the process is fairly easy. 163 First, you have to get the copy of the lates version.160 First, you have to get the copy of the latest version. 164 161 165 162 \verbatim … … 182 179 \endverbatim 183 180 184 To generate the documentation, just run 181 To generate the documentation, just run 185 182 \verbatim 186 183 make html 187 184 \endverbatim 185 \todo Is <tt><b>make html</b></tt> really necessary after 186 <tt><b>make install</b></tt>? 187 188 189 \section install_rpm Install from rpm 190 191 \todo Write this section (\ref install_rpm). 192 193 194 \section install_user Install Locally to the User 195 196 \todo Write this section (\ref install_user). 197 198 199 \section compile_codes Compile Codes that Use LEMON 200 201 Now let us see how to use the library after installing it. 202 203 \subsection compile_system_wide If LEMON is Installed System-Wide 204 205 If your installation of LEMON into directory \c /usr/local was 206 successful, then you have to issue a command like this to compile a 207 source file that uses LEMON. 208 209 \verbatim 210 g++ -lemon [other options] <source file> 211 \endverbatim 212 213 The argument <tt>-lemon</tt> tells the compiler that we are using the 214 installed library LEMON. 215 216 \subsection compile_user_local If LEMON is Installed User-Local 217 218 You have to give more options to the compiler if LEMON is installed 219 user-local into a directory (denoted by <tt><dir></tt>) 220 or if you just skipped the step <tt>make install</tt>. 221 In the later case <tt><dir></tt> denotes the directory in which the 222 the \c make command have been performed. 223 224 \verbatim 225 g++ -lemon -I <dir> -L <dir>/lemon/.libs [other options] <source file> 226 \endverbatim 227 228 \subsubsection compile_use_pkg_config Use pkg-config 229 230 \todo Write this sub-subsection (\ref compile_use_pkg_config). 188 231 189 232 */ -
mainpage.dox
r7 r9 24 24 25 25 - \ref intro 26 - \ref getting_started26 - \ref basic_concepts "Basic Concepts" 27 27 - \ref hello_lemon 28 - \ref basic_concepts "Basic Concepts"29 28 - \ref digraph_build "Build and Modify a Digraph" 30 29 - \ref digraph_iterate "Iterate Over the Elements" … … 60 59 - \ref requirements_lp 61 60 - \ref install_from_source 62 - \ref install_system_rpm "From rpm" 63 - \ref install_user "Install Locally to the User" 61 - \ref install_hg 62 - \ref install_rpm 63 - \ref install_user 64 - \ref compile_codes 65 - \ref compile_system_wide 66 - \ref compile_user_local 64 67 65 68 */
Note: See TracChangeset
for help on using the changeset viewer.