Hi,
I still haven't been able to create a MS visual project from the example C++ source file "create_image.cxx"
(from the VXL web page) that would compile correctly with Visual Studio 6.0.
I have tried with both the beta2 and the latest CVS snapshot of VXL.
Could you please tell me what is wrong in the following?

I have put the the "create_image.cxx" file in the directory :
d:/[...]MyExamples/create_image/
(where [...] denotes the complete path).
The VXL libraries (which I eventually managed to compile) are in the directory :
d:/[...]bin/
The VXL source and header files are in the directory :
d:/[...]vxl/
 
Here's the C++ code in "create_image.cxx" :

///////////////////////////////////////////////////////////////////////////
#include <vcl/vcl_string.h>
#include <vbl/vbl_arg.h>
#include <vil/vil_load.h>
#include <vil/vil_save.h>
#include <vil/vil_memory_image_of.h>
#include <vil/vil_buffer.h>

vil_image make_image(int wd, int ht)
{
  vil_memory_image_of<unsigned char> image(wd, ht);
  for(int x = 0; x < wd; x++)
    for(int y = 0; y < ht; y++)
      image(x,y) = ((x-wd/2)*(y-ht/2)/16) % 256;
  return image;
}

int main(int argc, char** argv)
{
  vbl_arg<vcl_string> output_filename(0, "output");
  vbl_arg_parse(argc, argv);
  int sizex = 253;
  int sizey = 155;
  vil_image image = make_image(sizex, sizey);
  vil_save(image, output_filename().c_str());
}

///////////////////////////////////////////////////////////////////////////


Here's what the CMakeLists.txt contains
(where there's probably sthg wrong ??) :
SET(MAIN_PATH d:/[...])
SET( VXL_BINARY_PATH ${MAIN_PATH}/bin )
SET( VXL_INCLUDE_DIR ${MAIN_PATH}/vxl )
#SET( VCL_INCLUDE_DIR  ${MAIN_PATH}/vxl/vcl )
#SET( VBL_INCLUDE_DIR ${MAIN_PATH}/core/vbl )
#SET( VIL_INCLUDE_DIR  ${MAIN_PATH}/core/vil )

PROJECT( myproject )

INCLUDE( ${VXL_BINARY_PATH}/UseVXL.cmake )

ADD_EXECUTABLE( myex        create_image.cpp )

INCLUDE_DIRECTORIES(  ${VXL_INCLUDE_DIR} )

TARGET_LINK_LIBRARIES( myex vil vbl_arg vcl)



Now, this is what I get when I trying to compile the myex.dsp project in the "myproject.dsw" workspace:
compiling...
create_image.cpp

fatal error C1083: Cannot open include file: 'vcl/vcl_string.h': No such file or directory
Error executing cl.exe.


What should be changed in CMakeLists.txt file for this example to compile??
Any help will be appreciated...

Thomas.