From: Bruce S. <Bru...@nc...> - 2007-12-25 06:19:38
|
Thanks for the detailed report. I don't expect to be able very soon to address the issue of better reporting of precisely which libraries are missing, but some day.... I'm puzzled about the boost libraries, as I thought those were checked. The problem with numpy sounds like an error in issuing the configure command: you need configure --prefix=/usr if Python and its site-packages are in /usr. As is documented in the install instructions, by default configure assumes the target Python is in /usr/local. Bruce Sherwood Frédéric Mantegazza wrote: > On dimanche 23 décembre 2007, Bruce Sherwood wrote: > > >> I think some of your missing libraries are included in some of those >> listed in the INSTALL file, but if you find that not to be the case I'd >> appreciate knowing so that the file can be improved. >> > > In fact, the only package missing was gtkglextmm; all others where > correctly installed. The problem comes from the configure script. When it > call pkg-config, to check mising packages, it gets: > > configure:19706: checking for pkg-config > configure:19724: found /usr/bin/pkg-config > configure:19736: result: /usr/bin/pkg-config > configure:19765: checking pkg-config is at least version 0.9.0 > configure:19768: result: yes > configure:19792: checking for GTK > configure:19800: $PKG_CONFIG --exists --print-errors "gtkglextmm-1.2 >= 1.2 > pangoft2 glibmm-2.4 pangomm-1.4 libglademm-2.4 freetype2" > Package gtkglextmm-1.2 was not found in the pkg-config search path. > Perhaps you should add the directory containing `gtkglextmm-1.2.pc' > to the PKG_CONFIG_PATH environment variable > No package 'gtkglextmm-1.2' found > configure:19803: $? = 1 > configure:19818: $PKG_CONFIG --exists --print-errors "gtkglextmm-1.2 >= 1.2 > pangoft2 glibmm-2.4 pangomm-1.4 libglademm-2.4 freetype2" > Package gtkglextmm-1.2 was not found in the pkg-config search path. > Perhaps you should add the directory containing `gtkglextmm-1.2.pc' > to the PKG_CONFIG_PATH environment variable > No package 'gtkglextmm-1.2' found > configure:19821: $? = 1 > No package 'gtkglextmm-1.2' found > configure:19849: result: no > configure:19851: error: gtkglextmm 1.2, pangoft2, glibmm-2.4, and > pangomm-1.4 libglademm-2.4 are required on Unix-like systems > > As you can see, it outputs all libs, even if the only missing is > gtkglextmm. I compiled and installed it, and it now works fine :o) > > But during the compilation phase, I still had problems of missing libs: > libboost-python (and -thread) is not checked in the configure. Once > installed, it works (it was the same in previous vpython versions). > > And I have a another problem: vpython can't find the numpy/arrayobject.h > (imported from include/python/num_util.hpp). This file is in: > > python-numpy: > usr/lib/python2.4/site-packages/numpy/core/include/numpy/arrayobject.h > > But the configure script found an incorrect path: > > g++ -I/usr/include/python2.4 -I/usr/local/lib/python2.4/site-packages/numpy/core/include -DHAVE_CONFIG_H -I../include -I../include -I/usr/local/includ > e/gtkglextmm-1.2 -I/usr/local/lib/gtkglextmm-1.2/include -I/usr/include/gtkglext-1.0 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/lib/g > tkglext-1.0/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include > -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/u > sr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/cairomm-1.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/a > tk-1.0 -I/usr/include/atkmm-1.6 -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I.. > /include/gtk2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.4 -I/usr/local/lib/python2.4/site-packages/numpy/core > /include -fpic -DPIC -g -O2 -ftemplate-depth-120 -MMD -MF > convex.d -MT "convex.d > convex.lo" -c ./python/convex.cpp -fPIC -DPIC -o .libs/convex.o > In file included from ../include/python/convex.hpp:12, > from ./python/convex.cpp:6: > ../include/python/num_util.hpp:68:31: warning: numpy/arrayobject.h: No such > file or directory > > It gave /usr/local/lib/..., instead of /usr/lib/... I don't have any numpy > package in /usr/local/lib... I made a symbolic link, and it compiled, but > it is not very clean. > > |