From: Syed H. A. <has...@ya...> - 2005-01-07 15:17:12
|
Dear friends, I am trying to compile the following vgui example program on VC++ :- #include <vcl_iostream.h> #include <vgui/vgui.h> #include <vgui/vgui_image_tableau.h> #include <vgui/vgui_viewer2D_tableau.h> #include <vgui/vgui_shell_tableau.h> int main(int argc, char **argv) { vgui::init(argc, argv); if (argc <= 1) { vcl_cerr << "Please give an image filename on the command line\n"; return 0; } // Load image (given in the first command line param) // into an image tableau. vgui_image_tableau_new image(argv[1]); // Put the image tableau inside a 2D viewer tableau (for zoom, etc). vgui_viewer2D_tableau_new viewer(image); // Put a shell tableau at the top of our tableau tree. vgui_shell_tableau_new shell(viewer); // Create a window, add the tableau and show it on screen. return vgui::run(shell, image->width(), image->height()); } I am using the following cmakelists.txt file :- INCLUDE_DIRECTORIES( ${VXLCORE_INCLUDE_DIR} ${VXLSRC} ) FIND_PACKAGE(VXL) IF(VXL_FOUND) INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ELSE(VXL_FOUND) MESSAGE("VXL_DIR should be set to the VXL build directory.") ENDIF(VXL_FOUND) ADD_EXECUTABLE(MyVgui VguiTest.cpp) IF( VXL_VGUI_FOUND ) INCLUDE_DIRECTORIES( ${VXL_VGUI_INCLUDE_DIR} ) TARGET_LINK_LIBRARIES( VXL_VGUI_FOUND ${VXL_VGUI_LIBRARIES} ) ENDIF( VXL_VGUI_FOUND ) TARGET_LINK_LIBRARIES(MyVgui vcl vgui vil ) I get the following error on my system :- vgui.lib not found. After searching on my system , vgui.lib is indeed not on my system. During build process of vxl, the option for vgui was off. When , I tried to turn it on , I got error messages. So , how to deal with this issue. Thanks, Yours, S. Hassan Amin __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 |