This is in the VXL build tree?  What version of VXL?

Amitha.


On 11/10/2011 5:09 PM, Ho Cheung wrote:
Hi Amitha,

This is at the bottom of vxl_config.h:231:

#define VXL_USE_WIN_WCHAR_T

As you can see, it has no value and thus an error happens. I've confirmed that this happens in Windows 7 with MSVC9 and MSVC10 as well as GCC 4.4.5 on RHEL6.1

Thus, I suspect we may not be adding VXL correctly to our project's CMakeLists file.

Here is the relevant lines of code:

FIND_PACKAGE(VXL)
SET(VXL_PROVIDE_STANDARD_OPTIONS 1)
INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake)

Please let me know if you see anything obviously out of place.

Ho Cheung
Research Assistant
Bio-Image Analytics Lab - University of Houston
hocheung20@gmail.com
Cell: (832) 215-6347

P.S. Actually, our project is open-source and you can build everything yourself if you want to see the error. We have a step-by-step guide of how to build it (however it is slightly out of date).

http://farsight-toolkit.org/wiki/FARSIGHT_HowToBuildLinux

The error happens when you turn on BUILD_REGISTRATION in the Build Farsight step.


On Thu, Nov 10, 2011 at 10:41 AM, Amitha Perera <amithaperera@users.sourceforge.net> wrote:
Ho Cheung,

That pre-processor definition is not directly passed from CMake. It should be defined in vxl_config.h.  Does your vul_file.h include vxl_config.h? (It should.)  If so, check the bottom of vxl_config.h.  So should see either
   #define VXL_USE_WIN_WCHAR_T 0
or
   #define VXL_USE_WIN_WCHAR_T 1

Amitha.



On 11/9/2011 12:56 PM, Ho Cheung wrote:
Hello vxl-users,

Our project includes vul_file.h.

However, there is a problem compiling because on line 120, it uses the VXL_USE_WIN_WCHAR_T CMake variable.

This variable isn't passed from VXL to our CMakeLists.txt, so when our project tries to compile, it complains with the error that:

In file included from /data/FTK/src/farsight/fregl/fregl_pairwise_register.cxx:36:
/data/FTK/src/VXL/core/vul/vul_file.h:120:46: error: operator '&&' has no right operand

Am I missing an obvious way to import CMake cache variables from VXL into my project?

Thanks in advance,

Ho Cheung
Research Assistant
Bio-Image Analytics Lab - University of Houston
hocheung20@gmail.com
Cell: (832) 215-6347


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1


_______________________________________________
Vxl-users mailing list
Vxl-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vxl-users


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Vxl-users mailing list
Vxl-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vxl-users