<div class="gmail_quote">From: <b class="gmail_sendername">Ho Cheung</b> <span dir="ltr"><<a href="mailto:hocheung20@gmail.com">hocheung20@gmail.com</a>></span><br>Date: Fri, Nov 11, 2011 at 12:16 PM<br>Subject: Fwd: [Vxl-users] vul_file.h bug<br>
To: <a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a><br>Cc: Amitha Perera <<a href="mailto:amithaperera@users.sourceforge.net">amithaperera@users.sourceforge.net</a>>, "<a href="mailto:vxl-users@lists.sourceforge.net">vxl-users@lists.sourceforge.net</a>" <<a href="mailto:vxl-users@lists.sourceforge.net">vxl-users@lists.sourceforge.net</a>>, <a href="mailto:yanggehua@gmail.com">yanggehua@gmail.com</a><br>
<br><br>Actually I found the problem now. It appears that my project is using the vxl_config.h from the VXL that ITK includes with its own source as I surmised earlier. Forwarding this to the ITK developer's list.<div class="im HOEnZb">
<br><br clear="all">
Ho Cheung<br>Research Assistant<br>Bio-Image Analytics Lab - University of Houston<br><a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a><br>Cell: <a href="tel:%28832%29%20215-6347" value="+18322156347" target="_blank">(832) 215-6347</a><br>
<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_quote">On Fri, Nov 11, 2011 at 9:53 AM, Gehua Yang <span dir="ltr"><<a href="mailto:yanggehua@gmail.com" target="_blank">yanggehua@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you look at line 125-139 in $vxl/src/CMakeLists.txt, you will see that VXL_USE_WIN_WCHAR_T is forced to be either 0 or 1 unless there is a situation that we missed. <br><br>IF(WIN32)<br> IF(VXL_HAS_WIN_WCHAR_T)<br> OPTION( VXL_USE_WIN_WCHAR_T "Build overloading functions that accept Windows wide char strings?" YES )<br>
IF(VXL_USE_WIN_WCHAR_T) # Force it to be 0/1<br> SET(VXL_USE_WIN_WCHAR_T 1)<br> ELSE(VXL_USE_WIN_WCHAR_T)<br> SET(VXL_USE_WIN_WCHAR_T 0)<br> ENDIF(VXL_USE_WIN_WCHAR_T)<br> ELSE(VXL_HAS_WIN_WCHAR_T)<br>
SET(VXL_USE_WIN_WCHAR_T 0)<br> ENDIF(VXL_HAS_WIN_WCHAR_T)<br>ELSE(WIN32)<br> # avoid empty macro definition<br> SET(VXL_USE_WIN_WCHAR_T 0)<br>ENDIF(WIN32)<br><br>Second, you can look inside $vxl/bin/CMakeCache.txt, check what is the value of variable VXL_USE_WIN_WCHAR_T, making sure it is either 0 or 1. <br>
<br>Third, if both places look okay, you will need to re-generate the vxl_config.h file. You can do so by setting VXL_UPDATE_CONFIGURATION to true in CMake (note that it is an advanced variable) and hit Generate button. <br>
<br><br>I believe these three steps will get you back on the road. :)<br><br>Best, <br><br>Gehua<div><div><br><br><br><br><br><br><br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 10:49 PM, Ho Cheung <span dir="ltr"><<a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Do you have any modified files in your VXL source tree?<br clear="all"></blockquote></div><div><br>No.<div><br><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Have you tried deleting your vxl_config.h from your build tree, and
re-running CMake?</blockquote></div><div><br>Yes. The problem still remains.<div><br><br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Also make sure you don't have a vxl_config.h in your *source* tree.
This can happen if the user accidently does an in-source
configuration. If this happens, it's very difficult to undo. :-/<br></blockquote></div><div><br>While vxl_config.h doesn't exist in our source tree, I noticed that ITK uses its own internal version of VXL and has its own vul_config.h. I wonder if this could be causing the issue.<br>
</div> <br></div> <br></div><div>Ho Cheung<br>Research Assistant<br>Bio-Image Analytics Lab - University of Houston<br><a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a><br>Cell: <a href="tel:%28832%29%20215-6347" value="+18322156347" target="_blank">(832) 215-6347</a><br>
<br><br></div><div><div></div><div><div class="gmail_quote">On Thu, Nov 10, 2011 at 9:31 PM, Amitha Perera <span dir="ltr"><<a href="mailto:amithaperera@users.sourceforge.net" target="_blank">amithaperera@users.sourceforge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
In a different email to me, you said you are using r32878. There
was an issue initially, but it was fixed in r26761 for Windows, and
r26820 for all platforms.<br>
<br>
Do you have any modified files in your VXL source tree?<br>
<br>
Have you tried deleting your vxl_config.h from your build tree, and
re-running CMake?<br>
<br>
Also make sure you don't have a vxl_config.h in your *source* tree.
This can happen if the user accidently does an in-source
configuration. If this happens, it's very difficult to undo. :-/<span><font color="#888888"><br>
<br>
Amitha.</font></span><div><div><br>
<br>
<br>
On 11/10/2011 10:14 PM, Ho Cheung wrote:
</div></div><blockquote type="cite"><div><div>That is what we have been doing. However, this is not
a very good fix because we would like to have an automated way to
build everything. <br>
<br>
Does anyone understand what the issue causing VXL_USE_WIN_WCHAR_T
not to be defined to 0 or 1 is?<br>
<br clear="all">
Ho Cheung<br>
Research Assistant<br>
Bio-Image Analytics Lab - University of Houston<br>
<a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a><br>
Cell: <a href="tel:%28832%29%20215-6347" value="+18322156347" target="_blank">(832) 215-6347</a><br>
<br>
<br>
<div class="gmail_quote">On Thu, Nov 10, 2011 at 6:20 PM, Peter
Vanroose <span dir="ltr"><<a href="mailto:peter_vanroose@yahoo.co.uk" target="_blank">peter_vanroose@yahoo.co.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Ho Cheung <<a href="mailto:hocheung20@gmail.com" target="_blank">hocheung20@gmail.com</a>>
wrote:<br>
<br>
> This is at the bottom of vxl_config.h:231:<br>
><br>
> #define VXL_USE_WIN_WCHAR_T<br>
<br>
</div>
In that case, the easiest fix is to manually add "0" at the
end of this line.<br>
<span><font color="#888888"><br>
-- Peter.<br>
</font></span></blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
</div></div><div><pre>------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
<a href="http://p.sf.net/sfu/rsa-sfdev2dev1" target="_blank">http://p.sf.net/sfu/rsa-sfdev2dev1</a></pre>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Vxl-users mailing list
<a href="mailto:Vxl-users@lists.sourceforge.net" target="_blank">Vxl-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/vxl-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/vxl-users</a>
</pre>
</div></blockquote>
<br>
</div>
</blockquote></div><br>
</div></div><br>------------------------------------------------------------------------------<br>
RSA(R) Conference 2012<br>
Save $700 by Nov 18<br>
Register now<br>
<a href="http://p.sf.net/sfu/rsa-sfdev2dev1" target="_blank">http://p.sf.net/sfu/rsa-sfdev2dev1</a><br>_______________________________________________<br>
Vxl-users mailing list<br>
<a href="mailto:Vxl-users@lists.sourceforge.net" target="_blank">Vxl-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/vxl-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/vxl-users</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></div><br>