<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"></HEAD><BODY><DIV><FONT size=4>Hi everybody</FONT></DIV>
<DIV><FONT size=4></FONT>&nbsp;</DIV>
<DIV><FONT size=4>My program was working fine using the following 
configuration:</FONT></DIV>
<DIV><FONT size=4>ITK 2.x (I think 2.8 !)</FONT></DIV>
<DIV><FONT size=4>Qt 2.3 non commercial</FONT></DIV>
<DIV><FONT size=4>CMake 2.0.6</FONT></DIV>
<DIV><FONT size=4></FONT>&nbsp;</DIV>
<DIV><FONT size=4>Now, I am trying to upgrade to a neuer version of ITK, I 
tried&nbsp; ITK 3.2 and ITK 3.10 with CMake 2.4 and CMake 2.6.2.&nbsp; Qt is the 
same, i..e. qt 2.3. I had troubles with all configurations. E.g. using ITK 3.2 + 
CMake 2.4.6 + Qt 2.3,&nbsp;I get the follwing error (the CMakefile of the 
corresponding subproject is attached):</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<P><FONT face=Arial size=2>1&gt;------ Build started: Project: qglviewer, 
Configuration: Debug Win32 ------</FONT></P>
<P><FONT face=Arial size=2>1&gt;QT Wrapped File</FONT></P>
<P><FONT face=Arial size=2>1&gt;moc: D:/NPRTool/qglviewer/qglviewer_MOC_SRCS: No 
such file</FONT></P>
<P><FONT face=Arial size=2>1&gt;Project : error PRJ0019: A tool returned an 
error code from "QT Wrapped File"</FONT></P>
<P><FONT face=Arial size=2>1&gt;Build log was saved at 
"file://d:\NPRTool-BIN\qglviewer\qglviewer.dir\Debug\BuildLog.htm"</FONT></P>
<P><FONT face=Arial size=2>1&gt;qglviewer - 1 error(s), 0 warning(s)</FONT></P>
<P><FONT face=Arial size=2>========== Build: 0 succeeded, 1 failed, 1 
up-to-date, 0 skipped ==========</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT size=4>Now, if I modify the QT_WRAP_CPP command in the CMakefile 
to</FONT> </P></DIV>
<DIV><FONT face=Arial size=2>QT_WRAP_CPP(qglviewer&nbsp; qglviewer_SRCS&nbsp; 
${qglviewer_MOC_SRCS})</FONT><BR></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=4>I get the following error, repeated 10 times:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<P><FONT face=Arial size=2>1&gt; C:\Program Files\Microsoft Visual Studio 
8\VC\include\exception(83) : error C2732: linkage specification contradicts 
earlier specification for 'qstrlen' </FONT></P>
<P><FONT face=Arial size=2>1&gt; C:\Program Files\Microsoft Visual Studio 
8\VC\include\exception(83) : see declaration of 'qstrlen'</FONT></P></DIV>
<DIV><FONT size=4>Together with a long list of the following 
warning:</FONT></DIV>
<DIV><FONT size=4></FONT>&nbsp;</DIV>
<DIV>
<P><FONT face=Arial size=2>1&gt;c:\qt23\include\qcstring.h(93) : warning C4996: 
'strcpy': This function or variable may be unsafe. Consider using strcpy_s 
instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help 
for details.</FONT></P>
<P><FONT face=Arial size=2>1&gt; C:\Program Files\Microsoft Visual Studio 
8\VC\include\string.h(74) : see declaration of 'strcpy'</FONT></P>
<P><FONT size=4></FONT>&nbsp;</P>
<P><FONT size=4>Any idea what&nbsp;my error is? As I mentioned before, the same 
program&nbsp; was working with old versions of ITK and CMake. I appreciate any 
kind of help.</FONT></P>
<P><FONT size=4>Thanks,</FONT></P>
<P><FONT size=4>Zein</FONT></P></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>