JNI dependent libraries

后端 未结 6 539
小鲜肉
小鲜肉 2020-12-31 03:52

I\'m running a library via JNI (I didn\'t write it), and internally it calls another DLL. I get an error saying \"Can\'t find dependent libraries\" unless I put the path of

6条回答
  •  青春惊慌失措
    2020-12-31 04:30

    For me, making a static build worked, which compiles with:

    g++ -static
    

    It adds the dependent libraries in the build itself.

提交回复
热议问题