[CMake] error while loading shared libraries: libLLAPI.so: cannot open shared object file: No such file or directory
Kornel Benko
kornel at lyx.org
Thu Dec 10 10:09:40 EST 2015
Am Donnerstag, 10. Dezember 2015 um 12:38:11, schrieb Nikita Barawade <nikita.barawade at einfochips.com>
>
> Hi,
>
> getting following error when trying to run LLAPI_TestApp
>
> ./LLAPI_TestApp: error while loading shared libraries: libLLAPI.so: cannot open shared object file: No such file or directory
>
> Both LLAPI_TestApp and libLLAPI.so are present in same directory Bin/Wind.
>
>
> CMakeLists.txt for LLAPI_TestApp :
>
>
> include_directories (../Include)
> include_directories (../../LLAPI/Include)
>
> # collect all cpp files
> file (GLOB ALL_SOURCES
> "*.cpp")
>
> # Adds sources to the Solution Explorer
> add_executable ( LLAPI_TestApp ${ALL_SOURCES})
>
> target_link_libraries (LLAPI_TestApp LLAPI)
>
> install (TARGETS LLAPI_TestApp
> RUNTIME DESTINATION ${PROJECT_BINARY_DIR}/../../../Bin/Wind)
>
> set(CMAKE_INSTALL_RPATH "${PROJECT_BINARY_DIR}/../../../Bin/Wind ")
> set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
>
>
> Searched whole day on Internet but could not fix it .
>
> Pls guide
>
And where is your call to create the library?
e.g.
add_library(LLAPI ${lib_sources})
?
> Regards,
> Nikita
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151210/8975946a/attachment.sig>
More information about the CMake
mailing list