diff --git a/README.md b/README.md index b1170921..57ba19f0 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,8 @@ C:\src\vcpkg> .\vcpkg.exe install openssl:x64-windows openssl:x86-windows zlib:x cmake -DCMAKE_TOOLCHAIN_FILE=C:\src\vcpkg\scripts\buildsystems\vcpkg.cmake .. ``` -To build 64-bit `TDLib` using MSVC you will need too additionally specify option `-A x64` to CMake. +To build 64-bit `TDLib` using MSVC, you will need to additionally specify parameter `-A x64` to CMake. +To build `TDLib` in Release mode using MSVC, you will need to additionally specify parameter `--config Release` to the `cmake --build .` command. #### Linux diff --git a/example/cpp/README.md b/example/cpp/README.md index 36c34869..9e5de531 100644 --- a/example/cpp/README.md +++ b/example/cpp/README.md @@ -20,3 +20,5 @@ cmake --build . ``` Documentation for all available classes and methods can be found at https://core.telegram.org/tdlib/docs. + +To run `tdjson_example` you may need to manually copy a `tdjson` shared library from `td/bin` to a directory containing built binaries. diff --git a/example/java/README.md b/example/java/README.md index 0ef26150..b896ee43 100644 --- a/example/java/README.md +++ b/example/java/README.md @@ -11,7 +11,7 @@ cd jnibuild cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td .. cmake --build . --target install ``` -If you want to compile TDLib for 64-bit Java on Windows, you will also need to add `-G "Visual Studio 14 2015 Win64"` option to CMake. +If you want to compile TDLib for 64-bit Java on Windows using MSVC, you will also need to add `-A x64` option to CMake. Then you can build this example: ``` @@ -22,7 +22,7 @@ cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=/example/j cmake --build . --target install ``` -Compiled TDLib shared library and Java example after that will be placed in bin/ and Javadoc documentation in docs/. +Compiled TDLib shared library and Java example after that will be placed in bin/ and Javadoc documentation in `docs/`. Now you can run Java example: ``` @@ -32,4 +32,4 @@ java -Djava.library.path=. org/drinkless/tdlib/example/Example If you get "Could NOT find JNI ..." error from CMake, you need to specify to CMake path to the installed JDK, for example, "-DJAVA_HOME=/usr/lib/jvm/java-8-oracle/". -If you get java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared libraries to bin/. +If you get java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared libraries to `bin/`. diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index c53e8107..4b78d783 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -123,7 +123,7 @@ namespace mtproto { * 20: message is to old -- full resend. (or fail query, if we are afraid of double send) * * 32: seq_no is too low. (msg_id1 < msg_id2 <==> seq_no1 < seq_no2). Error and fail connection - * 33: seq_no is too hight. Error and fail connection. + * 33: seq_no is too high. Error and fail connection. * 34: (?) an even msg_seqno expected (irrelevant message), but odd received. (Fail and call a developer...) * 35: (?) odd msg_seqno expected (relevant message), but even received (Fail and call a developer) *