kinath_ru
kinath_ru

Reputation: 4678

Converting a C++ library to a .so / .dll shared library

I am using the GRT library which is written in C++ and I want to integrate that with Java using JNA. To do that I want to make that a shared library (.dll/.so) . But I have no idea, how to do this.

Here is the link to GRT library.

https://github.com/nickgillian/grt/tree/master/GRT

I just want to call the methods from this C++ library.

Any help would be appreciated. Thanks in advance.

Upvotes: 0

Views: 375

Answers (1)

moosingin3space
moosingin3space

Reputation: 326

From https://github.com/nickgillian/grt/tree/master/build :

$ cmake .. -DBUILD_STATIC_LIB=OFF
$ make

There should then be a libgrt.so file somewhere in the build directory.

Upvotes: 3

Related Questions