From: <gar...@gm...> - 2006-10-18 23:13:06
|
Hello, sorry for this not vxl specific question, but i don't know where to find more information about compiling vgui. i could compile the vgui and the vgui examples into the VXL tree, but i'm not being able to compile it out of the tree. I follow the B.1.3 Example 3: Building outside of the VXL tree but i become always the same message: vgui : registered /usr/local/vxl-1.6.0/core/vgui/vgui.cxx, line 153: failed to find a toolkit implementation - vcl_abort()ing. If i build it in the vxl tree all goes well. I know it is vgui toolkit problem but i can't find where i'm making the mistake. I'm using debian and GTK. Here is my CMakeList: project (mostrar) find_package(VXL) if(VXL_FOUND) include(${VXL_CMAKE_DIR}/UseVXL.cmake) endif(VXL_FOUND) INCLUDE_DIRECTORIES( ${VXLCORE_INCLUDE_DIR} ) IF( VXL_VGUI_FOUND ) INCLUDE_DIRECTORIES( ${VXL_VGUI_INCLUDE_DIR} ) TARGET_LINK_LIBRARIES(mostrar ${VXL_VGUI_LIBRARIES} ) ENDIF( VXL_VGUI_FOUND ) target_link_libraries(mostrar vnl_algo vul vil vcl) -- |
From: Amitha P. <pe...@cs...> - 2006-10-22 04:59:05
|
On Wed 18 Oct 2006, Gast?n Aragu?s wrote: > i could compile the vgui and the vgui examples into the VXL tree, but > i'm not being able to compile it out of the tree. I follow the B.1.3 > Example 3: Building outside of the VXL tree but i become always the > same message: > vgui : registered > /usr/local/vxl-1.6.0/core/vgui/vgui.cxx, line 153: failed to find a > toolkit implementation - vcl_abort()ing. > If i build it in the vxl tree all goes well. You mean if you build your project within the vxl tree? When you build your project outside the vxl tree, can you run the examples in vgui/examples? What does "ldd mostrar" output? Amitha. |
From: <gar...@gm...> - 2006-10-23 14:37:08
|
On 10/22/06, Amitha Perera <pe...@cs...> wrote: > On Wed 18 Oct 2006, Gast?n Aragu?s wrote: > You mean if you build your project within the vxl tree? When you build > your project outside the vxl tree, can you run the examples in > vgui/examples? What does "ldd mostrar" output? I do install vxl without error, and them i can do: /usr/local/vxl-1.6.0/core/vgui/examples# make without problems too and the examples run well. But if i try to build a new project in my home directory, i get no errors with ccmake and then make, but it doesn't work. ldd mostrar output is: ~/vision/vxl/projects/display_image$ ldd mostrar linux-gate.so.1 =3D> (0xffffe000) libwx_baseud-2.6.so.0 =3D> /usr/lib/libwx_baseud-2.6.so.0 (0xa7e200= 00) libwx_gtk2ud_core-2.6.so.0 =3D> /usr/lib/libwx_gtk2ud_core-2.6.so.0 (0xa7abf000) libwx_gtk2ud_gl-2.6.so.0 =3D> /usr/lib/libwx_gtk2ud_gl-2.6.so.0 (0xa7ab1000) libGLU.so.1 =3D> /usr/lib/libGLU.so.1 (0xa7a36000) libGL.so.1 =3D> /usr/lib/libGL.so.1 (0xa79b1000) libSM.so.6 =3D> /usr/lib/libSM.so.6 (0xa79a8000) libICE.so.6 =3D> /usr/lib/libICE.so.6 (0xa7990000) libX11.so.6 =3D> /usr/lib/libX11.so.6 (0xa78c8000) libXext.so.6 =3D> /usr/lib/libXext.so.6 (0xa78ba000) libjpeg.so.62 =3D> /usr/lib/libjpeg.so.62 (0xa789a000) libpng12.so.0 =3D> /usr/lib/libpng12.so.0 (0xa7876000) libz.so.1 =3D> /usr/lib/libz.so.1 (0xa7862000) libstdc++.so.6 =3D> /usr/lib/libstdc++.so.6 (0xa7783000) libm.so.6 =3D> /lib/tls/i686/cmov/libm.so.6 (0xa775d000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0xa7752000) libpthread.so.0 =3D> /lib/tls/i686/cmov/libpthread.so.0 (0xa7740000= ) libc.so.6 =3D> /lib/tls/i686/cmov/libc.so.6 (0xa760f000) libdl.so.2 =3D> /lib/tls/i686/cmov/libdl.so.2 (0xa760b000) libgtk-x11-2.0.so.0 =3D> /usr/lib/libgtk-x11-2.0.so.0 (0xa7321000) libgdk-x11-2.0.so.0 =3D> /usr/lib/libgdk-x11-2.0.so.0 (0xa729f000) libatk-1.0.so.0 =3D> /usr/lib/libatk-1.0.so.0 (0xa7285000) libgdk_pixbuf-2.0.so.0 =3D> /usr/lib/libgdk_pixbuf-2.0.so.0 (0xa726= f000) libfontconfig.so.1 =3D> /usr/lib/libfontconfig.so.1 (0xa7245000) libXrender.so.1 =3D> /usr/lib/libXrender.so.1 (0xa723d000) libXinerama.so.1 =3D> /usr/lib/libXinerama.so.1 (0xa723a000) libXi.so.6 =3D> /usr/lib/libXi.so.6 (0xa7231000) libXrandr.so.2 =3D> /usr/lib/libXrandr.so.2 (0xa722d000) libXcursor.so.1 =3D> /usr/lib/libXcursor.so.1 (0xa7224000) libXfixes.so.3 =3D> /usr/lib/libXfixes.so.3 (0xa721f000) libpango-1.0.so.0 =3D> /usr/lib/libpango-1.0.so.0 (0xa71e5000) libgobject-2.0.so.0 =3D> /usr/lib/libgobject-2.0.so.0 (0xa71ab000) libgmodule-2.0.so.0 =3D> /usr/lib/libgmodule-2.0.so.0 (0xa71a7000) libgthread-2.0.so.0 =3D> /usr/lib/libgthread-2.0.so.0 (0xa71a3000) libglib-2.0.so.0 =3D> /usr/lib/libglib-2.0.so.0 (0xa7111000) libtiff.so.4 =3D> /usr/lib/libtiff.so.4 (0xa70bd000) libGLcore.so.1 =3D> /usr/lib/libGLcore.so.1 (0xa68fa000) libnvidia-tls.so.1 =3D> /usr/lib/tls/libnvidia-tls.so.1 (0xa68f7000= ) libXau.so.6 =3D> /usr/lib/libXau.so.6 (0xa68f4000) libXdmcp.so.6 =3D> /usr/lib/libXdmcp.so.6 (0xa68ef000) /lib/ld-linux.so.2 (0xa7fc3000) libpangocairo-1.0.so.0 =3D> /usr/lib/libpangocairo-1.0.so.0 (0xa68e= 7000) libcairo.so.2 =3D> /usr/lib/libcairo.so.2 (0xa6885000) libfreetype.so.6 =3D> /usr/lib/libfreetype.so.6 (0xa681a000) libexpat.so.1 =3D> /usr/lib/libexpat.so.1 (0xa67fb000) librt.so.1 =3D> /lib/tls/i686/cmov/librt.so.1 (0xa67f2000) libpangoft2-1.0.so.0 =3D> /usr/lib/libpangoft2-1.0.so.0 (0xa67c7000= ) ~/vision/vxl/projects/display_image$ ./mostrar alon.jpeg vgui : registered /usr/local/vxl-1.6.0/core/vgui/vgui.cxx, line 153: failed to find a toolkit implementation - vcl_abort()ing. 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 |
From: Amitha P. <pe...@cs...> - 2006-10-24 15:10:58
|
When you run your program, you get > ~/vision/vxl/projects/display_image$ ./mostrar alon.jpeg > vgui : registered 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.) You do include vgui.h in your program, right? 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. Amitha. |
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 |