Accessing .so libraries using dlopen() throws undefined symbol error

后端 未结 4 1735
生来不讨喜
生来不讨喜 2021-02-04 09:55

I\'m trying to dynamically load a camera library .so file into a Linux executable to gain access to simple camera functions.

I\'m attempting to do this by:



        
4条回答
  •  轮回少年
    2021-02-04 10:40

    The ldd command can be used to display shared library dependencies.

    ldd libCamera.so
    

    Once you know the dependencies, you can use nm to show the symbols in each library.

    nm -DC libCamera.so
    

提交回复
热议问题