PortMidi uses Java to implement pmdefaults, a sort of "chooser" that lets you pick which devices will be the default input and output devices for PortMidi. This allows you to make simple applications without built-in interfaces for choosing Midi devices.
I hadn't thought about creating PortMidi without pmdefaults -- it's possible, but at least on Linux, makefiles will complain if Java does not exist. The expectation is that you have the Java SDK from Sun installed somewhere. I used Java SE Development Kit: JDK 6 Update 16. The JAVA_INCLUDE_PATH problem is even simpler: if CMake can't find Java, it wants you to find it. Just run the graphical interface (e.g. "cd portmidi; ccmake ." might be the MinGW thing to run) and enter a value for JAVA_INCLUDE_PATH and JAVA_INCLUDE_PATH2. Normally these are to the include and include/win32 (or maybe include/linux) directories in the JDK files. If you have to change anything in the CMakeLists.txt files or have some installation procedures to share, please send them and I can put them on the Wiki or give you access to do it directly. -Roger Aviel wrote: > Hi Roger, > > Thanks for your reply :) > > I succeeded to checkout Ok. > > I currently don't have MSVC and was thinking of using MinGW. > > I see you are using the CMake build tool. > > Googling a bit I also saw that CMake (verions 2.6 and above I think) has an > Eclipse CDT4 generator, i.e. it is able to produce Eclipse workspace that will > use Mingw to compile, this seems very handy. > > So I went ahead and tried it, but it complains about JAVA_INCLUDE_PATH and > JAVA_INCLUDE_PATH2 not being found ... > > Now I don't really need JAVA bindings for PortMidi, but assuming I'm willing > to install a Java development environment, what exactly do I need? Java SDK ? > > what should I be looking for ? > > Thanks in advance, Gal. > > > _______________________________________________ > media_api mailing list > media_api@create.ucsb.edu > http://lists.create.ucsb.edu/mailman/listinfo/media_api > > _______________________________________________ media_api mailing list media_api@create.ucsb.edu http://lists.create.ucsb.edu/mailman/listinfo/media_api