lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3018) Lucene Native Directory implementation need automated build
Date Thu, 14 Apr 2011 15:11:06 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Varun Thacker updated LUCENE-3018:
----------------------------------

    Attachment: LUCENE-3018.patch

I have made the changes which were mentioned by Simon.

I have changed the way JNI header files are included:
{code:title=JNI header includes|borderStyle=solid}
			<includepath>
  			<pathelement location="${java.home}/../include"/>
  			<pathelement location="${java.home}/../include/linux"/>
			<for/includepath>
{code}  

The reason being when I echoed java.home it's path was :
{code:title=path|borderStyle=solid}
/usr/lib/jvm/java-6-sun-1.6.0.24/jvm
{code} 

Changed the path convention to:
{code}  
{code:borderStyle=solid}
<fileset file="${src.dir}/org/apache/lucene/store/NativePosixUtil.cpp" />
{code} 

The directory for the shared library is now:
{code}  
{code:title=Shared File Directory|borderStyle=solid}
lucene/build/native/
{code} 

I have explicitly specified GCC as a compiler so that in future when Windows is also incorporated
it would be needed.

I will write a small test case to see whether the .so file being built is working fine.


> Lucene Native Directory implementation need automated build
> -----------------------------------------------------------
>
>                 Key: LUCENE-3018
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3018
>             Project: Lucene - Java
>          Issue Type: Wish
>          Components: Build
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-3018.patch, LUCENE-3018.patch, LUCENE-3018.patch, cpptasks.jar
>
>
> Currently the native directory impl in contrib/misc require manual action to compile
the c code (partially) documented in 
>  https://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/contrib/misc/src/java/overview.html
> yet it would be nice if we had an ant task and documentation for all platforms how to
compile them and set up the prerequisites.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message