Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/rism-digital/verovio int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
lpugin committed Feb 28, 2024
2 parents f8f4c11 + 38c4429 commit 46bc577
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions bindings/c/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
## C function interface

To use Verovio with any language that supports a plain C function interface you will first need to build Verovio as a library
To use Verovio with any language that supports a plain C function interface you will first need to build Verovio as a library.
The compiled library (`libverovio.so`/`verovio.dll`) will contain callable C symbols. These wrapper symbols are defined in `./tools/c_wrapper.h`

### Building libverovio.so on Linux

```sh
cd tools
cmake -DBUILD_AS_LIBRARY=ON .
make
```

The compiled library (`libverovio.so`) will contain callable C symbols. These wrapper symbols are defined in `./tools/c_wrapper.h`
### Building verovio.dll on Windows using Microsoft Visual Studio Build Tools 2022

In addition to Microsoft Visual Studio Build Tools 2022, also [Make](https://gnuwin32.sourceforge.net/packages/make.htm) is used.

Open `x64 Native Tools Command Prompt for VS 2022` and enter:

```
cd cmake
cmake -G "Unix Makefiles" -DBUILD_AS_LIBRARY=ON -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE .
make
```


## Complete example in C

Expand Down

0 comments on commit 46bc577

Please sign in to comment.