Error compilation dcmtk-3.6.1_20140617 with Qt 5.3

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
paolom
Posts: 169
Joined: Tue, 2008-09-16, 15:02

Error compilation dcmtk-3.6.1_20140617 with Qt 5.3

#1 Post by paolom »

Hi,
I've compiled the dcmtk-3.6.1_20140617 under Windows 7 with CMAKE and it works.

I create a project with Qt 5.3 including dcmtk-3.6.1_20140617 the and when I try to compile I get many errors...this is the first:

Code: Select all

tracelog.h(59) : error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion).
I try to compile dcmtk-3.6.1_20140617 both with DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS enabled and not but I get the same errors..

With dcmtk-3.6.0 it works correctly.

Any suggests??

Thanks

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Error compilation dcmtk-3.6.1_20140617 with Qt 5.3

#2 Post by J. Riesmeier »

Did you enable support for Unicode / wide chars?

paolom
Posts: 169
Joined: Tue, 2008-09-16, 15:02

Re: Error compilation dcmtk-3.6.1_20140617 with Qt 5.3

#3 Post by paolom »

Where can I enable this support?

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: Error compilation dcmtk-3.6.1_20140617 with Qt 5.3

#4 Post by Jan Schlamelcher »

JR is probably referring to this post regarding DCMTK vs. QT:
andrea wrote:By disabling UNICODE in the qmake project file, I was able to compile a project linking dcmtk libraries (cloned from git repository on date 30/07/14).
Just add the following line to the .pro file:
DEFINES -= UNICODE
See this thread for detailed explanation.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest