[ https://issues.apache.org/jira/browse/LUCENE-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028689#comment-13028689 ]
Michael McCandless commented on LUCENE-3018: -------------------------------------------- Patch works well for me -- I installed cpptasks-1.0b5.jar under lucene/contrib/misc/ant_lib, and was then able to simply "ant build-native-unix", which produced the .so under lucene/build/native. I then added lucene/build/native to my LD_LIBRARY_PATH, and ran: {noformat} ant test -lib lucene/build/contrib/misc/lucene-misc-4.0-SNAPSHOT.jar -Dtests.directory=org.apache.lucene.store.DirectIOLinuxDirectory {noformat} at the top of the source tree, ie, it runs all unit tests, forcing the dir impl to be DirectIOLinuxDirectory. All tests passed! For grins I tried the first step on OpenSolaris too, and it generated a big number of compilation errors, which seems strange. EG it could not find jni.h on this platform. (I expect a few compilation errors because we are using Linux-only flags, but not that it could not find jni.h)... any ideas? > 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, > LUCENE-3018.patch, LUCENE-3018.patch, LUCENE-3018.patch, LUCENE-3018.patch, > LUCENE-3018.patch, LUCENE-3018.patch, LUCENE-3018.patch, cpptasks-1.0b5.jar, > cpptasks-LICENSE-ASL.txt, cpptasks.jar, 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org