We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I downloaded zlib-1.2.11 from its official website and compiled it. I referenced zlib with:
-DZLIB_LIBRARY=/usr/local/zlib/lib/ -DZLIB_INCLUDE_DIR=/usr/local/zlib/include/
but I'm getting this error:
[ 64%] Built target tdclient [ 64%] Linking CXX executable generate_json /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status td/generate/CMakeFiles/generate_json.dir/build.make:123: recipe for target 'td/generate/generate_json' failed make[2]: *** [td/generate/generate_json] Error 1 CMakeFiles/Makefile2:916: recipe for target 'td/generate/CMakeFiles/generate_json.dir/all' failed make[1]: *** [td/generate/CMakeFiles/generate_json.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
If I reference source with -DZLIB_LIBRARY=/home/aex12/srcs/zlib-1.2.11/ I get a different error on same step
-DZLIB_LIBRARY=/home/aex12/srcs/zlib-1.2.11/
[ 64%] Linking CXX static library libtdclient.a [ 64%] Built target tdclient make[2]: *** No rule to make target '/home/aex12/srcs/zlib-1.2.11/', needed by 'td/generate/generate_json'. Stop. CMakeFiles/Makefile2:916: recipe for target 'td/generate/CMakeFiles/generate_json.dir/all' failed make[1]: *** [td/generate/CMakeFiles/generate_json.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
You should specify full path to the prebuilt library: cmake -DZLIB_LIBRARY=/usr/local/zlib/lib/libz.so ..
If it will not help could you try to apply patch zlib.txt and recompile with it?
Sorry, something went wrong.
@Aex12 Have you succeeded in TDLib compilation?
Despite lack of feedback, the issue should be fixed in TDLib 1.2.0.
No branches or pull requests
I downloaded zlib-1.2.11 from its official website and compiled it. I referenced zlib with:
-DZLIB_LIBRARY=/usr/local/zlib/lib/ -DZLIB_INCLUDE_DIR=/usr/local/zlib/include/
but I'm getting this error:
If I reference source with
-DZLIB_LIBRARY=/home/aex12/srcs/zlib-1.2.11/
I get a different error on same stepThe text was updated successfully, but these errors were encountered: