jdksmidi icon indicating copy to clipboard operation
jdksmidi copied to clipboard

Issue Compiling/Using on Mac OSX 10.9.3

Open SeanROlszewski opened this issue 10 years ago • 3 comments

Hello!

I've been trying unsuccessfully for two days now to try and compile this library to use within my code on Mac OSX Mavericks, 10.9.3. I've tried using the included build systems (Cmake, Xcode, and MagicMake) and no matter how I try to link the built library and includes, I always get a file not found error when compiling:

'jdkmidi/world.h' file not found

I'm using the following command within a makefile, both as a standalone compiled from the command line, and as an Xcode 5 project with the jdksmidi library as a dependency:

`g++ -g -o File File.cpp -l jdksmidi -I /usr/include/jdksmidi``

Is there something I'm missing, or otherwise doing incorrectly? I can compile the library fine, but getting it to actually link and find all the source files is the challenge here. I feel I may not be doing something correct.

SeanROlszewski avatar Jul 03 '14 18:07 SeanROlszewski

The correct name of the file should be 'jdksmidi/world.h' and not 'jdkmidi'

ncassetta avatar Jul 06 '14 08:07 ncassetta

Thanks for your response!

I tried changing that, and I still got the same error. I can't quite figure out what I'm doing wrong. I haven't had an issue getting many open source libraries to work, so I feel I may be overlooking a subtle detail.

SeanROlszewski avatar Jul 08 '14 17:07 SeanROlszewski

You must check file tree. For example, there is /myincludes/foobar/jdksmidi/world.h, and use #include "jdksmidi/world.h, so your INCLUDEPATH must set to /myincludes/foobar/

rsp4jack avatar Dec 17 '21 14:12 rsp4jack