grame-cncm / libmusicxml

A C/C++ library to support the MusicXML format.
Mozilla Public License 2.0
152 stars 33 forks source link

How to use libmusicxml2.a file? #42

Closed SaqG closed 4 years ago

SaqG commented 4 years ago

I used cmake to generate the libmusicxml2.a file, but I did not see the Headers file. It cannot be used when importing into the project. What should I do?

dfober commented 4 years ago

The header file is in src/interface/libmusicxml.h Is it what you're looking for?

SaqG commented 4 years ago

@dfober Thanks, I want to add it to my IOS app and use it to display music scores.

dfober commented 4 years ago

Fine! Do you already have a rendering engine for the music scores?

SaqG commented 4 years ago

@dfober No, I don't. I'm going to implement it with libmusicxml. Can it do that?

dfober commented 4 years ago

You should have a look at the guido engine, the library embeds a converter from musicxml to the guido format, thus that should be quite straightforward..

SaqG commented 4 years ago

Yes, I'm learning about it, but I can't generate a library that IOS can use, because I'm new to cmake. Can you help me?

dfober commented 4 years ago

the makefile has a target ios. All you have to do is:

$ make ios

(from the build folder)

SaqG commented 4 years ago

I did that, but I had problems after "make ios"

The following build commands failed: CompileC iosdir/guidolib.build/Release-iphoneos/GUIDOEngine.build/Objects-normal/arm64/PianoRollTrajectory.o /Users/saq/Desktop/guidolib-dev/src/engine/alt-rep/PianoRollTrajectory.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) make: *** [ios] Error 65