atsushieno / fluidsynth-midi-service-j

JNA-based fluidsynth MIDI device service effort
MIT License
26 stars 8 forks source link

[enhancement] eliminate need for oboe-c.so #10

Closed atsushieno closed 5 years ago

atsushieno commented 5 years ago

Currently there are two shared libraries to build: libfluidsynth.so and liboboe-c.so.

The latter was introduced, not for need for C API (we can just build C++ code if we enable CXX in top-level CMakeLists.txt), but rather to separate standard C++ implementation for glib (gnustl) and Oboe (libc++).

[armeabi-v7a] SharedLibrary  : libfluidsynth.so
/sources/fluidsynth-midi-service-j/external/fluidsynth/src/utils/fluid_sys.c:0: error: undefined reference to 'stderr'
/sources/fluidsynth-midi-service-j/external/fluidsynth/src/utils/fluid_sys.c:0: error: undefined reference to 'in6addr_any'
/sources/fluidsynth-midi-service-j/external/fluidsynth/src/midi/fluid_midi_router.c:0: error: undefined reference to 'stdout'
/sources/fluidsynth-midi-service-j/external/fluidsynth/src/midi/fluid_midi_router.c:0: error: undefined reference to 'stdout'
/sources/fluidsynth-midi-service-j/external/fluidsynth/src/midi/fluid_midi_router.c:0: error: undefined reference to 'stdout'
/sources/fluidsynth-midi-service-j/external/fluidsynth/src/midi/fluid_midi_router.c:0: error: undefined reference to 'stdout'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

But gnustl should be eliminated.

atsushieno commented 5 years ago

old issue.