[pHash-support] patch to get pHash to build on ubuntu 10.04

Alexander Kjäll - alaTest alex at alatest.com
Fri May 14 06:34:58 PDT 2010


I read here:

http://java.sun.com/products/jdk/faq/jni-j2sdk-faq.html#jni_md

that the directory seems to be named after the platform name, so i 
rewrote the patch based on that.

best regards
Alexander Kjäll

On 2010-05-06 16:56, Alexander Kjäll - alaTest wrote:
> Hi
>
> Good point about multiple installations.
>
> I presume that I can just add /linux/ to the path, but that might not be
> compatible with how other java versions distribute that header file. I
> think I have to investigate this a bit more in order to get a more
> general solution.
>
> On a related note, I wrote a ant build file and improved the packaging
> of the java bindings a bit more, and also improved them a bit.
>
> Do you have a vcs that i can do a read-only clone from, so that it will
> be a bit easier to produce the patch files?
>
> and a minor thing, on this page on your website:
> http://phash.org/docs/howto.html
> the "Design" buttons leads to an 404.
>
> best regards
> Alexander Kjäll
>
>
>
> On 2010-05-05 21:19, Evan Klinger wrote:
>> Hi Alexander,
>> Thank you for the patch. I am not sure, however, if it will be
>> sufficient since a system can have multiple Java SDKs installed and
>> this will merely pick the first one that locate returns, which may not
>> be the latest version.
>>
>> Evan
>>
>> 2010/5/5 Alexander Kjäll - alaTest<alex at alatest.com>:
>>> Hi
>>>
>>> I tried to build the pHash 0.9 library with java support enabled on
>>> ubuntu
>>> 10.04 with the sun java 6 packages.
>>>
>>> Apparently the jni_md.h header file isn't in the same directory as
>>> the jni.h
>>> file, so I had to write a (ugly) patch to make it work.
>>>
>>> patch attached.
>>>
>>> best regards
>>> Alexander Kjäll
>>>
>>>
>>> --
>>> Developer
>>> alex at alatest.com
>>> +468343115
>>>
>>> _______________________________________________
>>> pHash-support mailing list
>>> pHash-support at lists.phash.org
>>> http://lists.phash.org/listinfo.cgi/phash-support-phash.org
>>>
>>>
>
>


-- 
Developer
alex at alatest.com
+468343115
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jni_md_h-linux.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.phash.org/pipermail/phash-support-phash.org/attachments/20100514/41d0769b/attachment-0001.bin>


More information about the pHash-support mailing list