[pHash-support] Windows XP - Visual Studio 2010 - Java - Problem in creating pHash-jni.dll

Evan Klinger eklinger at gmail.com
Tue Aug 20 10:24:11 PDT 2013


Sorry we cannot support the free windows build. direct support is for our licensees only.

Sent from my iPhone

On Aug 20, 2013, at 9:49 AM, Electro Plaza <electroplazaitems at gmail.com> wrote:

> Hi Team,
> 
> Still this issue is not resolved , it would be a great help if you can support in this.
> 
> 
> On Sun, Aug 18, 2013 at 6:16 PM, Electro Plaza <electroplazaitems at gmail.com> wrote:
>> This is to follow up the previous mail with some specific compilation error messages. Would be a great if you can help.
>> 
>> -------------------------------------------------
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|67|error: 'HashType' does not name a type|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|68|error: 'hash_compareCB' does not name a type|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp||In function 'float radialImage_distance(DP*, DP*)':|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|104|warning: narrowing conversion of 'a->ph_datapoint::hash_length' from 'uint32_t {aka unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Wnarrowing]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|104|warning: narrowing conversion of 'b->ph_datapoint::hash_length' from 'uint32_t {aka unsigned int}' to 'int' inside { } is ill-formed in C++11 [-Wnarrowing]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|135|error: 'BYTEARRAY' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|136|error: 'BYTEARRAY' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|137|error: 'UINT64ARRAY' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|138|error: 'UINT64ARRAY' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|139|error: 'UINT32ARRAY' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp||In function 'jboolean Java_org_phash_MVPTree_create(JNIEnv*, jobject, jobjectArray)':|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|153|error: 'MVPFile' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|153|error: expected ';' before 'mvpfile'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|154|error: 'mvpfile' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|154|error: 'ph_mvp_init' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|158|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|162|error: 'const jniHashes' has no member named 'callback'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|163|error: 'const jniHashes' has no member named 'hashType'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|239|warning: unused variable 'threshold' [-Wunused-variable]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|240|warning: unused variable 'block_size' [-Wunused-variable]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|188|warning: enumeration value 'TEXT_HASH' not handled in switch [-Wswitch]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|266|error: 'MVPRetCode' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|266|error: expected ';' before 'ret'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|279|error: 'ret' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp||In function '_jobjectArray* Java_org_phash_MVPTree_query(JNIEnv*, jobject, jobject, jfloat, jfloat, jint)':|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|287|error: 'MVPFile' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|287|error: expected ';' before 'mvpfile'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|289|error: 'mvpfile' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|289|error: 'ph_mvp_init' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|296|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|300|error: 'const jniHashes' has no member named 'callback'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|301|error: 'const jniHashes' has no member named 'hashType'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|318|warning: enumeration value 'TEXT_HASH' not handled in switch [-Wswitch]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|362|error: 'ph_query_mvptree' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|380|warning: enumeration value 'TEXT_HASH' not handled in switch [-Wswitch]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp||In function 'jboolean Java_org_phash_MVPTree_add(JNIEnv*, jobject, jobjectArray)':|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|423|error: 'MVPFile' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|423|error: expected ';' before 'mvpfile'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|425|error: 'mvpfile' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|425|error: 'ph_mvp_init' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|437|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|441|error: 'const jniHashes' has no member named 'callback'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|442|error: 'const jniHashes' has no member named 'hashType'|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|465|warning: enumeration value 'TEXT_HASH' not handled in switch [-Wswitch]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|516|error: 'ph_add_mvptree' was not declared in this scope|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|516|warning: unused variable 'res' [-Wunused-variable]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp||In function '_jobject* Java_org_phash_pHash_audioHash(JNIEnv*, jclass, jstring)':|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|780|warning: unused variable 'ret' [-Wunused-variable]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp||In function 'jboolean Java_org_phash_MVPTree_create(JNIEnv*, jobject, jobjectArray)':|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash-jni.cpp|280|warning: control reaches end of non-void function [-Wreturn-type]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash.h|292|warning: 'cimg_library::CImg<float>* ph_dct_matrix(int)' declared 'static' but never defined [-Wunused-function]|
>> pHash-0.9.6\bindings\java\pHash-jni\pHash.h|309|warning: 'cimg_library::CImgList<unsigned char>* ph_getKeyFramesFromVideo(const char*)' declared 'static' but never defined [-Wunused-function]|
>> ||=== Build finished: 30 errors, 16 warnings (0 minutes, 2 seconds) ===|
>> 
>> 
>> 
>> 
>> On Sat, Aug 17, 2013 at 7:22 PM, Electro Plaza <electroplazaitems at gmail.com> wrote:
>>> Hi pHash developers,
>>> 
>>> First of all I would like to thanks for the awesome project and your hard work.Wish you all the very best.
>>> 
>>> I have been having a very bad time in building the pHash-jni.ddl as I am very new to c++ (and my aim is not to learn c++ but to use pHash with java )  , I need to generate this so that I can build my java bindings to start working widows.
>>> 
>>> I have downloaded countless c++ IDEs and programs with no luck finally I have to work with visual studio c++ 2010.
>>> 
>>> But still no luck getting compilation errors on 0.94 version I have downloaded from the 
>>> https://github.com/sdepold/pHash (as 0.94 at pHash.org downloads does not include the java bindings and it only have the pre compiled pHash.dll)
>>> 
>>> Then I have tried compiling the veriosn 0.96 from phash.org in windows xp using visual c++ 2010 still no luck.
>>> 
>>> I really wanted to confirm is it possible to compile 0.96 version (or 0.94) in windows xp and generate pHash-jni.dll which java bindings required.
>>> Can you please share the pre compiled  pHash-jni.dll and pHash.dll (and other what ever required compiled version) so that we don't want to spend countless hours in downloading various software and facing issues in just compiling the library.
>>> I have choose testing pHash for an project am I am stucked at this point in getting ready with pHash and already lost several days just in building and compiling.
>>> 
>>> It would be a great help if you can guide me by posting proper instructions or tutorials to build the project and start using pHash in windows platforms with java binding.
>>> 
>>> Thanks.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phash.org/pipermail/phash-support-phash.org/attachments/20130820/98099710/attachment.htm>


More information about the pHash-support mailing list