[CMake] error while loading shared libraries: libLLAPI.so: cannot open shared object file: No such file or directory

Nikita Barawade nikita.barawade at einfochips.com
Thu Dec 10 07:38:11 EST 2015



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


Regards,
Nikita
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151210/ea92026d/attachment-0001.html>


More information about the CMake mailing list