DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sun, 2018-01-21, 09:40

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: VS2017 compile issue
PostPosted: Thu, 2017-12-07, 22:51 
Offline

Joined: Wed, 2017-12-06, 09:59
Posts: 2
I am a new user of DcmTK, and have recently looked into using DcmTK for a medical imaging project. I was able to compile the code on Mac and Linux successfully. But when I tried to open up the project using Visual Studio 2017, I got the following error:


Error LNK2019 unresolved external symbol u_errorName_57 referenced in function "public: class OFCondition __cdecl OFCharacterEncoding::Implementation::convert(class OFString &,char const *,unsigned __int64)" (?convert@Implementation@OFCharacterEncoding@@QEAA?AVOFCondition@@AEAVOFString@@PEBD_K@Z) C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CMakeLists.txt C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ofstd.lib(ofchrenc.cc.obj) 1

As a note, I am using Visual Studio 2017's new feature of directing opening up a folder (vs. run cmake to generate .sln). Do you know how to resolve the problem?

Thanks!


Top
 Profile  
 
 Post subject: Re: VS2017 compile issue
PostPosted: Fri, 2017-12-08, 11:47 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1661
Location: Oldenburg, Germany
Hi,

we do not support this new VS 2017 feature but only the CMake -> sln process. CMake does perform some tests on your system to check for 3rd party libraries and other stuff, which it then writes to DCMTK's osconfig.h which reflects your system/compiler capabilities and configuration then. Can you please try the regular CMake process?

Out of curiosity: Do you have a link at hand describing the VS feature you are referring to? Maybe this is something we can address in the future.

Best,
Michael

P.S: Is it the VS 2017 CMake feature described here?


Top
 Profile  
 
 Post subject: Re: VS2017 compile issue
PostPosted: Fri, 2017-12-08, 17:35 
Offline

Joined: Wed, 2017-12-06, 09:59
Posts: 2
I tried to create .sln from CMAKE, and had the same link error related to ofstd.

VS 2017's "open directory" feature can indeed be found at https://blogs.msdn.microsoft.com/vcblog ... al-studio/. It would be great if dcmtk can work with it.

Thanks for your help!


Top
 Profile  
 
 Post subject: Re: VS2017 compile issue
PostPosted: Fri, 2017-12-08, 17:40 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1661
Location: Oldenburg, Germany
Probably they (VS) also only run cmake in the background based on our project files, so this should work out of the box, too (did not try it though).

Did you enable the i2d library in CMake, or libiconv? If so, you would have to get and link against the related libraries.

Best,
Michael


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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

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