I'm looking to test out the functionality of the osgVolume nodekit, but I can't seem to get the dicom plugin to build correctly. Can someone provide me with instructions on how to do that?
I'm compiling with MS Visual Studio 2005 version 8. I successfully compiled dcmtk-3.5.4 and now I'm trying to build OpenSceneGraph-2.8.0 with the dicom plugin. I got osg to compile, but linking brings up numerous errors. See below... Does anyone have suggestions on how to correctly compile and link the dicom plugin? Thanks, -Mary 1>------ Build started: Project: Plugins dicom, Configuration: Release Win32 ------ 1>Building Custom Rule C:/Documents and Settings/b0475/My Documents/Visual Studio 2005/Projects/OpenSceneGraph-2.8.0/src/osgPlugins/dicom/CMakeLists.txt 1>CMake does not need to re-run because CMakeFiles/generate.stamp is up-to-date. 1>Compiling... 1>ReaderWriterDICOM.cpp 1>Linking... 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@xz) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@pbd @Z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@abv 01@@Z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??0?$basic_str...@du?$char_traits@d...@std@@v?$alloca...@d@2@@std@@q...@xz) already defined in dcmimgle.lib(dimoimg.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?fl...@?$basic_ostream@du?$char_tra...@d@std@@@std@@qaeaa...@xz) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_o...@?$basic_ostream@du?$char_tra...@d@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setst...@?$basic_ios@du?$char_tra...@d@std@@@std@@qaex...@z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" (?sp...@?$basic_streambuf@du?$char_tra...@d@std@@@std@@qaehp...@z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sp...@?$basic_streambuf@du?$char_tra...@d@std@@@std@@qa...@z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(double)" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@n@Z) already defined in dcmimgle.lib(diimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@p6aaav01@AAV01 @@z...@z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?e...@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@1...@aav21@@Z) already defined in dcmimgle.lib(dcmimage.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned int)" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@i@Z) already defined in dcmdata.lib(dchashdi.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::ios_base & (__cdecl*)(class std::ios_base &))" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@p6aaavios_base @1...@aav21@@z...@z) already defined in dcmdata.lib(dcfilefo.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(int)" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@h@Z) already defined in dcmimgle.lib(dimoimg.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned short)" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@g@Z) already defined in dcmimgle.lib(dimoimg.obj) 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned long)" (??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@k@Z) already defined in dcmimgle.lib(dimoimg.obj) 1>libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_getgloballoc...@locale@std@@capav_loc...@12@XZ) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(locale0.obj) : error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_regis...@facet@loc...@std@@CAXPAV123@@Z) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_locinfo_d...@_locinfo@std@@SAXPAV12@@Z) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_i...@locale@std@@capav_loc...@12@XZ) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_locinfo_c...@_locinfo@std@@saxpa...@pbd@Z) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(ios.obj) : error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_add...@ios_base@std@@SAXPAV12@@Z) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(ios.obj) : error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_ios_base_d...@ios_base@std@@CAXPAV12@@Z) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_loc...@std@@q...@h@Z) already defined in msvcprt.lib(MSVCP80.dll) 1>libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_loc...@std@@q...@xz) already defined in msvcprt.lib(MSVCP80.dll) 1>LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter_noinfo already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(lconv.obj) : error LNK2005: _localeconv already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(crtheap.obj) : error LNK2005: __malloc_crt already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj) 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj) 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj) 1>LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj) 1>LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(getenv.obj) : error LNK2005: _getenv already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(strtoq.obj) : error LNK2005: __strtoi64 already defined in MSVCRT.lib(MSVCR80.dll) 1>LIBCMT.lib(strtoq.obj) : error LNK2005: __strtoui64 already defined in MSVCRT.lib(MSVCR80.dll) 1> Creating library C:\Documents and Settings\b0475\My Documents\Visual Studio 2005\Projects\OpenSceneGraph-2.8.0\lib\Release\osgdb_dicom.lib and object C:\Documents and Settings\b0475\My Documents\Visual Studio 2005\Projects\OpenSceneGraph-2.8.0\lib\Release\osgdb_dicom.exp 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>dcmdata.lib(dcuid.obj) : error LNK2019: unresolved external symbol _wsaclea...@0 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) 1>dcmdata.lib(dcuid.obj) : error LNK2019: unresolved external symbol _gethostbyn...@4 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) 1>dcmdata.lib(dcuid.obj) : error LNK2019: unresolved external symbol _gethostn...@8 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) 1>dcmdata.lib(dcuid.obj) : error LNK2019: unresolved external symbol _wsastar...@8 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) 1>LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Documents and Settings\b0475\My Documents\Visual Studio 2005\Projects\OpenSceneGraph-2.8.0\bin\Release\..\osgPlugins-2.8.0\osgdb _dicom.dll : fatal error LNK1120: 5 unresolved externals 1>Build log was saved at "file://c:\Documents and Settings\b0475\My Documents\Visual Studio 2005\Projects\OpenSceneGraph-2.8.0\src\osgPlugins\dicom\osgdb_dicom.dir\ Release\BuildLog.htm <file:///c:\Documents%20and%20Settings\b0475\My%20Documents\Visual%20Stu dio%202005\Projects\OpenSceneGraph-2.8.0\src\osgPlugins\dicom\osgdb_dico m.dir\Release\BuildLog.htm> " 1>Plugins dicom - 54 error(s), 2 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Mary C. Maloney LM/STS, Advanced Simulation Center 13810 SE Eastgate Way, STE 440 Bellevue, WA 98005
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

