Hi Albert,
The key is:
/usr/bin/ld: cannot find -lJAVA_JVM_LIBRARY-NOTFOUND/libjvm.so
If PortMidi (or more specifically, CMake) knew where to find libjvm.so, it
would probably compile everything for you. When you run CMake, you should be
able to edit JAVA_JVM_LIB_PATH. This is supposed to be set automatically, but
CMake can't always find the Java installation.
Did you download the Java SDK? (See pm_linux/README_LINUX.txt) If not, start
there.
The reason for compiling pm_defaults is to give you an application that can
select default MIDI devices. Simple PortMidi apps will open the default
devices, and if none is specified, the first one PortMidi finds is the one it
uses -- often a bad choice.
Finally, you should be able to compile without building pm_defaults. You will
have to specifiy what you want to build to make. The default is everything
including pm_defaults. I think "make portmidi-static" will work, for example.
Let me know if this doesn't help.
-Roger
Albert Santoni wrote:
> Hi all,
>
> I can't compile PortMidi from SVN:
>
> a...@jupiter:/src/portmedia/portmidi/trunk$ cmake .
> -- JAVA_JVM_LIB_PATH is
> -- JAVA_INCLUDE_PATH is /usr/lib/jvm/java-6-sun/include
> -- JAVA_INCLUDE_PATH2 is /usr/lib/jvm/java-6-sun/include/linux
> -- JAVA_JVM_LIBRARY is JAVA_JVM_LIBRARY-NOTFOUND
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /src/portmedia/portmidi/trunk
> a...@jupiter:/src/portmedia/portmidi/trunk$ make
> Scanning dependencies of target pmjni
> Linking C shared library /Release/libpmjni.so
> /usr/bin/ld: cannot find -lJAVA_JVM_LIBRARY-NOTFOUND/libjvm.so
> collect2: ld returned 1 exit status
> make[2]: *** [/Release/libpmjni.so] Error 1
> make[1]: *** [pm_common/CMakeFiles/pmjni.dir/all] Error 2
> make: *** [all] Error 2
> a...@jupiter:/src/portmedia/portmidi/trunk$
>
>
> I can't find any documentation about the required Java packages to
> make PortMidi compile. Can I turn off Java somehow? I don't really
> need pm_defaults. I have all the sun-java6-blah packages installed on
> Ubuntu 9.10.
>
> Thanks!
> Albert
> _______________________________________________
> media_api mailing list
> [email protected]
> http://lists.create.ucsb.edu/mailman/listinfo/media_api
>
>
_______________________________________________
media_api mailing list
[email protected]
http://lists.create.ucsb.edu/mailman/listinfo/media_api