Better README.md.
GitOrigin-RevId: 1eb3febfd362c2e32a5ed4b1bf38ce88652bd2c0
This commit is contained in:
parent
891bb6f39e
commit
1b75824e3e
@ -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.
|
||||
|
||||
<a name="linux"></a>
|
||||
#### Linux
|
||||
|
@ -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.
|
||||
|
@ -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=<full path to TDLib sources>/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/`.
|
||||
|
@ -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)
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user