DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-10-21, 16:43

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri, 2008-11-07, 16:29 
Offline

Joined: Thu, 2008-11-06, 20:20
Posts: 1
Hello,

I am attempting to compile DICOMScope on MacOS X. I was able to successfully build the Dicom Toolkit. Attempting to make the DICOM scope library I get typecast errors. Here is the output from make it is lengthy.

Any help is appreciated.

Simon

c++ -DHAVE_CONFIG_H -DNDEBUG -c -I. -I. -I../include -I../../config/include -I../../dcmpstat/include -I../../ofstd/include -I../../dcmnet/include -I../../dcmdata/include -I../../dcmimgle/include -I../../dcmqrdb/include -I../../dcmsign/include -I../../dcmsr/include -I../../dcmjpeg/include -I/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaEmbedding.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaFrameEmbedding.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/Headers \
-I/usr/local/apps/libxml-2.6.26/include/libxml2 -I/usr/local/apps/libpng-1.2.32/include -I/usr/local/apps/tiff-3.8.2/include -I/usr/local/apps/openssl-0.9.8i/include -pthread -fPIC -O -I/usr/include/libxml2 -Wall -pthread -fPIC DVInterface.cc
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadImage__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*, jboolean)':
DVInterface.cc:124: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadImage__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:144: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadReferencedImage(JNIEnv*, _jobject*, jint, jboolean)':
DVInterface.cc:160: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadPState__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*, jboolean)':
DVInterface.cc:184: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadPState__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:204: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadPState__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jstring*)':
DVInterface.cc:226: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadStructuredReport__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*, jboolean)':
DVInterface.cc:250: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadStructuredReport__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:270: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadSRTemplate(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:290: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_savePState__Z(JNIEnv*, _jobject*, jboolean)':
DVInterface.cc:306: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_savePState__Ljava_lang_String_2ZZ(JNIEnv*, _jobject*, _jstring*, jboolean, jboolean)':
DVInterface.cc:328: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveCurrentImage(JNIEnv*, _jobject*, _jstring*, jboolean)':
DVInterface.cc:349: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveStructuredReport__(JNIEnv*, _jobject*)':
DVInterface.cc:365: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveStructuredReport__Ljava_lang_String_2Z(JNIEnv*, _jobject*, _jstring*, jboolean)':
DVInterface.cc:386: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_addImageReferenceToPState(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:410: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_resetPresentationState(JNIEnv*, _jobject*)':
DVInterface.cc:490: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveCurrentPStateForReset(JNIEnv*, _jobject*)':
DVInterface.cc:506: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_releaseDatabase(JNIEnv*, _jobject*)':
DVInterface.cc:522: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectStudy__I(JNIEnv*, _jobject*, jint)':
DVInterface.cc:579: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectStudy__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:599: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectSeries__I(JNIEnv*, _jobject*, jint)':
DVInterface.cc:904: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectSeries__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:924: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectInstance__I(JNIEnv*, _jobject*, jint)':
DVInterface.cc:1157: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectInstance__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:1177: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectInstance__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jstring*)':
DVInterface.cc:1199: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectInstance__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1223: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_instanceReviewed(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1348: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_deleteInstance(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1372: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_deleteSeries(JNIEnv*, _jobject*, _jstring*, _jstring*)':
DVInterface.cc:1394: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_deleteStudy(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:1414: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_startReceiver(JNIEnv*, _jobject*)':
DVInterface.cc:1430: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_terminateReceiver(JNIEnv*, _jobject*)':
DVInterface.cc:1446: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_startQueryRetrieveServer(JNIEnv*, _jobject*)':
DVInterface.cc:1462: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_terminateQueryRetrieveServer(JNIEnv*, _jobject*)':
DVInterface.cc:1478: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_sendStudy(JNIEnv*, _jobject*, _jstring*, _jstring*)':
DVInterface.cc:1517: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_sendSeries(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1541: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_sendIOD(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1567: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_dumpIOD__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:1587: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_dumpIOD__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1611: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_checkIOD__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:1631: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_checkIOD__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:1655: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveDICOMImage__Ljava_lang_String_2_3BJJD(JNIEnv*, _jobject*, _jstring*, _jbyteArray*, jlong, jlong, jdouble)':
DVInterface.cc:1681: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveDICOMImage__Ljava_lang_String_2_3BJJDZLjava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jbyteArray*, jlong, jlong, jdouble, jboolean, _jstring*)':
DVInterface.cc:1711: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveDICOMImage___3BJJD(JNIEnv*, _jobject*, _jbyteArray*, jlong, jlong, jdouble)':
DVInterface.cc:1733: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveGrayscaleHardcopyImage__Ljava_lang_String_2_3SJJDZLjava_lang_String_2(JNIEnv*, _jobject*, _jstring*, _jshortArray*, jlong, jlong, jdouble, jboolean, _jstring*)':
DVInterface.cc:1764: error: cannot convert 'E_Condition' to 'jint' in return
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveGrayscaleHardcopyImage___3SJJD(JNIEnv*, _jobject*, _jshortArray*, jlong, jlong, jdouble)':
DVInterface.cc:1786: error: cannot convert 'E_Condition' to 'jint' in return
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadStoredPrint__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*, jboolean)':
DVInterface.cc:1810: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadStoredPrint__Ljava_lang_String_2(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:1830: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveStoredPrint__Ljava_lang_String_2ZZLjava_lang_String_2(JNIEnv*, _jobject*, _jstring*, jboolean, jboolean, _jstring*)':
DVInterface.cc:1855: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_saveStoredPrint__Z(JNIEnv*, _jobject*, jboolean)':
DVInterface.cc:1873: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_loadPrintPreview(JNIEnv*, _jobject*, jint, jboolean, jboolean)':
DVInterface.cc:1905: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_getPrintPreviewWidthHeight(JNIEnv*, _jobject*, _jobject*, _jobject*)':
DVInterface.cc:1967: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc:1978: error: invalid cast from type 'const OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_getPrintPreviewBitmap(JNIEnv*, _jobject*, _jbyteArray*, jlong)':
DVInterface.cc:2000: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_disablePState(JNIEnv*, _jobject*)':
DVInterface.cc:2016: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_enablePState(JNIEnv*, _jobject*)':
DVInterface.cc:2032: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectPState(JNIEnv*, _jobject*, jint, jboolean)':
DVInterface.cc:2064: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setAmbientLightValue(JNIEnv*, _jobject*, jdouble)':
DVInterface.cc:2131: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_getAmbientLightValue(JNIEnv*, _jobject*, _jobject*)':
DVInterface.cc:2149: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc:2157: error: invalid cast from type 'const OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setCurrentPrinter(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2177: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setPrinterMediumType(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2214: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setPrinterFilmDestination(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2251: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setPrinterFilmSessionLabel(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2288: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setPrinterPriority(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2325: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setPrinterOwnerID(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2363: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_setPrinterNumberOfCopies(JNIEnv*, _jobject*, jint)':
DVInterface.cc:2394: error: invalid cast from type 'OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectDisplayPresentationLUT(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2442: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_selectPrintPresentationLUT(JNIEnv*, _jobject*, _jstring*)':
DVInterface.cc:2479: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_spoolPrintJob(JNIEnv*, _jobject*, jboolean)':
DVInterface.cc:2510: error: invalid cast from type 'OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_startPrintSpooler(JNIEnv*, _jobject*)':
DVInterface.cc:2524: error: invalid cast from type 'OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_terminatePrintSpooler(JNIEnv*, _jobject*)':
DVInterface.cc:2538: error: invalid cast from type 'OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_startPrintServer(JNIEnv*, _jobject*)':
DVInterface.cc:2552: error: invalid cast from type 'OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_terminatePrintServer(JNIEnv*, _jobject*)':
DVInterface.cc:2566: error: invalid cast from type 'OFCondition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_addToPrintHardcopyFromDB(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:2590: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_spoolStoredPrintFromDB(JNIEnv*, _jobject*, _jstring*, _jstring*, _jstring*)':
DVInterface.cc:2614: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_verifyAndSignStructuredReport(JNIEnv*, _jobject*, _jstring*, _jstring*, jint)':
DVInterface.cc:2827: error: invalid cast from type 'E_Condition' to type 'jint'
DVInterface.cc: In function 'jint Java_J2Ci_jDVInterface_writeLogMessage(JNIEnv*, _jobject*, jint, _jstring*, _jstring*)':
DVInterface.cc:2863: error: invalid cast from type 'E_Condition' to type 'jint'
make: *** [DVInterface.o] Error 1


Top
 Profile  
 
 Post subject:
PostPosted: Mon, 2008-11-10, 13:14 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Tue, 2004-11-02, 17:22
Posts: 1206
Location: Oldenburg, Germany
The JNI interface classes like DVInterface are rather outdated and will require an older DCMTK version (possibly 3.5.2) to compile. Preferrably the inferface classes should be updated to match the lastest DCMTK code, of course, but that will require some effort.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group