Closed EmelyanenkoK closed 4 years ago
I set up an Ubuntu 16.04 system now and tested. It appears Ubuntu 16.04 comes with CMake 3.5, while nchat needs a feature in CMake >= 3.10 to correctly detect the wide-version of the dependency libncursesw.
If possible, try upgrading CMake to a version >= 3.10, alternatively as a workaround you can change the following line in CMakeLists.txt
:
target_link_libraries(nchat PUBLIC tdclientshared ${CURSES_NCURSES_LIBRARY})
to:
target_link_libraries(nchat PUBLIC tdclientshared ncursesw)
and try build again.
For my own reference; previously encountered in #13.
Thanks, trying CMakeLists.txt
update right now.
target_link_libraries
update works. Thanks again!
During building I get the following problem:
Googling says that it is related to problem with linking ncurses. Low memory way of compilation is used (with
SplitSource.php
). The problem occur both with gcc and clang. I'm using Ubuntu 16.04. Currently I have the following version libncursesw5-dev installed.