From: <gar...@gm...> - 2006-10-24 18:32:12
|
> which is a problem. When you run one of the vgui/examples, what do you > see for the corresponding line? (On your machine, you should see gtk2 > and wx, I think.) /us/local/vxl-1.6.0/core/vgui/examples$ ./basic01_display_image alon.jpeg vgui : registered 'gtk' 'qt' 'glut' vgui : initialize 'gtk' ~vgui_adaptor_tableau(this =3D 0x837cea8) All adaptors have been deleted -- calling vgui::quit() > > You do include vgui.h in your program, right? Yes, i'm tring to build the same basic01_display_image.cxx code, but out of the vxl tree and with my own CMakeList.txt > > Can you run your code through the debugger and make sure that > vgui_register_all_implementations() is called? It is implemented in > vgui_register_all.cxx. No, vgui_register_all_implementations() is not called. Perhaps i'm missing something in the CMakeList.txt? Here is it again: PROJECT (mostrar) FIND_PACKAGE(VXL) IF(VXL_FOUND) =09INCLUDE(${VXL_CMAKE_DIR}/UseVXL.cmake) ENDIF(VXL_FOUND) SET( VXL_BINARY_PATH "" CACHE PATH "VXL BUILD DIRECTORY" ) IF( VXL_BINARY_PATH ) =09INCLUDE( ${VXL_BINARY_PATH}/UseVXL.cmake ) ENDIF( VXL_BINARY_PATH ) ADD_EXECUTABLE( mostrar =09basic01_display_image.cxx =09) INCLUDE_DIRECTORIES( =09${VXLCORE_INCLUDE_DIR} =09${GEL_INCLUDE_DIR} =09${mostrar_source_dir} =09) IF( VXL_VGUI_FOUND ) =09INCLUDE_DIRECTORIES(${GTK_INCLUDE_DIR}) =09INCLUDE_DIRECTORIES( ${VXL_VGUI_INCLUDE_DIR} ) =09TARGET_LINK_LIBRARIES(mostrar ${VXL_VGUI_LIBRARIES} ) ENDIF( VXL_VGUI_FOUND ) TARGET_LINK_LIBRARIES(mostrar vnl_algo vul vil vcl) thank you Gast=F3n > > Amitha. > --=20 ------------------------------------------------- Gast=F3n Aragu=E1s Centro de Investigaci=F3n en Inform=E1tica para la Ingenier=EDa (CIII) Univ. Tecnol=F3gica Nacional Facultad Regional C=F3rdoba. Argentina |