DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Tue, 2018-08-14, 09:53

All times are UTC + 1 hour




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue, 2016-11-29, 10:34 
Offline

Joined: Fri, 2016-11-25, 10:31
Posts: 4
Thanks Michael for your reply. I used the guidelines on http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_CMakeConfiguration360 to configure CMake. Sorry but I'm not sure where is the option to choose shared or static libraries.

Regards,
Ruchir


Top
 Profile  
 
PostPosted: Tue, 2016-11-29, 22:25 
Offline
DCMTK Developer

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

sorry, not sure where the problem comes from. Maybe you can restart the whole build process from scratch. Otherwise:

Are you compiling DCMTK 3.6.0?

If so, can you also try a current snapshot?

Can you use try a more current version of Visual Studio, too?

Best,
Michael


Top
 Profile  
 
PostPosted: Thu, 2016-12-01, 11:14 
Offline

Joined: Fri, 2016-11-25, 10:31
Posts: 4
Hi Michael,

Thanks for the suggestions. OK, I tried the snapshot without building shared libraries when configuring using CMake. I am using VS2013.

Upon compilation I was getting a few other errors which I resolved. But still the following errors remain:

ofstd.lib(ofstd.obj) : error LNK2019: unresolved external symbol _NetWkstaUserGetInfo@12 referenced in function "public: static class OFString __cdecl OFStandard::getUserName(void)" (?getUserName@OFStandard@@SA?AVOFString@@XZ)
1>dcmdata.lib(dcuid.obj) : error LNK2019: unresolved external symbol _Netbios@4 referenced in function "unsigned char * __cdecl getMACAddress(unsigned char * const)" (?getMACAddress@@YAPAEQAE@Z)


Regards,
Ruchir


Top
 Profile  
 
PostPosted: Fri, 2016-12-02, 11:14 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1682
Location: Oldenburg, Germany
Weird.
What kind of other errors? It should build out of the box with no errors, so there is definitely something fishy.

Did you try a static (i.e. non-shared) build as I proposed before?

Michael


Top
 Profile  
 
PostPosted: Fri, 2016-12-02, 20:17 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1956
Location: Oldenburg, Germany
Quote:
What kind of other errors? It should build out of the box with no errors, so there is definitely something fishy.

As far as I understood the OP, the error is not with the compilation of the DCMTK but with the integration of it into another porgram.


Top
 Profile  
 
PostPosted: Mon, 2016-12-05, 10:52 
Offline

Joined: Fri, 2016-11-25, 10:31
Posts: 4
Yeah, @J. Riesmeier is right. The errors are when I integrate DCMTK with VS and compile a trial VS project. DCMTK compilation was fine.
Quote:
Did you try a static (i.e. non-shared) build as I proposed before?

During CMake configuration, I did not check the box against BUILD_SHARED_LIBS which should mean static build, right?


Top
 Profile  
 
PostPosted: Mon, 2016-12-05, 10:56 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1682
Location: Oldenburg, Germany
Yes, I lost track over the length of the thead.

The setting about shared or static build should be the same as you used when building DCMTK.

If you link your own programs against DCMTK, try linking against all libraries that also comparable DCMTK libraries have been linked to; e.g. if you compile an application for DCMTK networking, you could try copying the libraries that were used when building DCMTK's storescu.

Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

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