diff options
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/index.html b/docs/index.html index 4076380..a11dfd6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,10 +83,13 @@ $(document).ready(function(){initNavTree('index.html','');}); <div class="title">tgbot-cpp Documentation</div> </div> </div><!--header--> <div class="contents"> -<div class="textblock"><h1><a class="anchor" id="Compilation"></a> -Compilation</h1> -<p>Firstly you need to install some dependencies such as Boost and build tools such as CMake. On Debian-based distibutives you can do it with these commands: </p><div class="fragment"><div class="line">sudo apt-get install g++ make binutils cmake libssl-dev libboost-system-dev libboost-iostreams-dev</div></div><!-- fragment --><p>To compile the library execute this commands: </p><div class="fragment"><div class="line">cd /path/where/you/have/cloned/the/library/repository</div><div class="line">cmake .</div><div class="line">make -j4</div><div class="line">sudo make install</div></div><!-- fragment --><p>That's all. All you have to do now is just link compiled library to your project.</p> -<p>If you want, you can also use Docker to build and run your bot. Just set the base image of your's Dockerfile to reo7sp/tgbot-cpp.</p> +<div class="textblock"><p><a href="https://github.com/reo7sp">Go to GitHub</a></p> +<h1><a class="anchor" id="lib_compile"></a> +Library compilation</h1> +<p>Firstly you need to install some dependencies such as Boost and build tools such as CMake. On Debian-based distibutives you can do it with these commands: </p><div class="fragment"><div class="line">sudo apt-get install g++ make binutils cmake libssl-dev libboost-system-dev libboost-iostreams-dev</div></div><!-- fragment --><p>To compile the library execute this commands: </p><div class="fragment"><div class="line">cd /path/where/you/have/cloned/the/library/repository</div><div class="line">cmake .</div><div class="line">make -j4</div><div class="line">sudo make install</div></div><!-- fragment --><h1><a class="anchor" id="bot_compile"></a> +Bot compilation</h1> +<p>With CMake: <a href="samples/echobot/CMakeLists.txt">Example CMakeLists.txt</a></p> +<p>Without CMake: </p><div class="fragment"><div class="line">g++ telegram_bot.cpp -o telegram_bot --std=c++11 -I/usr/local/include -lTgBot -lboost_system -lboost_iostreams -lssl -lcrypto -lpthread</div></div><!-- fragment --><p>You can use Docker to build and run your bot. Set the base image of your's Dockerfile to <a href="https://hub.docker.com/r/reo7sp/tgbot-cpp/">reo7sp/tgbot-cpp</a>.</p> <h1><a class="anchor" id="Samples"></a> Samples</h1> <p>All samples are located <a href="https://github.com/reo7sp/tgbot-cpp/tree/master/samples">here</a></p> @@ -101,7 +104,7 @@ Licence</h1> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> - <li class="footer">Generated on Sun Jan 15 2017 02:46:17 for tgbot-cpp by + <li class="footer">Generated on Thu Jan 26 2017 14:29:55 for tgbot-cpp by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> </ul> |