| this fixed it:
customCPPPATH.append('/usr/lib/jvm/java/include')
customCPPPATH.append('/usr/lib/jvm/java/include/linux')
now I need to figure out why it doesn't build lib_jcsound.so
Steven Yi wrote:
> Hi Florin,
>
> Instead of patching SConstruct, you might want to try setting the
> value in custom.py, using something like
> customCPPPATH='/usr/lib/jvm/java/include/'. This is what I've done on
> Fedora at least.
>
> steven
>
> On Mon, Jul 21, 2008 at 2:31 PM, Florin Andrei wrote:
>> Building 5.08 on Ubuntu 7.10 with:
>>
>> scons useDouble=1 install=1 buildInterfaces=1 buildJavaWrapper=1
>> dynamicCsoundLibrary=1 prefix=/opt/csound
>>
>> It fails to detect jni.h even though Java is properly installed (the Sun
>> Java packages provided by the distro).
>>
>> $ java -version
>> java version "1.6.0_03"
>> Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
>> Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)
>>
>> To detect jni.h I made this patch:
>>
>> --- SConstruct.old 2008-07-15 17:22:42.000000000 -0700
>> +++ SConstruct 2008-07-15 17:37:09.000000000 -0700
>> @@ -589,7 +589,7 @@
>> tmp = "/System/Library/Frameworks/JavaVM.Framework/Headers/jni.h"
>> javaFound = configure.CheckHeader(tmp, language = "C++")
>> else:
>> - javaFound = configure.CheckHeader("jni.h", language = "C++")
>> + javaFound = configure.CheckHeader("/usr/lib/jvm/java/include/jni.h",
>> language = "C++")
>> if getPlatform() == 'linux' and not javaFound:
>> if commonEnvironment['buildInterfaces'] != '0':
>> if commonEnvironment['buildJavaWrapper'] != '0':
>>
>> Now it finds that file but it hangs while testing it:
>>
>> Checking for SWIG... no
>> Checking for C header file Python.h... no
>> Checking for C header file /usr/include/python2.5/Python.h... no
>> Checking for C header file /usr/local/include/python2.5/Python.h... no
>> Checking for C++ header file /usr/lib/jvm/java/include/jni.h...
>>
>> It just stops there forever.
>> If I remove the jni patch it builds fine but without the Java wrapper.
>>
>> Any ideas?
>>
>> --
>> Florin Andrei
>>
>> http://florin.myip.org/
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
--
Florin Andrei
http://florin.myip.org/
|