From kde-devel Mon Apr 28 06:10:26 2008 From: "=?ISO-8859-1?Q?Percy_Camilo_Trive=F1o_Aucahuasi?=" Date: Mon, 28 Apr 2008 06:10:26 +0000 To: kde-devel Subject: [kdesupport] Soprano backend: Sesame2, Java JNI and CMake Message-Id: <579229230804272310l5a85e93ftf8539cb7f99a97a8 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=120936312503149 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1646590127==" --===============1646590127== Content-Type: multipart/alternative; boundary="----=_Part_4027_13631660.1209363026938" ------=_Part_4027_13631660.1209363026938 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello there, everytime that I wanted build sesame2 backend, I got this message: "Could not find Java JNI" so I checked the cmake code (related to find the JNI): http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindJNI.cmake?root=CMake&view=markup And here I noticed that the path used is "JAVA_JVM_LIB_PATH", whereas the soprano/sesame2 path is: "JAVA_JVM_LIBRARY" ( http://websvn.kde.org/trunk/kdesupport/soprano/CMakeLists.txt?view=markup) ... so the only way to install the sesame backend were add this lines in soprano/CMakeLists.txt ... before find_package(JNI) set(JAVA_JVM_LIBRARY /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/amd64) set(JAVA_INCLUDE_PATH /usr/lib/jvm/java-6-sun-1.6.0.03/include/) My question is: why in the ../kdesupport/soprano/CMakeLists.txt has a path (variable) that is not supported by CMake? .. maybe I'm doing something wrong. Percy pd: By the way, my system: linux: 2.6.23-1-amd64 #1 SMP SO:Debian 4.2.3-2 gcc:gcc (GCC) 4.2.3 qt:Using Qt version 4.4.0-rc1 kde:4.00.71 (KDE 4.0.71 (Alpha1) JRE and JDK from debian repo: Java(TM) SE Runtime Environment (build 1.6.0_03-b05) ------=_Part_4027_13631660.1209363026938 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello there, everytime that I wanted build sesame2 backend, I got this message: "Could not find Java JNI" so I checked the cmake code (related to find the JNI):

http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindJNI.cmake?root=CMake&view=markup

And here I noticed that the path used is "JAVA_JVM_LIB_PATH", whereas the soprano/sesame2 path is: "JAVA_JVM_LIBRARY" (http://websvn.kde.org/trunk/kdesupport/soprano/CMakeLists.txt?view=markup) ... so the only way to install the sesame backend were add this lines in soprano/CMakeLists.txt ... before find_package(JNI)

set(JAVA_JVM_LIBRARY /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/amd64)
set(JAVA_INCLUDE_PATH /usr/lib/jvm/java-6-sun-1.6.0.03/include/)

My question is: why in the ../kdesupport/soprano/CMakeLists.txt has a path (variable) that is not supported by CMake? .. maybe I'm doing something wrong.

Percy

pd: By the way, my system:
linux: 2.6.23-1-amd64 #1 SMP
SO:Debian 4.2.3-2
gcc:gcc (GCC) 4.2.3
qt:Using Qt version 4.4.0-rc1
kde:4.00.71 (KDE 4.0.71 (Alpha1)
JRE and JDK from debian repo: Java(TM) SE Runtime Environment (build 1.6.0_03-b05)

------=_Part_4027_13631660.1209363026938-- --===============1646590127== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1646590127==--