More details, here are some compiling errors
1. the size_t conversion problem

6>C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_set_io.txx(19) : error C2668: 'vsl_b_write' : ambiguous call to overloaded function
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(405): could be 'void vsl_b_write(vsl_b_ostream &,double)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(396): or       'void vsl_b_write(vsl_b_ostream &,float)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(355): or       'void vsl_b_write(vsl_b_ostream &,unsigned long)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(347): or       'void vsl_b_write(vsl_b_ostream &,long)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(339): or       'void vsl_b_write(vsl_b_ostream &,unsigned short)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(331): or       'void vsl_b_write(vsl_b_ostream &,short)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(323): or       'void vsl_b_write(vsl_b_ostream &,unsigned int)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(313): or       'void vsl_b_write(vsl_b_ostream &,int)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(271): or       'void vsl_b_write(vsl_b_ostream &,unsigned char)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(263): or       'void vsl_b_write(vsl_b_ostream &,signed char)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(255): or       'void vsl_b_write(vsl_b_ostream &,char)'
6>        C:\temp\vxl\vxl-1.14.0\core\vsl/vsl_binary_io.h(247): or       'void vsl_b_write(vsl_b_ostream &,bool)'
6>        while trying to match the argument list '(vsl_b_ostream, unsigned __int64)'
6>        ..\..\..\..\..\vxl\vxl-1.14.0\contrib\brl\bbas\bgrl\Templates\vsl_set_io+bgrl_vertex_sptr-.cxx(5) : see reference to function template instantiation 'void vsl_b_write<bgrl_vertex_sptr>(vsl_b_ostream &,const std::set<_Kty> &)' being compiled

2. void type error because of vxl_xxx was defined as void
vil_pixel_format_macro(vil_rgb<vxl_uint_32>, vxl_uint_32, VIL_PIXEL_FORMAT_RGB_UINT_32);
vil_pixel_format_macro(vil_rgb<vxl_int_32>,  vxl_int_32,  VIL_PIXEL_FORMAT_RGB_INT_32);
vil_pixel_format_macro(vil_rgb<vxl_uint_16>, vxl_uint_16, VIL_PIXEL_FORMAT_RGB_UINT_16);
vil_pixel_format_macro(vil_rgb<vxl_int_16>,  vxl_int_16,  VIL_PIXEL_FORMAT_RGB_INT_16);

7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(33) : error C2182: 'g' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(33) : error C2182: 'b' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(33) : error C2182: 'a' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(43) : error C2182: 'v' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(47) : error C2182: 'red' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(47) : error C2182: 'green' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(47) : error C2182: 'blue' : illegal use of type 'void'
7>C:\temp\vxl\vxl-1.14.0\core\vil/vil_rgba.h(47) : error C2182: 'alpha' : illegal use of type 'void'

Thanks

On Tue, Mar 1, 2011 at 10:53 AM, simon L <smnluo@gmail.com> wrote:
Hi, Lan

Thanks for your reply, sorry I did not include the compiling error, I believe due to the cmake error I post, it causes the following problem

#define VXL_HAS_INT_8 0
#define VXL_INT_8_STRING "void"
#if 0
  typedef          void  vxl_int_8;
  typedef   signed void  vxl_sint_8;
  typedef unsigned void  vxl_uint_8;
#else
# define vxl_int_8   void
# define vxl_sint_8  void
# define vxl_uint_8  void
#endif

You can see that vxl_int_8 are all defined to void, which causes compiling error almost everywhere whenever vxl_int_8 and other similar types are used. I have visual studio 2008 sp1 installed.

Simon




On Tue, Mar 1, 2011 at 12:43 AM, Ian Scott <scottim@imorphics.com> wrote:
Why do you think there is a problem? This looks like reports of compiler characteristics. You only need to worry about CMake problem if it explicitly tells you there is a problem.

On the other hand, I'm running CMake 1.6.4, and "Visual Studio 9 2008 Win64", and I get:

-- Performing Test VCL_CHAR_IS_SIGNED
-- Performing Test VCL_CHAR_IS_SIGNED - Success
-- Looking for 8-bit int. [Checking char...]
-- Looking for 8-bit int. Found char.
-- Looking for 8-bit int. [Checking short...]

-- Looking for 8-bit int. [Checking char...]
-- Looking for 8-bit int. Found char.

So your values may not be right, but you haven't reported any actual error yet.

Ian.



On 28/02/2011 23:35, simon L wrote:
Hi, Sorry if this question has been asked, I did not find the answer
after doing search on the archive

Here is my problem, I have cmake 2.8.1 windows, visual studio 2008 sp1
I downloaded vxl 1.14.0 downloaded

I chose "visual studion 9 2008 win64" generator
I saw the following message

...Performing Test VCL_CHAR_IS_SIGNED

Performing Test VCL_CHAR_IS_SIGNED - Failed

Looking for 8-bit int. [Checking char...]

Looking for 8-bit int. *Not found*.

Looking for 8-bit int. [Checking short...]

Looking for 8-bit int. [Checking char...]

Looking for 8-bit int. *Not found*.




If I choose win32, it is fine, can anyone tell me what might be wrong here?
I tried this on both xp 32 system and win7 x64 system, got exactly same
error, the win6

Thanks a lot in advance, I have been struggling with this problem for
two days.

Simon



------------------------------------------------------------------------------
Free Software Download: Index, Search&  Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev



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