mrkissinger
02-12-2006 18:26:14
I tried to compile pyogre.cegui on Debian in this way:
swig -c++ -python -modern \
$(pkg-config --cflags-only-I CEGUI OGRE) \
-Ipyogre/ogre \
pyogre/cegui/cegui.i
gcc -shared -fpic -DPIC \
$(pkg-config --cflags --libs CEGUI OGRE CEGUI-OGRE CEGUI-OPENGL) \
-I/usr/include/python2.4 -o pyogre/cegui/_cegui.so \
pyogre/cegui/cegui_wrap.cxx
cp pyogre/cegui/_cegui.so /usr/lib/python2.4/site-packages/pyogre/
Compiling gave some warning:
pyogre/cegui/cegui_wrap.cxx: In function 'const CEGUI::String& CEGUI_Window_tooltipType_get(CEGUI::Window*)':
pyogre/cegui/cegui_wrap.cxx:4089: warning: returning reference to temporary
pyogre/cegui/cegui_wrap.cxx: In function 'const CEGUI::UVector2& CEGUI_Window_windowSize_get(CEGUI::Window*)':
pyogre/cegui/cegui_wrap.cxx:4099: warning: returning reference to temporary
When I tried to run some demo, I always got "Segmentation fault".
Can anyone help?
swig -c++ -python -modern \
$(pkg-config --cflags-only-I CEGUI OGRE) \
-Ipyogre/ogre \
pyogre/cegui/cegui.i
gcc -shared -fpic -DPIC \
$(pkg-config --cflags --libs CEGUI OGRE CEGUI-OGRE CEGUI-OPENGL) \
-I/usr/include/python2.4 -o pyogre/cegui/_cegui.so \
pyogre/cegui/cegui_wrap.cxx
cp pyogre/cegui/_cegui.so /usr/lib/python2.4/site-packages/pyogre/
Compiling gave some warning:
pyogre/cegui/cegui_wrap.cxx: In function 'const CEGUI::String& CEGUI_Window_tooltipType_get(CEGUI::Window*)':
pyogre/cegui/cegui_wrap.cxx:4089: warning: returning reference to temporary
pyogre/cegui/cegui_wrap.cxx: In function 'const CEGUI::UVector2& CEGUI_Window_windowSize_get(CEGUI::Window*)':
pyogre/cegui/cegui_wrap.cxx:4099: warning: returning reference to temporary
When I tried to run some demo, I always got "Segmentation fault".
Can anyone help?