OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Problems building Plugins dicom - RESOLVED

Goto page 1, 2  Next
 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Thu Sep 03, 2009 12:36 am    Post subject:
Problems building Plugins dicom
Reply with quote

Hello everyone. I built DCMTK 3.5.4 successfully but am having problems building Plugins Dicom. I am using Visual Studio 2005 on Windows Vista. Has anybody built Plugins dicom successfully with Visual Studio on Window Vista?

I believe the following might(?) be issues in building Plugins dicom


*** /MD versus /MT ***
When making DCMTK with CMake the CMAKE_CXX_FLAGS have /MD which is the same for OSG. However, when I look at the projects in Visual Studio, the flags are /MT. Is this a problem? If so, why is CMake not setting it correctly and how can I fix it?

*** iostream.h versus iostream ***
OSG uses iostream. I am not convinced the file ofstream in DCMTK is configured to use iostream correctly. I tried hardcoding the use of iostream without getting plugin dicom to build successfully.


*** other library conflicts? ****
I tried the \NoDefaultLib option and tried ignoring some other libraries with no success.

*** other problems ***
I might be completely missing something. Could there be some other problem? The output is below.

Thanks!

Jason









Error 72 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 73 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 74 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 75 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> > &)" (?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 76 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z) already defined in dcmimgle.lib(diimage.obj) msvcprtd.lib
Error 77 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z) already defined in dcmdata.lib(dchashdi.obj) msvcprtd.lib
Error 78 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z) already defined in dcmdata.lib(dcfilefo.obj) msvcprtd.lib
Error 79 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 80 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z) already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 81 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z) already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 82 error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 83 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 84 error LNK2005: "public: int __thiscall std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z) already defined in dcmimgle.lib(digsdlut.obj) msvcprtd.lib
Error 85 error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 86 error LNK2005: "public: int __thiscall std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 87 error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 88 error LNK2005: "public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 89 error LNK2005: "public: static int __cdecl std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 90 error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 91 error LNK2005: "public: class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const " (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 92 error LNK2005: "public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::fill(void)const " (?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 93 error LNK2005: "public: int __thiscall std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 94 error LNK2005: "public: int __thiscall std::ios_base::width(void)const " (?width@ios_base@std@@QBEHXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 95 error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 96 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)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 97 error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " (?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 98 error LNK2005: "public: bool __thiscall std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 99 error LNK2005: "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 100 error LNK2005: "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 101 error LNK2005: "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 102 error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 103 error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 104 error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 105 error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 106 error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 107 error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 108 error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 109 error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 110 error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 111 error LNK2005: __invalid_parameter already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 112 error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 113 error LNK2005: _localeconv already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 114 error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 115 error LNK2005: __encoded_null already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 116 error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 117 error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 118 error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 119 error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 120 error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 121 error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 122 error LNK2005: ___CppXcptFilter already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 123 error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 124 error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 125 error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 126 error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 127 error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 128 error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 129 error LNK2005: _getenv already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 130 error LNK2005: __strtoi64 already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 131 error LNK2005: __strtoui64 already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 134 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 135 error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 136 error LNK2019: unresolved external symbol _gethostname@8 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 137 error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 138 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup LIBCMT.lib
Error 139 fatal error LNK1120: 5 unresolved externals ..\..\..\bin\Debug\..\osgPlugins-2.8.2\osgdb_dicomd.dll
Error 140 fatal error LNK1104: cannot open file 'wldap32.lib' Plugins curl



Any ideas what I am doing wrong?

Cheers,
Jason
Back to top
View user's profile Send private message Send e-mail
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Tue Sep 08, 2009 5:01 pm    Post subject:
Problems building Plugins dicom
Reply with quote

Hello everyone. I built DCMTK 3.5.4 successfully but am having problems
building Plugins Dicom. I am using Visual Studio 2005 on Windows Vista.
Has anybody built Plugins dicom successfully with Visual Studio on
Window Vista?

I believe the following might(?) be issues in building Plugins dicom


*** /MD versus /MT ***
When making DCMTK with CMake the CMAKE_CXX_FLAGS have /MD which is the
same for OSG. However, when I look at the projects in Visual Studio, the
flags are /MT. Is this a problem? If so, why is CMake not setting it
correctly and how can I fix it?

*** iostream.h versus iostream ***
OSG uses iostream. I am not convinced the file ofstream in DCMTK is
configured to use iostream correctly. I tried hardcoding the use of
iostream without getting plugin dicom to build successfully.

*** other library conflicts? ****
I tried the \NoDefaultLib option and tried ignoring some other libraries
with no success.

*** other problems ***
I might be completely missing something. Could there be some other
problem? Any ideas what I am doing wrong? The output is below.

Thanks!

Jason









Error 72 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 73 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 74 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 75 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> > &)"
(?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 76 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z) already
defined in dcmimgle.lib(diimage.obj) msvcprtd.lib
Error 77 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z) already
defined in dcmdata.lib(dchashdi.obj) msvcprtd.lib
Error 78 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z)
already defined in dcmdata.lib(dcfilefo.obj) msvcprtd.lib
Error 79 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already
defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 80 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z) already
defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 81 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z) already
defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 82 error LNK2005: "public: char const * __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::c_str(void)const "
(?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 83 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 84 error LNK2005: "public: int __thiscall
std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z) already
defined in dcmimgle.lib(digsdlut.obj) msvcprtd.lib
Error 85 error LNK2005: "public: void __thiscall
std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)"
(?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 86 error LNK2005: "public: int __thiscall
std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 87 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char
const *,int)"
(?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 88 error LNK2005: "public: static bool __cdecl
std::char_traits<char>::eq_int_type(int const &,int const &)"
(?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 89 error LNK2005: "public: static int __cdecl
std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 90 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)"
(?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 91 error LNK2005: "public: class std::basic_streambuf<char,struct
std::char_traits<char> > * __thiscall std::basic_ios<char,struct
std::char_traits<char> >::rdbuf(void)const "
(?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 92 error LNK2005: "public: char __thiscall
std::basic_ios<char,struct std::char_traits<char> >::fill(void)const "
(?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined
in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 93 error LNK2005: "public: int __thiscall
std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 94 error LNK2005: "public: int __thiscall
std::ios_base::width(void)const " (?width@ios_base@std@@QBEHXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 95 error LNK2005: "public: static unsigned int __cdecl
std::char_traits<char>::length(char const *)"
(?length@?$char_traits@D@std@@SAIPBD@Z) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 96 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)"
(?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 97 error LNK2005: "public: class std::basic_ostream<char,struct
std::char_traits<char> > * __thiscall std::basic_ios<char,struct
std::char_traits<char> >::tie(void)const "
(?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 98 error LNK2005: "public: bool __thiscall
std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 99 error LNK2005: "public: void __thiscall
std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)"
(?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 100 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)"
(?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 101 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Unlock(void)"
(?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 102 error LNK2005: "private: static class std::locale::_Locimp *
__cdecl std::locale::_Getgloballocale(void)"
(?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 103 error LNK2005: "private: static void __cdecl
std::locale::facet::facet_Register(class std::locale::facet *)"
(?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 104 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)"
(?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 105 error LNK2005: "private: static class std::locale::_Locimp *
__cdecl std::locale::_Init(void)"
(?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 106 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)"
(?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 107 error LNK2005: "public: static void __cdecl
std::ios_base::_Addstd(class std::ios_base *)"
(?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 108 error LNK2005: "private: static void __cdecl
std::ios_base::_Ios_base_dtor(class std::ios_base *)"
(?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 109 error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)"
(??0_Lockit@std@@QAE@H@Z) already defined in msvcprtd.lib(MSVCP80D.dll)
libcpmt.lib
Error 110 error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined
in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 111 error LNK2005: __invalid_parameter already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 112 error LNK2005: __errno already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 113 error LNK2005: _localeconv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 114 error LNK2005: __encode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 115 error LNK2005: __encoded_null already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 116 error LNK2005: __decode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 117 error LNK2005: __amsg_exit already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 118 error LNK2005: __initterm_e already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 119 error LNK2005: _fflush already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 120 error LNK2005: __unlock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 121 error LNK2005: __lock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 122 error LNK2005: ___CppXcptFilter already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 123 error LNK2005: _atoi already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 124 error LNK2005: ___xi_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 125 error LNK2005: ___xi_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 126 error LNK2005: ___xc_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 127 error LNK2005: ___xc_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 128 error LNK2005: "void __cdecl terminate(void)"
(?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 129 error LNK2005: _getenv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 130 error LNK2005: __strtoi64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 131 error LNK2005: __strtoui64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 134 error LNK2019: unresolved external symbol _WSACleanup@0
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 135 error LNK2019: unresolved external symbol _gethostbyname@4
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 136 error LNK2019: unresolved external symbol _gethostname@8
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 137 error LNK2019: unresolved external symbol _WSAStartup@8
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 138 error LNK2019: unresolved external symbol _main referenced in
function ___tmainCRTStartup LIBCMT.lib
Error 139 fatal error LNK1120: 5 unresolved externals
..\..\..\bin\Debug\..\osgPlugins-2.8.2\osgdb_dicomd.dll
Error 140 fatal error LNK1104: cannot open file 'wldap32.lib' Plugins curl






------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Thu Sep 10, 2009 12:40 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

For some reason the CMake GUI was not updating DCMTK CMakeLists.txt.
I.e., /MT was being used instead of /MD as defined in the CMake GUI.
Manually changing from /MT to /MD in CMakeLists.txt has resolved the
issue and everything is working now.

Jason





CMake was not changing my settings to /MD


Jason Jerald wrote:
Quote:
Hello everyone. I built DCMTK 3.5.4 successfully but am having
problems building Plugins Dicom. I am using Visual Studio 2005 on
Windows Vista. Has anybody built Plugins dicom successfully with
Visual Studio on Window Vista?

I believe the following might(?) be issues in building Plugins dicom


*** /MD versus /MT ***
When making DCMTK with CMake the CMAKE_CXX_FLAGS have /MD which is the
same for OSG. However, when I look at the projects in Visual Studio,
the flags are /MT. Is this a problem? If so, why is CMake not setting
it correctly and how can I fix it?

*** iostream.h versus iostream ***
OSG uses iostream. I am not convinced the file ofstream in DCMTK is
configured to use iostream correctly. I tried hardcoding the use of
iostream without getting plugin dicom to build successfully.

*** other library conflicts? ****
I tried the \NoDefaultLib option and tried ignoring some other
libraries with no success.

*** other problems ***
I might be completely missing something. Could there be some other
problem? Any ideas what I am doing wrong? The output is below.

Thanks!

Jason









Error 72 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 73 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 74 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>
Quote:
&))"
(??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 75 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> > &)"
(?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 76 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z) already
defined in dcmimgle.lib(diimage.obj) msvcprtd.lib
Error 77 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z) already
defined in dcmdata.lib(dchashdi.obj) msvcprtd.lib
Error 78 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z)
already defined in dcmdata.lib(dcfilefo.obj) msvcprtd.lib
Error 79 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already
defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 80 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z) already
defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 81 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z) already
defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 82 error LNK2005: "public: char const * __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::c_str(void)const "
(?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 83 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 84 error LNK2005: "public: int __thiscall
std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z) already
defined in dcmimgle.lib(digsdlut.obj) msvcprtd.lib
Error 85 error LNK2005: "public: void __thiscall
std::basic_ios<char,struct std::char_traits<char>
Quote:
::setstate(int,bool)"
(?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 86 error LNK2005: "public: int __thiscall
std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 87 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char
const *,int)"
(?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 88 error LNK2005: "public: static bool __cdecl
std::char_traits<char>::eq_int_type(int const &,int const &)"
(?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 89 error LNK2005: "public: static int __cdecl
std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 90 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::sputc(char)"
(?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 91 error LNK2005: "public: class
std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall
std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const
"
(?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 92 error LNK2005: "public: char __thiscall
std::basic_ios<char,struct std::char_traits<char> >::fill(void)const "
(?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 93 error LNK2005: "public: int __thiscall
std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 94 error LNK2005: "public: int __thiscall
std::ios_base::width(void)const " (?width@ios_base@std@@QBEHXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 95 error LNK2005: "public: static unsigned int __cdecl
std::char_traits<char>::length(char const *)"
(?length@?$char_traits@D@std@@SAIPBD@Z) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 96 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)"
(?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 97 error LNK2005: "public: class std::basic_ostream<char,struct
std::char_traits<char> > * __thiscall std::basic_ios<char,struct
std::char_traits<char> >::tie(void)const "
(?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 98 error LNK2005: "public: bool __thiscall
std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 99 error LNK2005: "public: void __thiscall
std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)"
(?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 100 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Lock(void)"
(?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already
defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 101 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Unlock(void)"
(?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 102 error LNK2005: "private: static class std::locale::_Locimp *
__cdecl std::locale::_Getgloballocale(void)"
(?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 103 error LNK2005: "private: static void __cdecl
std::locale::facet::facet_Register(class std::locale::facet *)"
(?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 104 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)"
(?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 105 error LNK2005: "private: static class std::locale::_Locimp *
__cdecl std::locale::_Init(void)"
(?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 106 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)"
(?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 107 error LNK2005: "public: static void __cdecl
std::ios_base::_Addstd(class std::ios_base *)"
(?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 108 error LNK2005: "private: static void __cdecl
std::ios_base::_Ios_base_dtor(class std::ios_base *)"
(?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 109 error LNK2005: "public: __thiscall
std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined
in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 110 error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined
in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 111 error LNK2005: __invalid_parameter already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 112 error LNK2005: __errno already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 113 error LNK2005: _localeconv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 114 error LNK2005: __encode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 115 error LNK2005: __encoded_null already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 116 error LNK2005: __decode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 117 error LNK2005: __amsg_exit already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 118 error LNK2005: __initterm_e already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 119 error LNK2005: _fflush already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 120 error LNK2005: __unlock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 121 error LNK2005: __lock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 122 error LNK2005: ___CppXcptFilter already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 123 error LNK2005: _atoi already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 124 error LNK2005: ___xi_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 125 error LNK2005: ___xi_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 126 error LNK2005: ___xc_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 127 error LNK2005: ___xc_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 128 error LNK2005: "void __cdecl terminate(void)"
(?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR80D.dll)
LIBCMT.lib
Error 129 error LNK2005: _getenv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 130 error LNK2005: __strtoi64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 131 error LNK2005: __strtoui64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 134 error LNK2019: unresolved external symbol _WSACleanup@0
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 135 error LNK2019: unresolved external symbol _gethostbyname@4
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 136 error LNK2019: unresolved external symbol _gethostname@8
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 137 error LNK2019: unresolved external symbol _WSAStartup@8
referenced in function "long __cdecl gethostid(void)"
(?gethostid@@YAJXZ) dcmdata.lib
Error 138 error LNK2019: unresolved external symbol _main referenced
in function ___tmainCRTStartup LIBCMT.lib
Error 139 fatal error LNK1120: 5 unresolved externals
..\..\..\bin\Debug\..\osgPlugins-2.8.2\osgdb_dicomd.dll
Error 140 fatal error LNK1104: cannot open file 'wldap32.lib' Plugins
curl










------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Thu Sep 10, 2009 8:04 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Jason,

I'm not a Windows developer so have had to sit on the sidelines on helping out with this one as I don't have the expertise to dive in, good to hear you've resolve problem, hopefully this help others.  W.r.t CMake GUI not updating the CMakeLists.txt, this is normal and correct, when you run cmake it just creates and updated the CMakeCache.txt and associated build files once you generate them, it doesn't touch the CMakeLists.txt.

Is there a chance you were missing the some setup when generating the project files?

Robert.

On Thu, Sep 10, 2009 at 1:39 AM, Jason Jerald < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:

For some reason the CMake GUI was not updating DCMTK CMakeLists.txt.  I.e., /MT was being used instead of /MD as defined in the CMake GUI.  Manually changing from /MT to /MD in CMakeLists.txt has resolved the issue and everything is working now.

Jason





CMake was not changing my settings to /MD


Jason Jerald wrote:
Quote:
Hello everyone. I built DCMTK 3.5.4 successfully but am having problems building Plugins Dicom. I am using Visual Studio 2005 on Windows Vista. Has anybody built Plugins dicom successfully with Visual Studio on Window Vista?

I believe the following might(?) be issues in building Plugins dicom


*** /MD versus /MT ***
When making DCMTK with CMake the CMAKE_CXX_FLAGS have /MD which is the same for OSG. However, when I look at the projects in Visual Studio, the flags are /MT. Is this a problem? If so, why is CMake not setting it correctly and how can I fix it?

*** iostream.h versus iostream ***
OSG uses iostream. I am not convinced the file ofstream in DCMTK is configured to use iostream correctly. I tried hardcoding the use of iostream without getting plugin dicom to build successfully.

*** other library conflicts? ****
I tried the NoDefaultLib option and tried ignoring some other libraries with no success.

*** other problems ***
I might be completely missing something. Could there be some other problem?   Any ideas what I am doing wrong?  The output is below.

Thanks!

Jason









Error 72 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 73 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 74 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 75 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> > &)" (?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 76 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z) already defined in dcmimgle.lib(diimage.obj) msvcprtd.lib
Error 77 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z) already defined in dcmdata.lib(dchashdi.obj) msvcprtd.lib
Error 78 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z) already defined in dcmdata.lib(dcfilefo.obj) msvcprtd.lib
Error 79 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 80 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z) already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 81 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z) already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 82 error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 83 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 84 error LNK2005: "public: int __thiscall std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z) already defined in dcmimgle.lib(digsdlut.obj) msvcprtd.lib
Error 85 error LNK2005: "public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 86 error LNK2005: "public: int __thiscall std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 87 error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const *,int)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 88 error LNK2005: "public: static bool __cdecl std::char_traits<char>::eq_int_type(int const &,int const &)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 89 error LNK2005: "public: static int __cdecl std::char_traits<char>::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 90 error LNK2005: "public: int __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 91 error LNK2005: "public: class std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const " (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 92 error LNK2005: "public: char __thiscall std::basic_ios<char,struct std::char_traits<char> >::fill(void)const " (?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 93 error LNK2005: "public: int __thiscall std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 94 error LNK2005: "public: int __thiscall std::ios_base::width(void)const " (?width@ios_base@std@@QBEHXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 95 error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 96 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)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 97 error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > * __thiscall std::basic_ios<char,struct std::char_traits<char> >::tie(void)const " (?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 98 error LNK2005: "public: bool __thiscall std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 99 error LNK2005: "public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 100 error LNK2005: "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 101 error LNK2005: "public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 102 error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 103 error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 104 error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 105 error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 106 error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 107 error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 108 error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 109 error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 110 error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 111 error LNK2005: __invalid_parameter already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 112 error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 113 error LNK2005: _localeconv already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 114 error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 115 error LNK2005: __encoded_null already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 116 error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 117 error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 118 error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 119 error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 120 error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 121 error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 122 error LNK2005: ___CppXcptFilter already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 123 error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 124 error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 125 error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 126 error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 127 error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 128 error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 129 error LNK2005: _getenv already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 130 error LNK2005: __strtoi64 already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 131 error LNK2005: __strtoui64 already defined in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 134 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 135 error LNK2019: unresolved external symbol _gethostbyname@4 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 136 error LNK2019: unresolved external symbol _gethostname@8 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 137 error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "long __cdecl gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 138 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup LIBCMT.lib
Error 139 fatal error LNK1120: 5 unresolved externals ......binDebug..osgPlugins-2.8.2osgdb_dicomd.dll
Error 140 fatal error LNK1104: cannot open file 'wldap32.lib' Plugins curl




_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Thu Sep 10, 2009 6:46 pm    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Thanks for the reply Robert. I guess CMakeLists.txt overrides anything
set within the CMake GUI. Another developer that I work with tried to
do the same thing on a different machine and ran into the identical
issue so I do not believe it was some missing setup step (unless we
happened to miss the same thing).

Jason



Robert Osfield wrote:
Quote:
Hi Jason,

I'm not a Windows developer so have had to sit on the sidelines on
helping out with this one as I don't have the expertise to dive in,
good to hear you've resolve problem, hopefully this help others.
W.r.t CMake GUI not updating the CMakeLists.txt, this is normal and
correct, when you run cmake it just creates and updated the
CMakeCache.txt and associated build files once you generate them, it
doesn't touch the CMakeLists.txt.

Is there a chance you were missing the some setup when generating the
project files?

Robert.

On Thu, Sep 10, 2009 at 1:39 AM, Jason Jerald
< <mailto:>> wrote:


For some reason the CMake GUI was not updating DCMTK
CMakeLists.txt. I.e., /MT was being used instead of /MD as
defined in the CMake GUI. Manually changing from /MT to /MD in
CMakeLists.txt has resolved the issue and everything is working now.

Jason





CMake was not changing my settings to /MD


Jason Jerald wrote:

Hello everyone. I built DCMTK 3.5.4 successfully but am having
problems building Plugins Dicom. I am using Visual Studio 2005
on Windows Vista. Has anybody built Plugins dicom successfully
with Visual Studio on Window Vista?

I believe the following might(?) be issues in building Plugins
dicom


*** /MD versus /MT ***
When making DCMTK with CMake the CMAKE_CXX_FLAGS have /MD
which is the same for OSG. However, when I look at the
projects in Visual Studio, the flags are /MT. Is this a
problem? If so, why is CMake not setting it correctly and how
can I fix it?

*** iostream.h versus iostream ***
OSG uses iostream. I am not convinced the file ofstream in
DCMTK is configured to use iostream correctly. I tried
hardcoding the use of iostream without getting plugin dicom to
build successfully.

*** other library conflicts? ****
I tried the \NoDefaultLib option and tried ignoring some other
libraries with no success.

*** other problems ***
I might be completely missing something. Could there be some
other problem? Any ideas what I am doing wrong? The output
is below.

Thanks!

Jason









Error 72 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 73 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 74 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 75 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> > &)"
(?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 76 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z)
already defined in dcmimgle.lib(diimage.obj) msvcprtd.lib
Error 77 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z)
already defined in dcmdata.lib(dchashdi.obj) msvcprtd.lib
Error 78 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z)
already defined in dcmdata.lib(dcfilefo.obj) msvcprtd.lib
Error 79 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z)
already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 80 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z)
already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 81 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z)
already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 82 error LNK2005: "public: char const * __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::c_str(void)const "
(?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 83 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 84 error LNK2005: "public: int __thiscall
std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z)
already defined in dcmimgle.lib(digsdlut.obj) msvcprtd.lib
Error 85 error LNK2005: "public: void __thiscall
std::basic_ios<char,struct std::char_traits<char>
Quote:
::setstate(int,bool)"
(?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 86 error LNK2005: "public: int __thiscall
std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 87 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::sputn(char const *,int)"
(?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 88 error LNK2005: "public: static bool __cdecl
std::char_traits<char>::eq_int_type(int const &,int const &)"
(?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined
in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 89 error LNK2005: "public: static int __cdecl
std::char_traits<char>::eof(void)"
(?eof@?$char_traits@D@std@@SAHXZ) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 90 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::sputc(char)"
(?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 91 error LNK2005: "public: class
std::basic_streambuf<char,struct std::char_traits<char> > *
__thiscall std::basic_ios<char,struct std::char_traits<char>
Quote:
::rdbuf(void)const "
(?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 92 error LNK2005: "public: char __thiscall
std::basic_ios<char,struct std::char_traits<char>
Quote:
::fill(void)const "
(?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 93 error LNK2005: "public: int __thiscall
std::ios_base::flags(void)const "
(?flags@ios_base@std@@QBEHXZ) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 94 error LNK2005: "public: int __thiscall
std::ios_base::width(void)const "
(?width@ios_base@std@@QBEHXZ) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 95 error LNK2005: "public: static unsigned int __cdecl
std::char_traits<char>::length(char const *)"
(?length@?$char_traits@D@std@@SAIPBD@Z) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 96 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)"
(?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 97 error LNK2005: "public: class
std::basic_ostream<char,struct std::char_traits<char> > *
__thiscall std::basic_ios<char,struct std::char_traits<char>
Quote:
::tie(void)const "
(?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 98 error LNK2005: "public: bool __thiscall
std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 99 error LNK2005: "public: void __thiscall
std::basic_ostream<char,struct std::char_traits<char>
Quote:
::_Osfx(void)"
(?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 100 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Lock(void)"
(?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 101 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Unlock(void)"
(?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 102 error LNK2005: "private: static class
std::locale::_Locimp * __cdecl
std::locale::_Getgloballocale(void)"
(?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 103 error LNK2005: "private: static void __cdecl
std::locale::facet::facet_Register(class std::locale::facet
*)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 104 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)"
(?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 105 error LNK2005: "private: static class
std::locale::_Locimp * __cdecl std::locale::_Init(void)"
(?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 106 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const
*)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 107 error LNK2005: "public: static void __cdecl
std::ios_base::_Addstd(class std::ios_base *)"
(?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 108 error LNK2005: "private: static void __cdecl
std::ios_base::_Ios_base_dtor(class std::ios_base *)"
(?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 109 error LNK2005: "public: __thiscall
std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 110 error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 111 error LNK2005: __invalid_parameter already defined
in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 112 error LNK2005: __errno already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 113 error LNK2005: _localeconv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 114 error LNK2005: __encode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 115 error LNK2005: __encoded_null already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 116 error LNK2005: __decode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 117 error LNK2005: __amsg_exit already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 118 error LNK2005: __initterm_e already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 119 error LNK2005: _fflush already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 120 error LNK2005: __unlock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 121 error LNK2005: __lock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 122 error LNK2005: ___CppXcptFilter already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 123 error LNK2005: _atoi already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 124 error LNK2005: ___xi_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 125 error LNK2005: ___xi_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 126 error LNK2005: ___xc_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 127 error LNK2005: ___xc_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 128 error LNK2005: "void __cdecl terminate(void)"
(?terminate@@YAXXZ) already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 129 error LNK2005: _getenv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 130 error LNK2005: __strtoi64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 131 error LNK2005: __strtoui64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 134 error LNK2019: unresolved external symbol
_WSACleanup@0 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 135 error LNK2019: unresolved external symbol
_gethostbyname@4 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 136 error LNK2019: unresolved external symbol
_gethostname@8 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 137 error LNK2019: unresolved external symbol
_WSAStartup@8 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 138 error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup LIBCMT.lib
Error 139 fatal error LNK1120: 5 unresolved externals
..\..\..\bin\Debug\..\osgPlugins-2.8.2\osgdb_dicomd.dll
Error 140 fatal error LNK1104: cannot open file 'wldap32.lib'
Plugins curl




_______________________________________________
osg-users mailing list

<mailto:>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



_______________________________________________
osg-users mailing list

<mailto:>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------------------------------------------------------------






------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Thu Sep 10, 2009 6:51 pm    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

One more thing in case anyone else tries to build Plugins dicom on
Windows Vista (and likely other versions of Windows):

We commented out the following line in ReaderWriterDICOM.cpp
#define HAVE_CONFIG_H
otherwise "osconfig.h" tries to include "cfunix.h" on windows machines

Jason


Jason Jerald wrote:
Quote:

Thanks for the reply Robert. I guess CMakeLists.txt overrides
anything set within the CMake GUI. Another developer that I work with
tried to do the same thing on a different machine and ran into the
identical issue so I do not believe it was some missing setup step
(unless we happened to miss the same thing).

Jason



Robert Osfield wrote:
Quote:
Hi Jason,

I'm not a Windows developer so have had to sit on the sidelines on
helping out with this one as I don't have the expertise to dive in,
good to hear you've resolve problem, hopefully this help others.
W.r.t CMake GUI not updating the CMakeLists.txt, this is normal and
correct, when you run cmake it just creates and updated the
CMakeCache.txt and associated build files once you generate them, it
doesn't touch the CMakeLists.txt.

Is there a chance you were missing the some setup when generating the
project files?

Robert.

On Thu, Sep 10, 2009 at 1:39 AM, Jason Jerald
< <mailto:>> wrote:


For some reason the CMake GUI was not updating DCMTK
CMakeLists.txt. I.e., /MT was being used instead of /MD as
defined in the CMake GUI. Manually changing from /MT to /MD in
CMakeLists.txt has resolved the issue and everything is working now.

Jason





CMake was not changing my settings to /MD


Jason Jerald wrote:

Hello everyone. I built DCMTK 3.5.4 successfully but am having
problems building Plugins Dicom. I am using Visual Studio 2005
on Windows Vista. Has anybody built Plugins dicom successfully
with Visual Studio on Window Vista?

I believe the following might(?) be issues in building Plugins
dicom


*** /MD versus /MT ***
When making DCMTK with CMake the CMAKE_CXX_FLAGS have /MD
which is the same for OSG. However, when I look at the
projects in Visual Studio, the flags are /MT. Is this a
problem? If so, why is CMake not setting it correctly and how
can I fix it?

*** iostream.h versus iostream ***
OSG uses iostream. I am not convinced the file ofstream in
DCMTK is configured to use iostream correctly. I tried
hardcoding the use of iostream without getting plugin dicom to
build successfully.

*** other library conflicts? ****
I tried the \NoDefaultLib option and tried ignoring some other
libraries with no success.

*** other problems ***
I might be completely missing something. Could there be some
other problem? Any ideas what I am doing wrong? The output
is below.

Thanks!

Jason









Error 72 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 73 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z)

already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 74 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z)

already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 75 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> > &)"

(?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 76 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z)
already defined in dcmimgle.lib(diimage.obj) msvcprtd.lib
Error 77 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@I@Z)
already defined in dcmdata.lib(dchashdi.obj) msvcprtd.lib
Error 78 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAVios_base@1@AAV21@@Z@Z)

already defined in dcmdata.lib(dcfilefo.obj) msvcprtd.lib
Error 79 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z)
already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 80 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@G@Z)
already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 81 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_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@K@Z)
already defined in dcmimgle.lib(dimoimg.obj) msvcprtd.lib
Error 82 error LNK2005: "public: char const * __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::c_str(void)const "

(?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ)

already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 83 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_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z)

already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 84 error LNK2005: "public: int __thiscall
std::ios_base::setf(int,int)" (?setf@ios_base@std@@QAEHHH@Z)
already defined in dcmimgle.lib(digsdlut.obj) msvcprtd.lib
Error 85 error LNK2005: "public: void __thiscall
std::basic_ios<char,struct std::char_traits<char>
Quote:
::setstate(int,bool)"
(?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 86 error LNK2005: "public: int __thiscall
std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 87 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::sputn(char const *,int)"

(?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 88 error LNK2005: "public: static bool __cdecl
std::char_traits<char>::eq_int_type(int const &,int const &)"
(?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined
in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 89 error LNK2005: "public: static int __cdecl
std::char_traits<char>::eof(void)"
(?eof@?$char_traits@D@std@@SAHXZ) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 90 error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::sputc(char)"
(?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 91 error LNK2005: "public: class
std::basic_streambuf<char,struct std::char_traits<char> > *
__thiscall std::basic_ios<char,struct std::char_traits<char>
Quote:
::rdbuf(void)const "

(?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ)

already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 92 error LNK2005: "public: char __thiscall
std::basic_ios<char,struct std::char_traits<char>
Quote:
::fill(void)const "
(?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 93 error LNK2005: "public: int __thiscall
std::ios_base::flags(void)const "
(?flags@ios_base@std@@QBEHXZ) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 94 error LNK2005: "public: int __thiscall
std::ios_base::width(void)const "
(?width@ios_base@std@@QBEHXZ) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 95 error LNK2005: "public: static unsigned int __cdecl
std::char_traits<char>::length(char const *)"
(?length@?$char_traits@D@std@@SAIPBD@Z) already defined in
dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 96 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)"

(?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 97 error LNK2005: "public: class
std::basic_ostream<char,struct std::char_traits<char> > *
__thiscall std::basic_ios<char,struct std::char_traits<char>
Quote:
::tie(void)const "

(?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ)

already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 98 error LNK2005: "public: bool __thiscall
std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 99 error LNK2005: "public: void __thiscall
std::basic_ostream<char,struct std::char_traits<char>
Quote:
::_Osfx(void)"
(?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 100 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Lock(void)"
(?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 101 error LNK2005: "public: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
Quote:
::_Unlock(void)"
(?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in dcmimgle.lib(dcmimage.obj) msvcprtd.lib
Error 102 error LNK2005: "private: static class
std::locale::_Locimp * __cdecl
std::locale::_Getgloballocale(void)"
(?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 103 error LNK2005: "private: static void __cdecl
std::locale::facet::facet_Register(class std::locale::facet
*)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 104 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)"
(?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 105 error LNK2005: "private: static class
std::locale::_Locimp * __cdecl std::locale::_Init(void)"
(?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 106 error LNK2005: "public: static void __cdecl
std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const
*)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 107 error LNK2005: "public: static void __cdecl
std::ios_base::_Addstd(class std::ios_base *)"
(?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 108 error LNK2005: "private: static void __cdecl
std::ios_base::_Ios_base_dtor(class std::ios_base *)"
(?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in
msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 109 error LNK2005: "public: __thiscall
std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 110 error LNK2005: "public: __thiscall
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already
defined in msvcprtd.lib(MSVCP80D.dll) libcpmt.lib
Error 111 error LNK2005: __invalid_parameter already defined
in MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 112 error LNK2005: __errno already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 113 error LNK2005: _localeconv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 114 error LNK2005: __encode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 115 error LNK2005: __encoded_null already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 116 error LNK2005: __decode_pointer already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 117 error LNK2005: __amsg_exit already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 118 error LNK2005: __initterm_e already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 119 error LNK2005: _fflush already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 120 error LNK2005: __unlock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 121 error LNK2005: __lock already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 122 error LNK2005: ___CppXcptFilter already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 123 error LNK2005: _atoi already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 124 error LNK2005: ___xi_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 125 error LNK2005: ___xi_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 126 error LNK2005: ___xc_a already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 127 error LNK2005: ___xc_z already defined in
MSVCRTD.lib(cinitexe.obj) LIBCMT.lib
Error 128 error LNK2005: "void __cdecl terminate(void)"
(?terminate@@YAXXZ) already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 129 error LNK2005: _getenv already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 130 error LNK2005: __strtoi64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 131 error LNK2005: __strtoui64 already defined in
MSVCRTD.lib(MSVCR80D.dll) LIBCMT.lib
Error 134 error LNK2019: unresolved external symbol
_WSACleanup@0 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 135 error LNK2019: unresolved external symbol
_gethostbyname@4 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 136 error LNK2019: unresolved external symbol
_gethostname@8 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 137 error LNK2019: unresolved external symbol
_WSAStartup@8 referenced in function "long __cdecl
gethostid(void)" (?gethostid@@YAJXZ) dcmdata.lib
Error 138 error LNK2019: unresolved external symbol _main
referenced in function ___tmainCRTStartup LIBCMT.lib
Error 139 fatal error LNK1120: 5 unresolved externals
..\..\..\bin\Debug\..\osgPlugins-2.8.2\osgdb_dicomd.dll
Error 140 fatal error LNK1104: cannot open file 'wldap32.lib'
Plugins curl




_______________________________________________
osg-users mailing list

<mailto:>

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list

<mailto:>

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------------------------------------------------------------











------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Fri Sep 11, 2009 7:56 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Jason,

On Thu, Sep 10, 2009 at 7:45 PM, Jason Jerald < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:

Thanks for the reply Robert.  I guess CMakeLists.txt overrides anything set within the CMake GUI.  


No, CMakeLists.txt provides the defaults that are written to the CMakeCache.txt, then ccmake/or the CMake gui override this setting new values in CMakeCache.txt.  I'm not party to the DCMTK CMake setup but this is how CMake works, something eles must be going wrong in your setup.



Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Fri Sep 11, 2009 7:57 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Jason,

On Thu, Sep 10, 2009 at 7:50 PM, Jason Jerald < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
One more thing in case anyone else tries to build Plugins dicom on Windows Vista (and likely other versions of Windows):

We commented out the following line in ReaderWriterDICOM.cpp
#define HAVE_CONFIG_H
otherwise "osconfig.h" tries to include "cfunix.h" on windows machines


Which version of the OSG are you using?  Originally no one had tested the DCMTK plugin before I made 2.8, but since then I did get to work with a engineer under Windows and we got things working and I had to modify the OSG a bit to help.  I'm afraid I don't recall the details, but I did check changes into svn/trunk that helped.

Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Thu Sep 17, 2009 10:39 pm    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

We are currently using OSG 2.8.2. I see the problem with "#define
HAVE_CONFIG_H" was fixed in the svn/trunk.

We may try building the svn/trunk soon for testing. Although we will
want to use the latest stable/official release for anything other than
testing because our projects will be required to ensure stability.

Jason


Robert Osfield wrote:
Quote:
Hi Jason,

On Thu, Sep 10, 2009 at 7:50 PM, Jason Jerald
< <mailto:>> wrote:

One more thing in case anyone else tries to build Plugins dicom on
Windows Vista (and likely other versions of Windows):

We commented out the following line in ReaderWriterDICOM.cpp
#define HAVE_CONFIG_H
otherwise "osconfig.h" tries to include "cfunix.h" on windows machines


Which version of the OSG are you using? Originally no one had tested
the DCMTK plugin before I made 2.8, but since then I did get to work
with a engineer under Windows and we got things working and I had to
modify the OSG a bit to help. I'm afraid I don't recall the details,
but I did check changes into svn/trunk that helped.

Robert.
------------------------------------------------------------------------






------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Fri Sep 18, 2009 8:08 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Jason,

On Thu, Sep 17, 2009 at 11:38 PM, Jason Jerald < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
We are currently using OSG 2.8.2.   I see the problem with "#define HAVE_CONFIG_H" was fixed in the svn/trunk.


It looks like the dicom plugin wasn't tested under Windows out prior to the 2.8.2 and other release, so without feedback you don't know that something needs fixing..

Since 2.8 I've done more work on osgVolume and helped another engineer get things compiling under Windows, so some changes were checked into svn/trunk.  I don't have access to a Windows environment so I can't test things out first hand.
 
Quote:
We may try building the svn/trunk soon for testing.  Although we will want to use the latest stable/official release for anything other than testing because our projects will be required to ensure stability.


osgVolume + the dicom plugin are more stable and mature in svn/trunk virtue of various improvements since 2.8.x was made.  Just because svn/trunk doesn't have a stable tag doesn't mean it's literally unstable, while occasional regressions to creep in before they are caught this typically doesn't dominate using svn/trunk and dev versions as it's my policy to try and keep svn/trunk near to release quality as we can make it during the whole development cycle.  Often svn/trunk can be more stable than the official stable releases as it'll contain all the latest fixes.

So... try svn/trunk, if it works for you great, it it doesn't revert to 2.8.2 or backport some of the improvements to svn/trunk to your 2.8.2 sources.  Since it'll all open source it's all under your control.

Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Jason (Jason Jerald)
Newbie


Joined: 02 Sep 2009
Posts: 18

PostPosted: Sat Sep 19, 2009 12:48 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

I built the svn trunk and that seemed to solve the issues on windows I
previously described.

The only changes I had to do were
1. add wsock32.lib to the Plugins dicom project
2. turn off BUILD_OSG_WRAPPERS in cmake, otherwise there was an error
in osganimation (as described in a forum post).

There is still an error with curl not finding the library wldap32.lib
(same as OSG 2.8.2). But this is not necessary for what we need so I am
not worrying about that for now.

I will stick with the svn trunk for now. Thanks for the advice on all
of this!

Jason




Robert Osfield wrote:
Quote:
Hi Jason,

On Thu, Sep 17, 2009 at 11:38 PM, Jason Jerald
< <mailto:>> wrote:

We are currently using OSG 2.8.2. I see the problem with
"#define HAVE_CONFIG_H" was fixed in the svn/trunk.



It looks like the dicom plugin wasn't tested under Windows out prior
to the 2.8.2 and other release, so without feedback you don't know
that something needs fixing..

Since 2.8 I've done more work on osgVolume and helped another engineer
get things compiling under Windows, so some changes were checked into
svn/trunk. I don't have access to a Windows environment so I can't
test things out first hand.


We may try building the svn/trunk soon for testing. Although we
will want to use the latest stable/official release for anything
other than testing because our projects will be required to ensure
stability.


osgVolume + the dicom plugin are more stable and mature in svn/trunk
virtue of various improvements since 2.8.x was made. Just because
svn/trunk doesn't have a stable tag doesn't mean it's literally
unstable, while occasional regressions to creep in before they are
caught this typically doesn't dominate using svn/trunk and dev
versions as it's my policy to try and keep svn/trunk near to release
quality as we can make it during the whole development cycle. Often
svn/trunk can be more stable than the official stable releases as
it'll contain all the latest fixes.

So... try svn/trunk, if it works for you great, it it doesn't revert
to 2.8.2 or backport some of the improvements to svn/trunk to your
2.8.2 sources. Since it'll all open source it's all under your control.

Robert




------------------------------------------------------------------------






------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Send e-mail
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Sat Sep 19, 2009 1:30 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Jason,

Quote:
The only changes I had to do were
1. add wsock32.lib to the Plugins dicom project

You could add something like this to the
src/osgPlugins/dicom/CMakeLists.txt:

IF (WIN32)
SET(TARGET_EXTERNAL_LIBRARIES
Ws2_32.lib)
ENDIF()

Then regenerate the build files and the library should be added to the
project without you having to do it manually. Plus once you've tested
this, if you submit the changed file to the osg-submissions list it will
solve the problem for everyone else! :-)

Quote:
There is still an error with curl not finding the library wldap32.lib
(same as OSG 2.8.2). But this is not necessary for what we need so I am
not worrying about that for now.

That should be in the Platform SDK, you might just have to do a search
on your computer to find where it is and add that to your Visual Studio
"Library directories" in Tools-Options-C/C++-Directories section.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Sat Sep 19, 2009 9:19 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Jason and J-S,


On Sat, Sep 19, 2009 at 2:30 AM, Jean-Sébastien Guay < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>You could add something like this to the src/osgPlugins/dicom/CMakeLists.txt:
Quote:

IF (WIN32)
   SET(TARGET_EXTERNAL_LIBRARIES
       Ws2_32.lib)
ENDIF()


I've just added this to src/osgPlugins/dicom/CMakeLists.txt and checked it into svn/trunk, let me know if it works fine or not,

Thanks,
Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Sat Sep 19, 2009 11:30 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi Robert,

Quote:
I've just added this to src/osgPlugins/dicom/CMakeLists.txt and checked
it into svn/trunk, let me know if it works fine or not,

Sorry, I copy-pasted that from another CMakeLists.txt and forgot to
change the lib name, the dicom plugin needs wsock32.lib not Ws2_32.lib...

And Jason will need to test, I've never built the dicom plugin, I was
just suggesting this.

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Sun Sep 20, 2009 9:27 am    Post subject:
Problems building Plugins dicom - RESOLVED
Reply with quote

Hi J-S,

On Sat, Sep 19, 2009 at 12:30 PM, Jean-Sébastien Guay < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Sorry, I copy-pasted that from another CMakeLists.txt and forgot to change the lib name, the dicom plugin needs wsock32.lib not Ws2_32.lib...

Oopps Smile

Now fixed!

Robert.

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Building with MinGW on Windows 10 Skaldi Build system [build] 1 Sat May 18, 2019 3:47 pm View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 0 Fri May 10, 2019 11:20 am View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 2 Fri May 10, 2019 11:19 am View latest post
No new posts Problems with dae plugin John Richardson Plugins [osgPlugins] 0 Thu Apr 11, 2019 5:00 pm View latest post
No new posts Question about method of building osgQt trexmsuee Build system [build] 0 Thu Apr 11, 2019 2:22 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP