No such file or directory
tepkuh opened this issue · 2 comments
tepkuh commented
Hello Guys
I can't build/compile tdlight
os: CentOS 8
first of all i can`t found "./compile-all.sh" and i try to use "compile-natives-package.sh"
but without success you could see my output
# ./compile-natives-package.sh
Generating maven project...
Current directory: /opt/3/tdlight-java-natives-master
Operating system: linux
Architecture: amd64
Td implementation: tdlight
Deleting old data...
Creating missing folders...
Generating pom.xml...
Copying source files...
Done.
Generating td tools...
Current directory: /opt/3/tdlight-java-natives-master
Operating system: linux
Architecture: amd64
Td implementation: tdlight
CPU cores count: -- -j1
CMake extra arguments: ''
Deleting old data...
Copying implementation files...
Patching implementation files...
Configuring CMake...
-- The CXX compiler identification is GNU 8.3.1
-- The C compiler identification is GNU 8.3.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find ccache (this is NOT an error)
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1g")
-- Found OpenSSL: /usr/include /usr/lib64/libssl.so;/usr/lib64/libcrypto.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Performing Test HAVE_STD14
-- Performing Test HAVE_STD14 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WIMPLICIT_FALLTHROUGH_2
-- Performing Test HAVE_CXX_FLAG_WIMPLICIT_FALLTHROUGH_2 - Success
-- Performing Test HAVE_CXX_FLAG_WPOINTER_ARITH
-- Performing Test HAVE_CXX_FLAG_WPOINTER_ARITH - Success
-- Performing Test HAVE_CXX_FLAG_WCAST_QUAL
-- Performing Test HAVE_CXX_FLAG_WCAST_QUAL - Success
-- Performing Test HAVE_CXX_FLAG_WSIGN_COMPARE
-- Performing Test HAVE_CXX_FLAG_WSIGN_COMPARE - Success
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_BRANCHES
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_BRANCHES - Success
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_COND
-- Performing Test HAVE_CXX_FLAG_WDUPLICATED_COND - Success
-- Performing Test HAVE_CXX_FLAG_WALLOC_ZERO
-- Performing Test HAVE_CXX_FLAG_WALLOC_ZERO - Success
-- Performing Test HAVE_CXX_FLAG_WLOGICAL_OP
-- Performing Test HAVE_CXX_FLAG_WLOGICAL_OP - Success
-- Performing Test HAVE_CXX_FLAG_WTAUTOLOGICAL_COMPARE
-- Performing Test HAVE_CXX_FLAG_WTAUTOLOGICAL_COMPARE - Success
-- Performing Test HAVE_CXX_FLAG_WVLA
-- Performing Test HAVE_CXX_FLAG_WVLA - Success
-- Performing Test HAVE_CXX_FLAG_WNON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_FLAG_WNON_VIRTUAL_DTOR - Success
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PARAMETER
-- Performing Test HAVE_CXX_FLAG_WUNUSED_PARAMETER - Success
-- Performing Test HAVE_CXX_FLAG_WCONVERSION
-- Performing Test HAVE_CXX_FLAG_WCONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_WSIGN_CONVERSION
-- Performing Test HAVE_CXX_FLAG_WSIGN_CONVERSION - Success
-- Performing Test HAVE_CXX_FLAG_WCXX14_COMPAT_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_WCXX14_COMPAT_PEDANTIC - Failed
-- Performing Test HAVE_CXX_FLAG_WDEPRECATED
-- Performing Test HAVE_CXX_FLAG_WDEPRECATED - Success
-- Performing Test HAVE_CXX_FLAG_WUNUSED_COMMAND_LINE_ARGUMENT
-- Performing Test HAVE_CXX_FLAG_WUNUSED_COMMAND_LINE_ARGUMENT - Failed
-- Performing Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS
-- Performing Test HAVE_CXX_FLAG_QUNUSED_ARGUMENTS - Failed
-- Performing Test HAVE_CXX_FLAG_WODR
-- Performing Test HAVE_CXX_FLAG_WODR - Success
-- Performing Test HAVE_CXX_FLAG_FLTO_ODR_TYPE_MERGING
-- Performing Test HAVE_CXX_FLAG_FLTO_ODR_TYPE_MERGING - Success
-- Performing Test HAVE_CXX_FLAG_WMAYBE_UNINITIALIZED
-- Performing Test HAVE_CXX_FLAG_WMAYBE_UNINITIALIZED - Success
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found ZLIB: /usr/include /usr/lib64/libz.so
-- Found JNI: /usr/java/jdk-11.0.11/lib/libjawt.so
-- Found JNI: /usr/java/jdk-11.0.11/include;/usr/java/jdk-11.0.11/include/linux;/usr/java/jdk-11.0.11/include /usr/java/jdk-11.0.11/lib/libjawt.so;/usr/java/jdk-11.0.11/lib/server/libjvm.so
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Could NOT find Readline (missing: READLINE_INCLUDE_DIR READLINE_LIBRARY)
-- Could NOT find Readline (this is NOT an error)
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/3/tdlight-java-natives-master/generated/td_tools
Generating cross compilation tools...
Scanning dependencies of target generate_mime_types_gperf
[ 4%] Building CXX object tdutils/generate/CMakeFiles/generate_mime_types_gperf.dir/generate_mime_types_gperf.cpp.o
[ 4%] Linking CXX executable generate_mime_types_gperf
[ 4%] Built target generate_mime_types_gperf
Scanning dependencies of target tdmime_auto
[ 4%] Generating /opt/3/tdlight-java-natives-master/generated/implementation/tdutils/generate/auto/mime_type_to_extension.gperf, /opt/3/tdlight-java-natives-master/generated/implementation/tdutils/generate/auto/extension_to_mime_type.gperf
Extension "wmz" matches more than one type
Extension "sub" matches more than one type
[ 4%] Generating /opt/3/tdlight-java-natives-master/generated/implementation/tdutils/generate/auto/mime_type_to_extension.cpp
[ 8%] Generating /opt/3/tdlight-java-natives-master/generated/implementation/tdutils/generate/auto/extension_to_mime_type.cpp
[ 8%] Built target tdmime_auto
Scanning dependencies of target tdutils
[ 8%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/Clocks.cpp.o
[ 12%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/FileFd.cpp.o
[ 12%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/IPAddress.cpp.o
[ 12%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/MemoryMapping.cpp.o
[ 12%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/path.cpp.o
[ 16%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/PollFlags.cpp.o
[ 16%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/rlimit.cpp.o
[ 16%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/ServerSocketFd.cpp.o
[ 16%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/signals.cpp.o
[ 20%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/sleep.cpp.o
[ 20%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/SocketFd.cpp.o
[ 20%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/stacktrace.cpp.o
[ 20%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/Stat.cpp.o
[ 25%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/StdStreams.cpp.o
[ 25%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/thread_local.cpp.o
[ 25%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/UdpSocketFd.cpp.o
[ 25%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/uname.cpp.o
[ 25%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/user.cpp.o
[ 29%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/wstring_convert.cpp.o
[ 29%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/Epoll.cpp.o
[ 29%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/EventFdBsd.cpp.o
[ 29%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/EventFdLinux.cpp.o
[ 33%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/EventFdWindows.cpp.o
[ 33%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/Iocp.cpp.o
[ 33%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/KQueue.cpp.o
[ 33%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/NativeFd.cpp.o
[ 37%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/Poll.cpp.o
[ 37%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/Select.cpp.o
[ 37%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/ThreadIdGuard.cpp.o
[ 37%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/ThreadPthread.cpp.o
[ 37%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/port/detail/WineventPoll.cpp.o
[ 41%] Building CXX object tdutils/CMakeFiles/tdutils.dir/generate/auto/mime_type_to_extension.cpp.o
[ 41%] Building CXX object tdutils/CMakeFiles/tdutils.dir/generate/auto/extension_to_mime_type.cpp.o
[ 41%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/base64.cpp.o
[ 41%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/BigNum.cpp.o
[ 45%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/buffer.cpp.o
[ 45%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/BufferedUdp.cpp.o
[ 45%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/check.cpp.o
[ 45%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/crypto.cpp.o
[ 50%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/ExitGuard.cpp.o
[ 50%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/FileLog.cpp.o
[ 50%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/filesystem.cpp.o
[ 50%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/find_boundary.cpp.o
[ 54%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Gzip.cpp.o
[ 54%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/GzipByteFlow.cpp.o
[ 54%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Hints.cpp.o
[ 54%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/HttpUrl.cpp.o
[ 54%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/JsonBuilder.cpp.o
[ 58%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/logging.cpp.o
[ 58%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/misc.cpp.o
[ 58%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/MpmcQueue.cpp.o
[ 58%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/OptionParser.cpp.o
[ 62%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/PathView.cpp.o
[ 62%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Random.cpp.o
[ 62%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/SharedSlice.cpp.o
[ 62%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Slice.cpp.o
[ 66%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/StackAllocator.cpp.o
[ 66%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Status.cpp.o
[ 66%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/StringBuilder.cpp.o
[ 66%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/tests.cpp.o
[ 66%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Time.cpp.o
[ 70%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/Timer.cpp.o
[ 70%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/TsFileLog.cpp.o
[ 70%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/tl_parsers.cpp.o
[ 70%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/translit.cpp.o
[ 75%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/unicode.cpp.o
[ 75%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/utf8.cpp.o
[ 75%] Building CXX object tdutils/CMakeFiles/tdutils.dir/td/utils/MimeType.cpp.o
[ 75%] Linking CXX static library libtdutils.a
[ 75%] Built target tdutils
Scanning dependencies of target tdtl
[ 75%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_config.cpp.o
[ 79%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_core.cpp.o
[ 79%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_file_outputer.cpp.o
[ 79%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_file_utils.cpp.o
[ 79%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_generate.cpp.o
[ 83%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_outputer.cpp.o
[ 83%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_string_outputer.cpp.o
[ 83%] Building CXX object tdtl/CMakeFiles/tdtl.dir/td/tl/tl_writer.cpp.o
[ 83%] Linking CXX static library libtdtl.a
[ 83%] Built target tdtl
Scanning dependencies of target generate_json
[ 83%] Building CXX object td/generate/CMakeFiles/generate_json.dir/generate_json.cpp.o
[ 83%] Building CXX object td/generate/CMakeFiles/generate_json.dir/tl_json_converter.cpp.o
[ 83%] Linking CXX executable generate_json
[ 83%] Built target generate_json
Scanning dependencies of target configure_tl_parser
[ 83%] Configure tl-parser
sh: ./configure: No such file or directory
gmake[3]: *** [td/generate/CMakeFiles/configure_tl_parser.dir/build.make:61: td/generate/CMakeFiles/configure_tl_parser] Error 127
gmake[2]: *** [CMakeFiles/Makefile2:859: td/generate/CMakeFiles/configure_tl_parser.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:202: CMakeFiles/prepare_cross_compiling.dir/rule] Error 2
gmake: *** [Makefile:214: prepare_cross_compiling] Error 2
MarcoBuster commented
@tepkuh Clone the git repo with --recursive flag
tepkuh commented
Clone the git repo with --recursive flag
@MarcoBuster
Yeah boy) Its works, thank you very much