On Jan 13, 2009, at 14:53, "BrianO'Keefe" <[email protected]> wrote:
> OK, I see that in the Makefile. Do I edit the i386 to read PPC or do I > need to add lines? I assume that is here? > > ifeq ($(ARCH),x86_64) > NUM_FILES=2 > arch=amd64 > vm=server > else > NUM_FILES=1 > arch=i386 > vm=client > endif try changing it so that it reads arch=ppc > Many thanks! If I get this to build with your help I will shout your > name from my rooftop!!! Please don't. You get credit, you picked a weakly covered platform, choosing a less-travelled path and you're doing the work. Andi.. > > > > > Andi Vajda wrote: >> >> >> On Jan 12, 2009, at 6:42, "BrianO'Keefe" <[email protected]> >> wrote: >> >>> thanks again Andi, >>> I'm including the Makefile you refer to. I'm not a developer in any >>> sense of the word but am willing to poke things in an attempt. It >>> seems >>> that my OpenJDK is correct, at least as far as I can tell, in the >>> Makefile but as far as more editing, I don't have a clue. >> >> You do, you do. >> This thread started with a problem about the build looking for an >> i386 >> library. >> You at least need to set arch to the right value, probably 'ppc'. >> >> Andi.. >> >>> I'm including >>> it for your review. Can you imagine the tens of happy Linux PPC >>> users >>> that would love Chandler to run on their boxes? We are a small but >>> dedicated group of mostly Apple expatriots who love the hardware. >>> thanks >>> again. >>> Brian >>> >>> >>> VERSION=2.3.1-3-$(SVNVER) >>> SVNVER=418 >>> PYLUCENE_SVN=http://svn.osafoundation.org/pylucene/branches/release-2.3 >>> RELVER=$(VERSION)-$(BRANCH_REV_PREFIX)1 >>> PYLUCENE=$(BUILD_ROOT)/PyLucene >>> SRC=$(PYLUCENE)/PyLucene-$(VERSION) >>> BUILD=$(SNAP) >>> EGG=$(notdir $(shell cd $(BUILD_ROOT); find $(SNAP)/$(SITE) -name >>> 'lucene-*-py$(PYTHON_VER)-*.egg')) >>> TARBALL=PyLucene-$(SNAP)-$(RELVER).tar.gz >>> MANIFEST=$(SNAP)/$(SITE)/lucene >>> >>> include $(BUILD_ROOT)/Makefile.inc >>> >>> ifeq ($(OS),Darwin) >>> >>> ifeq ($(MACOSX_DEPLOYMENT_TARGET),10.3) >>> NUM_FILES=8 >>> else >>> NUM_FILES=1 >>> endif >>> >>> ANT=ant >>> JCC_ENV= >>> ENV= >>> >>> ifeq ($(DEBUG),1) >>> DEBUG_OPT=--debug >>> endif >>> >>> endif >>> >>> ifeq ($(OS),Linux) >>> >>> ifeq ($(ARCH),x86_64) >>> NUM_FILES=2 >>> arch=amd64 >>> vm=server >>> else >>> NUM_FILES=1 >>> arch=i386 >>> vm=client >>> endif >>> >>> ifeq ($(findstring $(DISTRIB_CODENAME), hardy intrepid jaunty),) >>> JDK=$(BUILD_ROOT)/openjdk/j2sdk-image >>> JRE=$(BUILD_ROOT)/openjdk/j2re-image >>> ANT="$(BUILD_ROOT)/openjdk/apache-ant-1.7.0/bin/ant" >>> else >>> JDK=/usr/lib/jvm/java-6-openjdk >>> JRE=/usr/lib/jvm/java-6-openjdk/jre >>> ANT=/usr/bin/ant >>> endif >>> JCC_ENV=\ >>> JCC_INCLUDES="$(JDK)/include:$(JDK)/include/linux" \ >>> JCC_LFLAGS="-L$(JDK)/jre/lib/$(arch):-ljava" >>> ENV=\ >>> >>> LD_LIBRARY_PATH="$(JRE)/lib/$(arch):$(JRE)/lib/$(arch)/$(vm):$ >>> (LD_LIBRARY_PATH)" >>> >>> \ >>> JAVA_HOME="$(JDK)" >>> >>> ifeq ($(DEBUG),1) >>> DEBUG_OPT=--debug >>> endif >>> >>> endif >>> >>> ifeq ($(OS),Cygwin) >>> >>> NUM_FILES=2 >>> JDK=$(BUILD_ROOT)/openjdk/j2sdk-image >>> JRE=$(BUILD_ROOT)/openjdk/j2re-image >>> ANT="$(BUILD_ROOT)/openjdk/apache-ant-1.7.0/bin/ant" >>> JCC_ENV=\ >>> JCC_INCLUDES=`cygpath -awp "$(JDK)/include:$(JDK)/include/win32"` \ >>> JCC_LFLAGS="/LIBPATH:"`cygpath -awp "$(JDK)/lib:jvm.lib"` >>> ENV=\ >>> PATH="$(JRE)/bin:$(JRE)/bin/client:$(PATH)" \ >>> JAVA_HOME=`cygpath -aw "$(JDK)"` >>> >>> ifeq ($(DEBUG),1) >>> DEBUG_OPT=--debug >>> endif >>> >>> endif >>> >>> PyLucene-$(VERSION)-expanded: >>> svn export -r $(SVNVER) $(PYLUCENE_SVN) PyLucene-$(VERSION) >>> touch PyLucene-$(VERSION)-expanded >>> >>> expand: PyLucene-$(VERSION)-expanded >>> >>> sources: expand >>> >>> clean: >>> rm -rf $(SRC)/jcc/build >>> rm -rf $(SRC)/build >>> find $(PREFIX) -name '*lucene*' | xargs rm -rf >>> >>> build: expand >>> rm -rf $(SRC)/jcc/build >>> rm -rf $(SRC)/build >>> cd $(SRC)/jcc; $(ENV) $(JCC_ENV) \ >>> $(PYTHON) setup.py build $(DEBUG_OPT) install >>> --prefix $(BUILD_ROOT)/$(SNAP) >>> $(ENV) $(MAKE) -C $(SRC) \ >>> PYTHON="$(PYTHON)" \ >>> ANT=$(ANT) \ >>> JCC="$(PYTHON) -m jcc" \ >>> NUM_FILES=$(NUM_FILES) \ >>> DEBUG=$(DEBUG) \ >>> compile install >>> >>> test: >>> $(ENV) $(MAKE) -C $(SRC) \ >>> PYTHON="$(PYTHON)" \ >>> ANT=$(ANT) \ >>> JCC="$(PYTHON) -m jcc" \ >>> NUM_FILES=$(NUM_FILES) \ >>> DEBUG=$(DEBUG) \ >>> test >>> >>> $(TARBALL): >>> echo "./$(EGG)" > $(BUILD_ROOT)/$(SNAP)/$(SITE)/lucene.pth >>> tar -C $(BUILD_ROOT) -cvzf $(PYLUCENE)/$(TARBALL) \ >>> $(SNAP)/$(SITE)/$(EGG) \ >>> $(SNAP)/$(SITE)/lucene.pth >>> >>> binaries: $(TARBALL) >>> >>> install: $(TARBALL) >>> cp -p $(TARBALL) $(CHANDLERARCHIVES) >>> Andi Vajda wrote: >>>> >>>> On Sun, 11 Jan 2009, BrianO'Keefe wrote: >>>> >>>>> I have OpenJDK-6 installed. How can I change the build to make >>>>> use of >>>>> it? SunJava is not an option but I also have IBM Java installed. >>>>> I'd >>>>> like to use OpenJDK though..... >>>>> Chandler looks exactly like what Iwant to use and seems far >>>>> superior to >>>>> the other "calendar" programs available. >>>> >>>> OpenJDK 6 should work just as well. >>>> It's used by the PyLucene component of Chandler. >>>> >>>> In external/PyLucene, edit the Makefile section for linux so that >>>> the >>>> PyLucene build one level below and the JCC build two levels below >>>> can >>>> find the header files and libs for your installation of OpenJDK 6. >>>> For more information on building PyLucene, you might want to >>>> check its >>>> INSTALL file and, again one level below, JCC's INSTALL file. >>>> >>>> To validate that your OpenJDK 6 installation plays well with >>>> PyLucene, >>>> I'd do a separate build of it first and run 'make test'. >>>> See http://pylucene.osafoundation.org for more information about >>>> PyLucene and JCC. >>>> >>>> Andi.. >>>> >> _______________________________________________ [email protected] mailing list unsubscribe here: http://lists.osafoundation.org/mailman/listinfo/chandler-users Chandler wiki: http://chandlerproject.org/wikihome
