Skip to content
New issue

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

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

Closed
Igwanya opened this issue Aug 30, 2024 · 3 comments
Closed

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

Igwanya opened this issue Aug 30, 2024 · 3 comments

Comments

@Igwanya
Copy link

Igwanya commented Aug 30, 2024

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

@levlam
Copy link
Contributor

levlam commented Aug 31, 2024

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.

@Igwanya
Copy link
Author

Igwanya commented Sep 1, 2024

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?

@levlam
Copy link
Contributor

levlam commented Sep 2, 2024

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 levlam closed this as completed Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants