joe
02-04-2009 16:25:00
Hi! Thanks for the great work on Python-Ogre.
I have what's probably a pretty easy noob question. I'm on Fedora 10, and I've followed the instructions here: http://wiki.python-ogre.org/index.php/LinuxBuildV2. It's worked great, (of course I had to fuss around a little bit and find the equivalent libraries for fedora-based linux) and I can run the python samples. The problems came from trying to build the additional modules. Here's what I get, with the results from the log file:
---
Good up to here!
---
Am I missing something obvious? Thanks for any help!
I have what's probably a pretty easy noob question. I'm on Fedora 10, and I've followed the instructions here: http://wiki.python-ogre.org/index.php/LinuxBuildV2. It's worked great, (of course I had to fuss around a little bit and find the equivalent libraries for fedora-based linux) and I can run the python samples. The problems came from trying to build the additional modules. Here's what I get, with the results from the log file:
python python-ogre/BuildModule.py -r ode
PythonOgre.BuildModule: INFO Retrieving http://downloads.sourceforge.net/opende/ode-0.10.1.tar.gz
python python-ogre/BuildModule.py -b ode
04-02 08:26 PythonOgre.BuildModule INFO Build Command chmod +x autogen.sh
04-02 08:26 PythonOgre.BuildModule DEBUG Spawning 'chmod +x autogen.sh' in '/home/joe/build/ode-0.10.1'
04-02 08:26 PythonOgre.BuildModule INFO Build Command ./autogen.sh
04-02 08:26 PythonOgre.BuildModule DEBUG Spawning './autogen.sh' in '/home/joe/build/ode-0.10.1'
04-02 08:26 PythonOgre.BuildModule INFO Build Command ./configure --prefix=/home/joe/build/root/usr --includedir=/home/joe/build/root/usr/include
04-02 08:26 PythonOgre.BuildModule DEBUG Spawning './configure --prefix=/home/joe/build/root/usr --includedir=/home/joe/build/root/usr/include' in '/home/joe/build/ode-0.10.1'
04-02 08:26 PythonOgre.BuildModule INFO Build Command make
04-02 08:26 PythonOgre.BuildModule DEBUG Spawning 'make' in '/home/joe/build/ode-0.10.1'
04-02 08:26 PythonOgre.BuildModule INFO Build Command make install
04-02 08:26 PythonOgre.BuildModule DEBUG Spawning 'make install' in '/home/joe/build/ode-0.10.1'
python python-ogre/BuildModule.py -g ode
PythonOgre.BuildModule: INFO Building Source code for ode
---
Good up to here!
---
python python-ogre/BuildModule.py -c ode
PythonOgre.BuildModule: INFO Compiling Source code for ode
PythonOgre.BuildModule: WARNING Task Failed
From the log:
04-02 08:28 PythonOgre.BuildModule WARNING Task Failed
04-02 08:28 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ode
/home/joe/build/root/usr/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/joe/bin
{'SSH_ASKPASS': '/usr/libexec/openssh/gnome-ssh-askpass', 'ZZIPLIB_LIBS': '-lzzip', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'LESSOPEN': '|/usr/bin/lesspipe.sh %s', 'CXXFLAGS': ' -I/home/joe/build/root/usr/include -L/home/joe/build/root/usr/lib', 'COLORTERM': 'gnome-terminal', 'LOGNAME': 'joe', 'USER': 'joe', 'PATH': '/home/joe/build/root/usr/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/joe/bin', 'QTDIR': '/usr/lib/qt-3.3', 'LD_LIBRARY_PATH': '/home/joe/build/root/usr/lib', 'LANG': 'en_US.UTF-8', 'QTLIB': '/usr/lib/qt-3.3/lib', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XDG_SESSION_COOKIE': 'b3fbc2cc6c6d5160f0abb4914980bac5-1238432502.748233-46441708', 'SESSION_MANAGER': 'local/unix:@/tmp/.ICE-unix/3412,unix/unix:/tmp/.ICE-unix/3412', 'QTINC': '/usr/lib/qt-3.3/include', 'G_BROKEN_FILENAMES': '1', 'HISTSIZE': '1000', 'REMOTECONSOLE': '1.2.0.0', 'WINDOWID': '100663347', '_': '/home/joe/build/root/usr/bin/scons', 'LDFLAGS': "-Wl,-rpath='$$ORIGIN/../../lib' -Wl,-rpath='$$ORIGIN' -Wl,-z,origin", 'HOME': '/home/joe', 'REMOTECONSOLE_PATH': '/usr/lib/Dell_Remote_Console_Switch_Software', 'USERNAME': 'joe', 'GTK_RC_FILES': '/etc/gtk/gtkrc:/home/joe/.gtkrc-1.2-gnome2', 'USESYSTEM': 'False', 'PYTHONPATH': '/home/joe/build/root/usr/lib/python2.5/site-packages', 'SSH_AUTH_SOCK': '/tmp/keyring-N4P54Z/ssh', 'DESKTOP_SESSION': 'gnome', 'GDMSESSION': 'gnome', 'PKG_CONFIG_PATH': '/home/joe/build/root/usr/lib/pkgconfig', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-rGGqRke72N,guid=063607b1629c1bf78cfc2cf649d0faf6', 'ORBIT_SOCKETDIR': '/tmp/orbit-joe', 'XAUTHORITY': '/var/run/gdm/auth-for-joe-DTEUuJ/database', 'GNOME_KEYRING_SOCKET': '/tmp/keyring-N4P54Z/socket', 'DISPLAY': ':0.0', 'GNOME_KEYRING_PID': '3410', 'HOSTNAME': 'hq-ck-wrk-joe.ckmarket.com', 'GDM_LANG': 'en_US.UTF-8', 'SHLVL': '3', 'PWD': '/home/joe/build/python-ogre', 'CCFLAGS': ' -I/home/joe/build/root/usr/include -L/home/joe/build/root/usr/lib', 'CFLAGS': ' -I/home/joe/build/root/usr/include -L/home/joe/build/root/usr/lib', 'MAIL': '/var/spool/mail/joe', 'LS_COLORS': 'no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:do=00;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=00;32:*.tar=00;31:*.tgz=00;31:*.svgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.dz=00;31:*.gz=00;31:*.bz2=00;31:*.tbz2=00;31:*.bz=00;31:*.tz=00;31:*.deb=00;31:*.rpm=00;31:*.jar=00;31:*.rar=00;31:*.ace=00;31:*.zoo=00;31:*.cpio=00;31:*.7z=00;31:*.rz=00;31:*.jpg=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.mng=00;35:*.pcx=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:*.m2v=00;35:*.mkv=00;35:*.ogm=00;35:*.mp4=00;35:*.m4v=00;35:*.mp4v=00;35:*.vob=00;35:*.qt=00;35:*.nuv=00;35:*.wmv=00;35:*.asf=00;35:*.rm=00;35:*.rmvb=00;35:*.flc=00;35:*.avi=00;35:*.fli=00;35:*.gl=00;35:*.dl=00;35:*.xcf=00;35:*.xwd=00;35:*.yuv=00;35:*.svg=00;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:'}
WARNING: Over-Writing /home/joe/build/python-ogre/generated/ode_0.10.1/SConscript as it already exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build_dir_2.5/ode_0.10.1/dFixedJoint.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -DBOOST_PYTHON_NO_PY_SIGNATURES -I/home/joe/build/python-ogre/generated/ode_0.10.1 -I/home/joe/build/root/usr/include -L/home/joe/build/root/usr/lib -fPIC -I/home/joe/build/root/usr/include/boost-1_38 -I/home/joe/build/root/usr/include/ode -I/home/joe/build/ode-0.10.1/OPCODE -I/usr/include/python2.5 -I/home/joe/build/root/usr/include/boost-1_38 generated/ode_0.10.1/dFixedJoint.pypp.cpp
scons: building terminated because of errors.
04-02 08:28 PythonOgre.BuildModule DEBUG /home/joe/build/root/usr/include/boost-1_38/boost/python/type_id.hpp: In function ‘boost::python::type_info boost::python::type_id() [with T = const volatile dxWorld&]’:
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/registered.hpp:87: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registry_lookup2(T& (*)()) [with T = const volatile dxWorld]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/registered.hpp:94: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registry_lookup1(boost::type<Target>) [with T = const volatile dxWorld&]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/registered.hpp:105: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registered_base<const volatile dxWorld&>::converters’
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/arg_from_python.hpp:269: instantiated from ‘boost::python::converter::pointer_arg_from_python<T>::pointer_arg_from_python(PyObject*) [with T = dxWorld*]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/arg_from_python.hpp:70: instantiated from ‘boost::python::arg_from_python<T>::arg_from_python(PyObject*) [with T = dxWorld*]’
/home/joe/build/root/usr/include/boost-1_38/boost/preprocessor/iteration/detail/local.hpp:37: instantiated from ‘PyObject* boost::python::detail::caller_arity<2u>::impl<F, Policies, Sig>::operator()(PyObject*, PyObject*) [with F = void (*)(PyObject*, dxWorld*), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector3<void, PyObject*, dxWorld*>]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/object/py_function.hpp:38: instantiated from ‘PyObject* boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller<void (*)(PyObject*, dxWorld*), boost::python::default_call_policies, boost::mpl::vector3<void, PyObject*, dxWorld*> >]’
generated/ode_0.10.1/dFixedJoint.pypp.cpp:105: instantiated from here
/home/joe/build/root/usr/include/boost-1_38/boost/python/type_id.hpp:89: error: invalid use of incomplete type ‘struct dxWorld’
/home/joe/build/root/usr/include/ode/common.h:199: error: forward declaration of ‘struct dxWorld’
/home/joe/build/root/usr/include/boost-1_38/boost/python/type_id.hpp: In function ‘boost::python::type_info boost::python::type_id() [with T = const volatile dxJointGroup&]’:
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/registered.hpp:87: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registry_lookup2(T& (*)()) [with T = const volatile dxJointGroup]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/registered.hpp:94: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registry_lookup1(boost::type<Target>) [with T = const volatile dxJointGroup&]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/registered.hpp:105: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registered_base<const volatile dxJointGroup&>::converters’
/home/joe/build/root/usr/include/boost-1_38/boost/python/converter/arg_from_python.hpp:269: instantiated from ‘boost::python::converter::pointer_arg_from_python<T>::pointer_arg_from_python(PyObject*) [with T = dxJointGroup*]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/arg_from_python.hpp:70: instantiated from ‘boost::python::arg_from_python<T>::arg_from_python(PyObject*) [with T = dxJointGroup*]’
/home/joe/build/root/usr/include/boost-1_38/boost/preprocessor/iteration/detail/local.hpp:40: instantiated from ‘PyObject* boost::python::detail::caller_arity<3u>::impl<F, Policies, Sig>::operator()(PyObject*, PyObject*) [with F = void (*)(PyObject*, dWorld&, dxJointGroup*), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector4<void, PyObject*, dWorld&, dxJointGroup*>]’
/home/joe/build/root/usr/include/boost-1_38/boost/python/object/py_function.hpp:38: instantiated from ‘PyObject* boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller<void (*)(PyObject*, dWorld&, dxJointGroup*), boost::python::default_call_policies, boost::mpl::vector4<void, PyObject*, dWorld&, dxJointGroup*> >]’
generated/ode_0.10.1/dFixedJoint.pypp.cpp:105: instantiated from here
/home/joe/build/root/usr/include/boost-1_38/boost/python/type_id.hpp:89: error: invalid use of incomplete type ‘struct dxJointGroup’
/home/joe/build/root/usr/include/ode/common.h:205: error: forward declaration of ‘struct dxJointGroup’
scons: *** [build_dir_2.5/ode_0.10.1/dFixedJoint.pypp.os] Error 1
Am I missing something obvious? Thanks for any help!