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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Nikita Barawade



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. *************************************************************************************************************************************************************
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

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

Kornel Benko
Am Donnerstag, 10. Dezember 2015 um 12:38:11, schrieb Nikita Barawade <[hidden email]>

>
> 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

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

J Decker
In reply to this post by Nikita Barawade
is '.' in your LD_LIBRARY_PATH and/or /etc/ld.config?

otherwise 'LD_LIBRARY_PATH=. ./LLAPI_TestApp' should work... or export
LD_LIBRARY_PATH=. for a more semi-permanent solution?

On Thu, Dec 10, 2015 at 4:38 AM, Nikita Barawade
<[hidden email]> wrote:

>
>
> 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.
> *************************************************************************************************************************************************************
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

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

Nikita Barawade


Hi Decker,

Thank you for reply !
export LD_LIBRARY_PATH works but how to achieve  by cmake or what are proper settings for RPATH?

I tried settings from "Always full RPATH"   at https://cmake.org/Wiki/CMake_RPATH_handling , but got same error.
From this link , if RPATH is not set then linker will search the libraries in LD_LIBRARY_PATH ,so setting only RPATH should work .
Please correct if I am wrong . Please share your inputs.


Regards,
Nikita

________________________________________
From: J Decker <[hidden email]>
Sent: 10 December 2015 10:10 PM
To: Nikita Barawade
Cc: [hidden email]
Subject: Re: [CMake] error while loading shared libraries: libLLAPI.so: cannot open shared object file: No such file or directory

is '.' in your LD_LIBRARY_PATH and/or /etc/ld.config?

otherwise 'LD_LIBRARY_PATH=. ./LLAPI_TestApp' should work... or export
LD_LIBRARY_PATH=. for a more semi-permanent solution?

On Thu, Dec 10, 2015 at 4:38 AM, Nikita Barawade
<[hidden email]> wrote:

>
>
> 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.
> *************************************************************************************************************************************************************
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
************************************************************************************************************************************************************* 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 ac
 cepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake