[Pljava-dev] pljava.so wont compile - now it does! :)

From: thomas at tada(dot)se (Thomas Hallgren)
To:
Subject: [Pljava-dev] pljava.so wont compile - now it does! :)
Date: 2013-01-13 10:54:30
Message-ID: 50F29266.5070408@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

I found a fairly good article outlining a way to build a mix of Java and
C++ code with Maven. Perhaps this is the way to go?

http://www.humboldt.co.uk/2009/02/wrapping-a-native-library-with-maven.html

I'm not really a maven wizard myself so help on this topic is greatly
appreciated.

- thomas

On 2013-01-12 23:47, Christian Hammers wrote:
> Hello
>
> Wow, I finally got it working. Took me only 2h :-)
>
> I got a strange error message with the test suite though. Already tried to
> replace the "UTC" with "GMT" but somehow it does not show any effect:
>
> java -cp /usr/share/java/postgresql.jar:target/pljava-jdbc-0.0.1-SNAPSHOT.jar:target/pljava-examples-0.0.1-SNAPSHOT.jar:target/pljava-api-0.0.1-SNAPSHOT.jar:target/org.postgresql.pljava.test.jar org.postgresql.pljava.test.Tester -user postgres -password geheim -database pljava
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> *** testTimestamp()
> Timestamp = 2013-01-12 23:44:07.336, Timestamptz = 2013-01-12 23:44:07.338
> org.postgresql.util.PSQLException: ERROR: java.lang.SecurityException: read on /usr/share/javazi/UTC
> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
> at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
> at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
> at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374)
> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:366)
> at org.postgresql.pljava.test.Tester.testTimestamp(Tester.java:527)
> at org.postgresql.pljava.test.Tester.testParameters(Tester.java:288)
> at org.postgresql.pljava.test.Tester.main(Tester.java:227)
>
> What are your plans on integrating javah and the C sources into maven?
> Is it possible to tell maven to first compile the java stuff and then
> generate C header files from two sub-projects before finally compiling
> the C project?
>
> bye,
>
> -christian-
>
>
> Am Fri, 11 Jan 2013 20:40:13 +0100
> schrieb Christian Hammers <ch at lathspell.de>:
>
>> Hello
>>
>> With the hellblazer git repository code I finally got four .jar files
>> but now I wonder how to compile the shared library from the C sources.
>> None of the Makefiles seem to work and the pom.xml contains no
>> reference to a C compiler:
>>
>> -=(~/workspace/pljava/lathspell-master/C)$ make
>> make[1]: Entering directory
>> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
>> make[1]: /srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile:
>> No such file or directory make[1]: *** No rule to make target
>> `/srv/home/james/workspace/pljava/lathspell-master/C/src/java/pljava/Makefile'.
>> Stop. make[1]: Leaving directory
>> `/srv/home/james/workspace/pljava/lathspell-master/C/build/classes/pljava'
>> make: *** [pljava_all] Error 2
>>
>> -=(~/workspace/pljava/lathspell-master/C/pljava)$ make
>> find: `/pljava': No such file or directory
>> make: Nothing to be done for `checkjavahome'.
>>
>> (I'm using gcc-4.7 and Oracle/OpenJDK-1.7.
>>
>> bye,
>>
>> -christian-
>> _______________________________________________
>> Pljava-dev mailing list
>> Pljava-dev at pgfoundry.org
>> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20130113/c4336b02/attachment-0001.html>

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2013-01-13 10:58:58 [Pljava-dev] pljava.so wont compile - now it does! :)
Previous Message Thomas Hallgren 2013-01-13 10:27:58 [Pljava-dev] Downloads not available?