[Ctk-developers] CTK compile errors on Ubuntu 10.04

Danielle Pace danielle.pace at kitware.com
Fri May 25 13:39:20 EDT 2012


Hi all,

I've just re-built Slicer after updating my source directory from Slicer
4.1.0-rc3 to the current nightly, and get build errors when building CTK
that are related to DICOM.  I'm on 64-bit Ubuntu 10.04.

The CTK source update involves going from CTK git tag
cc33baed043a0552fd4c5336e8e1492ec7fe6a5c
to 222971ed755c59e52625fe66ee8fb95455d5bf01.

When building, I was prompted to use my root password to install dcmtk,
which I did.

Any suggestions?  The fact that function handleFINDResponse is hidden can't
be good, regardless of whether it is causing my problem.

Thanks,

Danielle


[ 64%] Building CXX object
Libs/DICOM/Core/CMakeFiles/CTKDICOMCore.dir/ctkDICOMQuery.cpp.o
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:67:
error: ‘QRResponse’ has not been declared
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK-build/CMakeExternals/Install/include/dcmtk/dcmnet/scu.h:484:
warning: ‘virtual OFCondition
DcmSCU::handleFINDResponse(T_ASC_PresentationContextID, FINDResponse*,
bool&)’ was hidden [-Woverloaded-virtual]
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:66:
warning:   by ‘virtual OFCondition
ctkDICOMQuerySCUPrivate::handleFINDResponse(T_ASC_PresentationContextID,
int*, bool&)’ [-Woverloaded-virtual]
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:
In member function ‘virtual OFCondition
ctkDICOMQuerySCUPrivate::handleFINDResponse(T_ASC_PresentationContextID,
int*, bool&)’:
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:74:
error: no matching function for call to
‘ctkDICOMQuerySCUPrivate::handleFINDResponse(const
T_ASC_PresentationContextID&, int*&, bool&)’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK-build/CMakeExternals/Install/include/dcmtk/dcmnet/scu.h:484:
note: candidates are: virtual OFCondition
DcmSCU::handleFINDResponse(T_ASC_PresentationContextID, FINDResponse*,
bool&)
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:
In member function ‘bool ctkDICOMQuery::query(ctkDICOMDatabase&)’:
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:383:
error: ‘QRResponse’ was not declared in this scope
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:383:
error: template argument 1 is invalid
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:383:
error: invalid type in declaration before ‘;’ token
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:401:
error: no matching function for call to
‘ctkDICOMQuerySCUPrivate::sendFINDRequest(Uint16&, DcmDataset*&, int*)’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK-build/CMakeExternals/Install/include/dcmtk/dcmnet/scu.h:458:
note: candidates are: virtual OFCondition
DcmSCU::sendFINDRequest(T_ASC_PresentationContextID, DcmDataset*,
FINDResponses*)
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:415:
error: ‘QRResponse’ cannot appear in a constant-expression
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:415:
error: template argument 1 is invalid
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:415:
error: invalid type in declaration before ‘=’ token
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:415:
error: request for member ‘begin’ in ‘responses’, which is of non-class
type ‘int’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:415:
error: request for member ‘end’ in ‘responses’, which is of non-class type
‘int’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:417:
error: invalid type argument of ‘unary *’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:462:
error: ‘QRResponse’ cannot appear in a constant-expression
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:462:
error: template argument 1 is invalid
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:462:
error: invalid type in declaration before ‘;’ token
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:463:
error: no matching function for call to
‘ctkDICOMQuerySCUPrivate::sendFINDRequest(Uint16&, DcmDataset*&, int*)’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK-build/CMakeExternals/Install/include/dcmtk/dcmnet/scu.h:458:
note: candidates are: virtual OFCondition
DcmSCU::sendFINDRequest(T_ASC_PresentationContextID, DcmDataset*,
FINDResponses*)
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:466:
error: ‘QRResponse’ cannot appear in a constant-expression
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:466:
error: template argument 1 is invalid
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:466:
error: invalid type in declaration before ‘=’ token
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:466:
error: request for member ‘begin’ in ‘responses’, which is of non-class
type ‘int’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:466:
error: request for member ‘end’ in ‘responses’, which is of non-class type
‘int’
/home/dpace/Slicer4Trunk/Slicer4-debug/CTK/Libs/DICOM/Core/ctkDICOMQuery.cpp:468:
error: invalid type argument of ‘unary *’
make[5]: ***
[Libs/DICOM/Core/CMakeFiles/CTKDICOMCore.dir/ctkDICOMQuery.cpp.o] Error 1
make[4]: *** [Libs/DICOM/Core/CMakeFiles/CTKDICOMCore.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [CMakeFiles/CTK-build] Error 2
make[1]: *** [CMakeFiles/CTK-build.dir/all] Error 2
make: *** [all] Error 2


-- 
Danielle Pace, M.ESc.
Research and Development Engineer
Kitware Inc.,
North Carolina Office

www.kitware.com
919-969-6990 X 319
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20120525/ba62e4dc/attachment.html>


More information about the Ctk-developers mailing list