agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Problems compiling under Mac OS X
Date: Fri, 14 May 2004 10:29:53 +0200
Message-ID: <E02918AC-A580-11D8-9A58-0003933F0AB6@mac.com> (raw)
Hello,
Here some reports of problems I have got trying compiling pljava under
Mac OS X:
1. the jni.h file is in the JavaVM framework
This requires a simple modification of the pljva/C/Makefile
#-----------------------------------------------------------------------
--
#
# Makefile--
# Makefile for pljava
#
#-----------------------------------------------------------------------
--
NAME := pljava
include $(MODULEROOT)/Makefile.global
ifeq ($(PORTNAME), win32)
DLL_BUILD := 1
else
ifeq ($(PORTNAME), cygwin)
DLL_BUILD := 1
override CPPFLAGS := -DCYGWIN $(CPPFLAGS)
else
ifeq ($(PORTNAME), darwin)
DLL_BUILD := 0
override CPPFLAGS := -DDARWIN -framework JavaVM $(CPPFLAGS)
else
JRE_INCL := $(PORTNAME)
ifeq ($(host_cpu), i686)
JRE_LIB := lib/i386/client
else
JRE_LIB := lib/$(host_cpu)/client
endif
endif
endif
endif
2. every #include <jni.h>
should be converted to
#ifdef DARWIN
#include <JavaVM/jni.h>
#else
#include <jni.h>
#endif
3. ant 1.5.1 is installed by default on Mac OS X
the build fails with
BUILD FAILED
file:/Volumes/Data2/download_osx/PostgreSQL/org.postgresql.pljava/
build.xml:30: Could not create task or type of type: depend.
Ant could not find the task or a class this task relies upon.
Should I have to install another ant version ?
Another .jar missing ?
Any idea ?
Pascal Pochet
p3consulting at mac.com
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20040514/df226594/attachment.bin;
view thread (7+ messages) latest in thread
Message-ID: <E02918AC-A580-11D8-9A58-0003933F0AB6@mac.com>
Permalink: ../E02918AC-A580-11D8-9A58-0003933F0AB6@mac.com/
Also on: postgresql.org/message-id/E02918AC-A580-11D8-9A58-0003933F0AB6@mac.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] Problems compiling under Mac OS X
In-Reply-To: <E02918AC-A580-11D8-9A58-0003933F0AB6@mac.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox