Thanks Ian and Peter' s replies.
Following your advises,
1)I set  BUILD_VGUI:BOOL=ON, configured it again, and bulided project "vgui" in vxl.sln ,got the file "vgui.lib" in bin/release.
2)As for the second problem, I know the reason now and will use "vgui_viewer2D_tableau.h" instead of "vgui_viewer2D.h" in the future.
 
Regards.
Yanli Li

Li,
 
It seems you have two problems.
 
1. vgui.lib is probably not being built because your CMake Settings
default to BUILD_VGUI:BOOL=OFF . You will need to set that to ON.
 
2. That demo snippet of code is out of date. vgui_viewer2D.h was moved
to vgui_viewer2D_tableau.h 5 years ago. I don't know if a simple search
and replace will work. Perhaps someone with more vgui knowledge could
respond.
 
Ian.
 
 
girlliyanli wrote:
> Hello,I downloaded vxl(vxl-1.10.0) and built it successfully through 
> CMake(CMake2.4), the compiler I used is MSVC2005.
> Later, I copyed the code from 
> "...../vxl-1.10.0-doc/core/vgui/html/index.html",as follows, and began 
> to compile it. But I couldn't find the file"vgui/vgui_viewer2D.h" from 
> "$VXLSRC\vxl-1.10.0\core\vgui" and the library "vgui.lib" from  
> "$VXLBin\lib\release".
>  
> Thank you,Regards!
> Yanli Li
> Buaa Unversity, Beijing,China
> * #include  <vgui/vgui.h >
> * #include  <vgui/vgui_image_tableau.h >
> * #include  <vgui/vgui_viewer2D.h >
> * int main(int argc, char **argv)
> * {
> *   vgui::init(argc, argv);
> *   vgui_image_tableau_new image("my-image.jpg");
> *   vgui_viewer2D_new viewer(image);
> *   return vgui::run(viewer, image- >width(), image- >height());
> * }
> *