td icon indicating copy to clipboard operation
td copied to clipboard

IMPORTED_LOCATION not set for imported target "Td::tdclient"

Open Igwanya opened this issue 1 year ago • 3 comments

Hello offer a solution to this problem that i have. Also explain the reason why TdLib is not on the vcpkg repository. Thanks

td_build_cmake_error.txt

Igwanya avatar Aug 30 '24 12:08 Igwanya

The errors means that you didn't install TDLib for the mentioned configurations, but trying to use it.

TDLib is suppposed to be embedded into a corresponding Telegram app and not used as a standalone system-wide library.

levlam avatar Aug 31 '24 07:08 levlam

OK. Retried changing the CMAKE_INSTALL_PREFIX var to no success. I thought i missed a sted in the build instruction for cmake c++ projects but i did not. How do i successfuly install the lib system wide, the telegram app is installed?

Igwanya avatar Sep 01 '24 09:09 Igwanya

Usually, you install only Release library version system-wide. There is no easy way to use multiple versions of the same library simultaneously. Likely, you can add -DCMAKE_DEBUG_POSTFIX=d to CMake configuration options and install both Debug and Release libraries to the same directory after that.

levlam avatar Sep 02 '24 08:09 levlam